{"id":40969675,"url":"https://github.com/tskit-dev/tsdate","last_synced_at":"2026-01-22T06:40:50.773Z","repository":{"id":38195401,"uuid":"199032140","full_name":"tskit-dev/tsdate","owner":"tskit-dev","description":"Infer the age of ancestral nodes in a tree sequence.","archived":false,"fork":false,"pushed_at":"2025-09-29T14:12:48.000Z","size":13873,"stargazers_count":23,"open_issues_count":43,"forks_count":11,"subscribers_count":8,"default_branch":"main","last_synced_at":"2025-10-27T18:28:14.517Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tskit-dev.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":"CITATION.cff","codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2019-07-26T14:36:17.000Z","updated_at":"2025-10-06T16:17:40.000Z","dependencies_parsed_at":"2024-05-03T22:33:31.249Z","dependency_job_id":"9ea09f34-e2b8-4db2-9657-8f84f95de1f6","html_url":"https://github.com/tskit-dev/tsdate","commit_stats":null,"previous_names":["awohns/tsdate"],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/tskit-dev/tsdate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tskit-dev%2Ftsdate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tskit-dev%2Ftsdate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tskit-dev%2Ftsdate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tskit-dev%2Ftsdate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tskit-dev","download_url":"https://codeload.github.com/tskit-dev/tsdate/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tskit-dev%2Ftsdate/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28657088,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-22T01:17:37.254Z","status":"online","status_checked_at":"2026-01-22T02:00:07.137Z","response_time":144,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-01-22T06:40:50.700Z","updated_at":"2026-01-22T06:40:50.768Z","avatar_url":"https://github.com/tskit-dev.png","language":"Python","readme":"# tsdate \u003cimg align=\"right\" width=\"145\" height=\"90\" src=\"https://github.com/tskit-dev/tsdate/blob/main/docs/tsdate_logo.svg\"\u003e\n\n[![License](https://img.shields.io/github/license/tskit-dev/tsdate)](https://github.com/tskit-dev/tsdate/blob/main/LICENSE) [![PyPI version](https://img.shields.io/pypi/v/tsdate.svg)](https://pypi.org/project/tsdate/) [![Supported Python Versions](https://img.shields.io/pypi/pyversions/tsdate.svg)](https://pypi.org/project/tsdate/) [![Docs Build](https://github.com/tskit-dev/tsdate/actions/workflows/docs.yml/badge.svg)](https://github.com/tskit-dev/tsdate/actions/workflows/docs.yml) [![Binary wheels](https://github.com/tskit-dev/tsdate/actions/workflows/wheels.yml/badge.svg)](https://github.com/tskit-dev/tsdate/actions/workflows/wheels.yml) [![Tests](https://github.com/tskit-dev/tsdate/actions/workflows/tests.yml/badge.svg)](https://github.com/tskit-dev/tsdate/actions/workflows/tests.yml) [![codecov](https://codecov.io/gh/tskit-dev/tsdate/branch/main/graph/badge.svg)](https://codecov.io/gh/tskit-dev/tsdate)\n\n``tsdate`` is a scalable method for estimating the age of ancestral nodes in a \n[tree sequence](https://tskit.dev/tutorials/what_is.html). 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\").\n\nThe method is frequently combined with the [tsinfer](https://tskit.dev/tsinfer/docs/stable/) algorithm, which efficiently infers tree sequence *topologies* from large genetic datasets.\n\nPlease refer to the documentation ([stable](https://tskit.dev/tsdate/docs/stable/) • [latest](https://tskit.dev/tsdate/docs/latest/)) for information on installing and using the software.\n\n## Installation\n\n```bash\npython -m pip install tsdate\n```\n\nThe algorithms for the original `inside_outside` and `maximization` [methods](https://tskit.dev/tsdate/docs/stable/methods.html) are described [in this Science paper](https://www.science.org/doi/10.1126/science.abi8264) (citation below, preprint [here](https://www.biorxiv.org/content/10.1101/2021.02.16.431497v2), evaluations in [another repository](https://github.com/awohns/unified_genealogy_paper)). 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.\n\nThe citation to use for the original tsdate algorithms is:\n\n\u003e 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\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftskit-dev%2Ftsdate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftskit-dev%2Ftsdate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftskit-dev%2Ftsdate/lists"}