Bridging forward-in-time and coalescent simulations using pyslim
Shyamalika GopalaniD, Murillo F. RodriguesiD, Peter L. RalphiD, Benjamin C. HalleriD
Abstract
Ancestral Recombination Graphs (ARGs) provide an expressive and compact way to represent genetic variation data generated by simulations embedded within its genealogical history, and it can dramatically speed up simulations. The fact that the ARG records genealogical as well as genomic information opens up the possibility for a number of new analysis and simulation techniques. Here, we aim to introduce the reader to this deep source of information as produced by the forwards simulator SLiM. SLiM records the ARG using the tree sequence format, which can be manipulated using the tskit and pyslim python packages. We first describe the information that SLiM records in the tree sequence, then provide several examples that use the tree sequence as a format to losslessly pass population states between simulators: recapitation of a forwards simulation with coalescent simulation; initiation of a forwards simulation using the results of a coalescent simulation; and parallelization of simulations, first across branches of a phylogenetic tree, and then across the populations of parasites infecting different hosts.
02 /Specification & Classification
Click any tag to browse matching papers- Citations
- 3
- 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
- Tree-sequence recording in SLiM opens new horizons for forward-time simulation of whole genomes
B. C. Haller, J. Galloway, … P. L. Ralph·bioRxiv·Nov 6, 2018
- Efficient pedigree recording for fast population genetics simulation
Jerome Kelleher, Kevin Thornton, … Peter L. Ralph·PLoS Computational BiologyPeer-reviewed·Nov 1, 2018
- Efficient coalescent simulation and genealogical analysis for large sample sizes
Jerome Kelleher, Alison M Etheridge, Gil McVean·PLOS Computational BiologyPeer-reviewed·May 4, 2016
- ARGON: fast, whole-genome simulation of the discrete time Wright-Fisher process
Pier Francesco Palamara·bioRxiv·Jun 14, 2016
- Coalescent tree recording with selection for fast forward-in-time simulations
Remi Matthey‐Doret·bioRxiv·Dec 6, 2021
- Tuning the SMC: efficient simulation and the structure of ARGs
Hossameldin Loay, Gertjan Bisschop, … Konrad Lohse·bioRxiv·Sep 4, 2026