Skip to main content

Large timetrees

Project description

Chronumental

Chron​ologies from mon​umental 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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

chronumental-0.0.52.tar.gz (1.8 MB view details)

Uploaded Source

Built Distribution

chronumental-0.0.52-py3-none-any.whl (13.5 kB view details)

Uploaded Python 3

File details

Details for the file chronumental-0.0.52.tar.gz.

File metadata

  • Download URL: chronumental-0.0.52.tar.gz
  • Upload date:
  • Size: 1.8 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for chronumental-0.0.52.tar.gz
Algorithm Hash digest
SHA256 d86a23bf629de8ac51e5d9f4e752c29125b4c4f3ec59b774305c7f933b581f4f
MD5 cd1e654d9d6887ead160add2027d330d
BLAKE2b-256 60e1231e5c48c4da7443276e4d09386e957f750671e1a14f8b4607525d3217b1

See more details on using hashes here.

File details

Details for the file chronumental-0.0.52-py3-none-any.whl.

File metadata

File hashes

Hashes for chronumental-0.0.52-py3-none-any.whl
Algorithm Hash digest
SHA256 3d666e091121d78aeed18adcd5a4fe8a7315a759f440c16b18ec66b9008592dd
MD5 af8abe1b6cd8b5790af14c39cda39485
BLAKE2b-256 160d58c9e286e5ddbff8902c81a982e322b86425f3e4ac54988d57fb538aa6fc

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page