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, you can set the reference node manually with --reference_node

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.59.tar.gz (25.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

chronumental-0.0.59-py3-none-any.whl (13.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: chronumental-0.0.59.tar.gz
  • Upload date:
  • Size: 25.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for chronumental-0.0.59.tar.gz
Algorithm Hash digest
SHA256 289ddf97e31269ad90f7d470a260bd65b2e27547f8a07f97b01c07e2eefae933
MD5 b65400cb98ce0eb4d9db947c10e8bcd4
BLAKE2b-256 15cc8fd0fbb17e8d2b8bd1aa064979bdfa8e9b1a1668755f4a912c28aa462fe4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: chronumental-0.0.59-py3-none-any.whl
  • Upload date:
  • Size: 13.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for chronumental-0.0.59-py3-none-any.whl
Algorithm Hash digest
SHA256 c39b83e568852b571430cdc31eeac682d7adfbec0c414dc97a239e1f0933fb05
MD5 539433faf7e44b5fc9d56d2414c0d758
BLAKE2b-256 ac90d107fc7e05df5abaca157c3707b88d4aa571332a0ab9b7bc5d70b5faa06f

See more details on using hashes here.

Supported by

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