Efficient pedigree recording for fast population genetics simulation
Jerome KelleheriD, Kevin ThorntoniD, Jaime AshanderiD, Peter L. RalphiD
Abstract
In this paper we describe how to efficiently record the entire genetic history of a population in forwards-time, individual-based population genetics simulations with arbitrary breeding models, population structure and demography. This approach dramatically reduces the computational burden of tracking individual genomes by allowing us to simulate only those loci that may affect reproduction (those having non-neutral variants). The genetic history of the population is recorded as a succinct tree sequence as introduced in the software package msprime, on which neutral mutations can be quickly placed afterwards. Recording the results of each breeding event requires storage that grows linearly with time, but there is a great deal of redundancy in this information. We solve this storage problem by providing an algorithm to quickly simplify a tree sequence by removing this irrelevant history for a given set of genomes. By periodically simplifying the history with respect to the extant population, we show that the total storage space required is modest and overall large efficiency gains can be made over classical forward-time simulations. We implement a general-purpose framework for recording and simplifying genealogical data, which can be used to make simulations of any population model more efficient. We modify two popular forwards-time simulation frameworks to use this new approach and observe efficiency gains in large, whole-genome simulations of one to two orders of magnitude. In addition to speed, our method for recording pedigrees has several advantages: (1) All marginal genealogies of the simulated individuals are recorded, rather than just genotypes. (2) A population of N individuals with M polymorphic sites can be stored in O(N log N + M) space, making it feasible to store a simulations entire final generation as well as its history. (3) A simulation can easily be initialized with a more efficient coalescent simulation of deep history. The software for recording and processing tree sequences is named tskit.\n\nAuthor SummarySexually reproducing organisms are related to the others in their species by the complex web of parent-offspring relationships that constitute the pedigree. In this paper, we describe a way to record all of these relationships, as well as how genetic material is passed down through the pedigree, during a forwards-time population genetic simulation. To make effective use of this information, we describe both efficient storage methods for this embellished pedigree as well as a way to remove all information that is irrelevant to the genetic history of a given set of individuals, which dramatically reduces the required amount of storage space. Storing this information allows us to produce whole-genome sequence from simulations of large populations in which we have not explicitly recorded new genomic mutations; we find that this results in computational run times of up to 50 times faster than simulations forced to explicitly carry along that information.
02 /Specification & Classification
Click any tag to browse matching papers- Citations
- 187
- FWCI
- 8.89
- Field percentile
- top 1%
- Assay
- 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 ancestry and mutation simulation with msprime 1.0
Franz Baumdicker, Gertjan Bisschop, … Jerome Kelleher·GeneticsPeer-reviewed·Dec 13, 2021
- Coalescent tree recording with selection for fast forward-in-time simulations
Remi Matthey‐Doret·bioRxiv·Dec 6, 2021
- Efficient coalescent simulation and genealogical analysis for large sample sizes
Jerome Kelleher, Alison M Etheridge, Gil McVean·PLOS Computational BiologyPeer-reviewed·May 4, 2016
- Memoization on Shared Subtrees Accelerates Computations on Genealogical Forests
Lukáš Hübner, Alexandros Stamatakis·bioRxiv·May 23, 2024
- SimBit: A high performance, flexible and easy-to-use population genetic simulator
R. Matthey-Doret·bioRxiv·May 12, 2020