Large timetrees
Project description
Chronumental
Chronologies from monumental phylogenetic trees
Chronumental is a tool for creating a "time-tree" (where distance on the tree represents time) from a phylogenetic divergence-tree (where distance on the tree reflects a number of genetic substitutions).
What sets Chronumental apart from most other tools is that it scales to extremely large trees, which can contain millions of nodes. Chronumental uses JAX to represent the task of computing a time tree in a differentiable graph for efficient calculation on a CPU or GPU.
📝 Read the preprint
📚 View the documentation
Installation
Method 1: Using pipx (recommended for basic use - installs in its own isolated environment)
pip install --local pipx
pipx install chronumental
Method 2: In your python environment
pip install chronumental
Method 3: Bioconda
Chronumental is now available on bioconda
conda config --add channels bioconda
conda install chronumental
Usage
This demo uses trees and metadata collated by the UShER team.
wget https://hgwdev.gi.ucsc.edu/~angie/UShER_SARS-CoV-2/2021/10/06/public-2021-10-06.all.nwk.gz
wget https://hgwdev.gi.ucsc.edu/~angie/UShER_SARS-CoV-2/2021/10/06/public-2021-10-06.metadata.tsv.gz
chronumental --tree public-2021-10-06.all.nwk.gz --dates public-2021-10-06.metadata.tsv.gz --steps 100
📚 Please visit our documentation page to learn more about the parameters you can use to control Chronumental.
Integrations
Taxonium can automatically call Chronumental, and generate a combined visualisation that allows switching between distance and time phylogenies
Similar tools
TreeTime is a more advanced tool for inferring time trees. If you have a dataset of e.g. <10,000 rather than millions of nodes you are definitely best off trying it. The TreeTime readme also links to other similar tools.
Troubleshooting
- Chronumental uses the earliest date in your dataset as an anchor to calibrate everything else. If this earliest date is wrong due to a metadata error things won't work well. You can set the reference node manually with
--reference_node
to avoid this issue.
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
Built Distribution
File details
Details for the file chronumental-0.0.62.tar.gz
.
File metadata
- Download URL: chronumental-0.0.62.tar.gz
- Upload date:
- Size: 26.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 02e1dc730a73fd67ecc36cc7c54b80f58c48a33ca59c53d21b9c725ab0ecddd8 |
|
MD5 | d91ac400ed7a02cd3c9e8390f8b72b01 |
|
BLAKE2b-256 | e6422fb878ebc7cbca7db64e7a393859f2fa381691b3b8c387b7e0e3b6c1f2e4 |
File details
Details for the file chronumental-0.0.62-py3-none-any.whl
.
File metadata
- Download URL: chronumental-0.0.62-py3-none-any.whl
- Upload date:
- Size: 14.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 51a25fa9616f1f421fef11f28673f3379e4ffe2c13536169bf37fa581b0bad8a |
|
MD5 | 6b946082ecc58606fec74dc61d3bb7b2 |
|
BLAKE2b-256 | 92d753d4d1482c26100420dd992aa77a2a222be6a1c26ba0a4b740fa2adce773 |