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.2.tar.gz (212.6 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.2-py3-none-any.whl (101.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tsdate-0.2.2.tar.gz
  • Upload date:
  • Size: 212.6 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.2.tar.gz
Algorithm Hash digest
SHA256 aff6f9ba0d6dbf69ee99e3ffbfbdf3044c81cd10c07314ce9795f5220d99ddeb
MD5 cc1921e037073765d434837c932ff378
BLAKE2b-256 d61df6686cb29f28490c872e9988f315a1bb49e570ec88494f4d91670ba37aa9

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: tsdate-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 101.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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e9d93c24661c52a0f5cf579e88beb3152c8295fc7ab50c12ab7b13f6e0f3f07f
MD5 cb8779b7512021c16c0fce24783a3b54
BLAKE2b-256 17bff60a0d0e37afe59f8c26866fd1571faeff7ee111bdd9a7bbad5f00255a3f

See more details on using hashes here.

Provenance

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