Python API for managing a phylogenetics project
Project description
# Python API for managing a phylogenetics project
Phylogenetics is a minimal Python API for doing phylogenetics. It manages the annoying aspects of phylogenetics (i.e. file conversion) for you and lets you focus on exploring and interpreting the data.
**Note** The `phylogenetics` package has been completely rewritten between v0.3 and v0.4. v0.3 is now deprecated and no longer maintained. v0.4 has significantly simplified the API. I hope you enjoy it.
## The Basics
The main entry-point to the API is the `Project` object, which acts as a container object for all pieces of a
phylogenetics project. Below is an example of how to use the `Project` class.
```python
# Imports
from phylogenetics import TreeProject
# Initialize a project class
project = TreeProject(project_dir='project')
project.read_data(dtype='tips', path='alignment.fasta', schema='fasta')
# Run PhyML to construct a phylogenetic
# tree by maximum likelihood.
project.run_tree()
# Reconstruct ancestral sequences.
project.run_reconstruction(alpha=1.2)
```
<img src="docs/_images/jlab.png" align="middle">
## Installation
`phylogenetics` has been rewritten from scratch. The version on PyPi is outdated
and will not work with the new version. For now, install from source.
```
git clone https://github.com/Zsailer/phylogenetics
cd phylogenetics
pip install -e .
```
## Dependencies
`phylogenetics` manages phylogenetics data. Currently, it doesn't do any of the phylogenetic calculations itself. For this, use external tools like:
1. `cdhit` - clustering redundant sequences
2. `msaprobs` - multiple sequence alignment software
3. `phyml` - building maximum likelihood trees
4. `paml` - reconstructing ancestors
`phylogenetics` is built on top of following python stack:
1. Pandas
2. Biopython
3. DendroPy
4. ToyTree
5. PhyloPandas
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
phylogenetics-0.4.tar.gz
(30.6 kB
view hashes)
Built Distribution
Close
Hashes for phylogenetics-0.4-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 71e7c40cdc910e5f770730759f39548f3a7e5fa9c9c073dd29c2a5603fedfa21 |
|
MD5 | a26d431882e1d6a1bbfe2d3515987148 |
|
BLAKE2b-256 | 49b571cfaa2fd97608b5f8e6f274488fed41a1504c2191c78eaaf472cbc43c96 |