Skip to main content

Infer tree sequences from genetic variation data.

Project description

tsinfer

CircleCI Build Status Docs Build codecov

Infer a tree sequence from genetic variation data

The documentation contains details of how to use this software, including installation instructions.

The initial algorithm, its rationale, and results from testing on simulated and real data are described in the following Nature Genetics paper:

Jerome Kelleher, Yan Wong, Anthony W Wohns, Chaimaa Fadil, Patrick K Albers and Gil McVean (2019) Inferring whole-genome histories in large population datasets. Nature Genetics 51: 1330-1338

Tsinfer versions 0.2.0 onwards allow missing data and provide a fully parameterised Li & Stephens matching algorithm (i.e. which allows mismatch). These improvements are described in the following Science paper:

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

Please cite either or both of these if you use tsinfer in your work. Code to reproduce the results in the first paper is present in a separate GitHub repository.

Note that tsinfer does not attempt to infer node times (i.e. branch lengths of the inferred trees). If you require a tree sequence where the dates of common ancestors are expressed in calendar or generation times, you should post-process the tsinfer output using software such as tsdate.

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

tsinfer-0.3.3.tar.gz (704.3 kB view hashes)

Uploaded Source

Built Distributions

tsinfer-0.3.3-cp312-cp312-win_amd64.whl (131.3 kB view hashes)

Uploaded CPython 3.12 Windows x86-64

tsinfer-0.3.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (278.3 kB view hashes)

Uploaded CPython 3.12 manylinux: glibc 2.17+ x86-64

tsinfer-0.3.3-cp312-cp312-macosx_10_9_universal2.whl (196.9 kB view hashes)

Uploaded CPython 3.12 macOS 10.9+ universal2 (ARM64, x86-64)

tsinfer-0.3.3-cp311-cp311-win_amd64.whl (131.2 kB view hashes)

Uploaded CPython 3.11 Windows x86-64

tsinfer-0.3.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (276.6 kB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

tsinfer-0.3.3-cp311-cp311-macosx_10_9_universal2.whl (196.4 kB view hashes)

Uploaded CPython 3.11 macOS 10.9+ universal2 (ARM64, x86-64)

tsinfer-0.3.3-cp310-cp310-win_amd64.whl (131.2 kB view hashes)

Uploaded CPython 3.10 Windows x86-64

tsinfer-0.3.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (275.6 kB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

tsinfer-0.3.3-cp310-cp310-macosx_10_9_universal2.whl (196.4 kB view hashes)

Uploaded CPython 3.10 macOS 10.9+ universal2 (ARM64, x86-64)

tsinfer-0.3.3-cp39-cp39-win_amd64.whl (131.2 kB view hashes)

Uploaded CPython 3.9 Windows x86-64

tsinfer-0.3.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (275.5 kB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

tsinfer-0.3.3-cp39-cp39-macosx_10_9_universal2.whl (196.4 kB view hashes)

Uploaded CPython 3.9 macOS 10.9+ universal2 (ARM64, x86-64)

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