phasty
A Python interface for PHAST (phylogenetic analysis with space/time models).
Description
PHAST is a package consisting of command-line programs for comparative genomics. It supports several nucleotide substitution models. This package phasty provides Python wrappers for some major programs so that it is easier to integrate them into complicated workflows. It can also parse some files from plain text to more computer-friendly forms to help downstream analysis.
Usage
The design idea of phasty is to be robust and compatible with version changes of PHAST. Therefore, the signatures of functions are written in a general way. Please refer to the corresponding websites for detailed usage of specific options.
Example
Assume hmrc.fa exists in the current directory. After running phylo_fit and reading the .mod file, the content is stored in a list of objects holding attributes with proper data types. Each object represents a fitted model.
from phasty import phylo_fit, parse_mod
output = phylo_fit(
"hmrc.fa",
tree="((human,(mouse,rat)),cow)",
subst_mod="U2S",
EM=True,
precision="MED",
non_overlapping=True,
out_root="hmrc-u2s",
)
mod_lst = parse_mod("hmrc-u2s.mod")
print(mod_lst[0].rate_mat)
Installation
Download and install PHAST first.
Install from PyPI:
pip install phasty
Or install from source after git clone:
cd phasty
pip install -e .
Run tests:
pip install -e .[dev]
python -m pytest --cov=phasty tests/
Uninstall:
pip uninstall phasty
Notes
This package uses Semantic Versioning.
Metadata
Release files for phasty 0.5.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| phasty-0.5.3.tar.gz | 6.0 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| phasty-0.5.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.6 kB
Release files / phasty-0.5.3.tar.gz
| Download URL | phasty-0.5.3.tar.gz |
|---|---|
| Size | 6.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d92f5856f60848d664e92dae8f967adcfb20a727a7ff415d4d6f36b8a4d4f76d
|
|
BLAKE2b-256 checksum How to use checksums |
3fdaeede2972d57b8bfc39fafd7e6ceed714c416b5ef94e385fc1ad20de7e9cb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.11
|
Release files / phasty-0.5.3-py3-none-any.whl
| Download URL | phasty-0.5.3-py3-none-any.whl |
|---|---|
| Size | 5.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ebab77ddf314aadbf7b39fda55a9379a82737fae8bbbd8bc756bc898d352d2c0
|
|
BLAKE2b-256 checksum How to use checksums |
869994253ec79ab61aa978cf66b6e7100493450da40a7a19de68f0edf87eb8be
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.11
|
Security for phasty 0.5.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.