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

Uploaded Source

Built Distribution

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

tsdate-0.2.3-py3-none-any.whl (99.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tsdate-0.2.3.tar.gz
  • Upload date:
  • Size: 209.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for tsdate-0.2.3.tar.gz
Algorithm Hash digest
SHA256 eccbe6cb60a538e8648dc182a18bc8b158ae9ce91943ad6440eb1786359b107f
MD5 8cb6ed1995ce6ec382525f92ee1f6d9c
BLAKE2b-256 00f11dc71f7953dafe62febee0da3d3697a51b020ee602205d5eb6cd498ca362

See more details on using hashes here.

Provenance

The following attestation bundles were made for tsdate-0.2.3.tar.gz:

Publisher: wheels.yml on tskit-dev/tsdate

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

  • Download URL: tsdate-0.2.3-py3-none-any.whl
  • Upload date:
  • Size: 99.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for tsdate-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 25d058d1dc0d25fe6515817238c7a49e87f5ef6808be23af3dff137dd40b2fbe
MD5 66ea57e9ab7513ab8a1c2e86ca6d7ff3
BLAKE2b-256 e1e8034deebf8965817b6043883b9dd3cfc915a4cc28f7370e7d6fcc489b48b4

See more details on using hashes here.

Provenance

The following attestation bundles were made for tsdate-0.2.3-py3-none-any.whl:

Publisher: wheels.yml on tskit-dev/tsdate

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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