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.4.tar.gz (212.1 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.4-py3-none-any.whl (99.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for tsdate-0.2.4.tar.gz
Algorithm Hash digest
SHA256 9cb5fb5f2978642a1ef3522be6c995d6f0c785d67ee555905ed039f43a00b0b9
MD5 1bdb1f4457a0db393cd4a1815c17e6d6
BLAKE2b-256 dd899dda1371c53f95ff436a0213b3caa202df6f622f8c2ff09610c7c2d817f0

See more details on using hashes here.

Provenance

The following attestation bundles were made for tsdate-0.2.4.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.4-py3-none-any.whl.

File metadata

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

File hashes

Hashes for tsdate-0.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 f56c26bdc7ddb29c4ee23315c38e8b29660663ef03d4c41597d4fdd12592790b
MD5 6536e9093314ef69d932f768276dfbd6
BLAKE2b-256 49ec5466bdff3c2194c0837d76e13c2bfc254a09eb9a647c3a4296c33bcc1430

See more details on using hashes here.

Provenance

The following attestation bundles were made for tsdate-0.2.4-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