Skip to main content

Infer node ages from a tree sequence topology.

Project description

tsdate

CircleCI codecov

tsdate is a scalable method for estimating the age of ancestral nodes in a tree sequence. The method uses a coalescent prior and updates node times on the basis of the number of mutations along each edge of the tree sequence (i.e. using the "molecular clock").

The method is frequently combined with the tsinfer algorithm, which efficiently infers tree sequence topologies from large genetic datasets.

Please refer to the documentation for information on installing and using the software.

The algorithms for the original inside_outside and maximization methods are described in this Science paper (citation below, preprint here, evaluations in another repository). The new variational_gamma method, the default from version 0.2 onwards, has not yet been described in print. For the moment, please cite this github repository if you need a citable reference.

The citation to use for the original tsdate algorithms is:

Anthony Wilder Wohns, Yan Wong, Ben Jeffery, Ali Akbari, Swapan Mallick, Ron Pinhasi, Nick Patterson, David Reich, Jerome Kelleher, and Gil McVean (2022) A unified genealogy of modern and ancient genomes. Science 375: eabi8264; doi: https://doi.org/10.1126/science.abi8264

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

tsdate-0.2.1.tar.gz (202.2 kB view details)

Uploaded Source

Built Distribution

tsdate-0.2.1-py3-none-any.whl (96.5 kB view details)

Uploaded Python 3

File details

Details for the file tsdate-0.2.1.tar.gz.

File metadata

  • Download URL: tsdate-0.2.1.tar.gz
  • Upload date:
  • Size: 202.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for tsdate-0.2.1.tar.gz
Algorithm Hash digest
SHA256 fd930491a96867c474470a9090ca6b2c9559837ff59e94488f99cc14f2612767
MD5 be3dc7861a7ba15058e75b4561b2cf8d
BLAKE2b-256 178c06cd44cbf9676f5499353a6eadfd79c7257ad2d7f87090d51ab3b1de1fcd

See more details on using hashes here.

File details

Details for the file tsdate-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: tsdate-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 96.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for tsdate-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 eacecc473e7ed49006e3395304c2e23efd096c6e8eff29e95f0a6cf5a1ab044a
MD5 3e72ee1390b947840f6f4dcf83841847
BLAKE2b-256 180ae37c8495af13f81d7f81bb1de408a49bae3c8aafbf14042c5a1c210896b6

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