Coalescent Simulation with msprime

Methods Mol Biol. 2020:2090:191-230. doi: 10.1007/978-1-0716-0199-0_9.

Abstract

Coalescent simulation is a fundamental tool in modern population genetics. The msprime library provides unprecedented scalability in terms of both the simulations that can be performed and the efficiency with which the results can be processed. We show how coalescent models for population structure and demography can be constructed using a simple Python API, as well as how we can process the results of such simulations to efficiently calculate statistics of interest. We illustrate msprime's flexibility by implementing a simple (but functional) approximate Bayesian computation inference method in just a few tens of lines of code.

Keywords: Coalescent theory; Population genetics; Python; Simulation.

Publication types

  • Research Support, Non-U.S. Gov't

MeSH terms

  • Algorithms
  • Bayes Theorem
  • Computational Biology / methods*
  • Genetics, Population / methods*
  • Models, Genetic