tstrait: a quantitative trait simulator for ancestralrecombination graphs
Abstract
SummaryAncestral recombination graphs (ARGs) encode the ensemble of correlated genealogical trees arising from recombination in a compact and efficient structure, and are of fundamental importance in population and statistical genetics. Recent breakthroughs have made it possible to simulate and infer ARGs at biobank scale, and there is now intense interest in using ARG-based methods across a broad range of applications, particularly in genome-wide association studies (GWAS). Sophisticated methods exist to simulate ARGs using population genetics models, but there is currently no software to simulate quantitative traits directly from these ARGs. To apply existing quantitative trait simulators users must export genotype data, losing important information about ancestral processes and producing prohibitively large files when applied to the biobank-scale datasets currently of interest in GWAS. We present tstrait, an open-source Python library to simulate quantitative traits on ARGs, and show how this user-friendly software can quickly simulate phenotypes for biobank-scale datasets on a laptop computer. Availability and Implementationtstrait is available for download on the Python Package Index. Full documentation with examples and workflow templates is available on https://tskit.dev/tstrait/docs/, and the development version is maintained on GitHub (https://github.com/tskit-dev/tstrait). Contactdaiki.tagami@hertford.ox.ac.uk
02 /Specification & Classification
Click any tag to browse matching papers- Citations
- 9
- FWCI
- 2.39
- Field percentile
- top 11%
- Research Focus
- Approach
Reproducibility ledger
Nobody has reported trying to reproduce this paper yet. Did you replicate an experiment or run the code? Your report saves the next lab a week.
Sign in to file a reproducibility report.
Related papers
- Genetic prediction with ARG-powered linear algebra
Hanbin Lee, Nathaniel S. Pope, … Peter L. Ralph·GeneticsPeer-reviewed·Mar 27, 2026
- Tsbrowse: an interactive browser for Ancestral Recombination Graphs
Savita Karthikeyan, Ben Jeffery, … Jerome Kelleher·BioinformaticsPeer-reviewed·Jul 12, 2025
- Fast variance component analysis using large-scale ancestral recombination graphs
Jiazheng Zhu, Georgios Kalantzis, … Pier Francesco Palamara·Cell GenomicsPeer-reviewed·Dec 10, 2025
- Bridging forward-in-time and coalescent simulations using pyslim
Shyamalika Gopalan, Murillo F. Rodrigues, … Benjamin C. Haller·bioRxiv·Sep 30, 2025
- A scalable approach for genome-wide inference of ancestral recombination graphs
Arni F. Gunnarsson, Jiazheng Zhu, … Pier Francesco Palamara·bioRxiv·Aug 31, 2024
- KwARG: Parsimonious reconstruction of ancestral recombination graphs with recurrent mutation
A. Ignatieva, R. B. Lyngso, … J. Hein·BioinformaticsPeer-reviewed·Oct 11, 2021