Skip to main content
QUICK REVIEW

[Paper Review] Efficient Forward Simulation of Fisher-Wright Populations with Stochastic Population Size and Neutral Single Step Mutations in Haplotypes

Mikkel Meyer Andersen, Poul Svante Eriksen|arXiv (Cornell University)|Oct 5, 2012
Algorithms and Data CompressionComputer Science8 references5 citations
TL;DR

This paper presents an efficient forward simulation algorithm for Fisher-Wright populations with stochastic population size and neutral single-step mutations in haplotypes, leveraging a haplotype-centric data structure and k-d trees to accelerate computation. The method, implemented in the open-source R package fwsim, achieves up to 6,848-fold speedup over naive individual-based simulation, enabling fast and scalable simulation of large populations, particularly suited for Y-STR lineage markers in forensic genetics.

ABSTRACT

In both population genetics and forensic genetics it is important to know how haplotypes are distributed in a population. Simulation of population dynamics helps facilitating research on the distribution of haplotypes. In forensic genetics, the haplotypes can for example consist of lineage markers such as short tandem repeat loci on the Y chromosome (Y-STR). A dominating model for describing population dynamics is the simple, yet powerful, Fisher-Wright model. We describe an efficient algorithm for exact forward simulation of exact Fisher-Wright populations (and not approximative such as the coalescent model). The efficiency comes from convenient data structures by changing the traditional view from individuals to haplotypes. The algorithm is implemented in the open-source R package 'fwsim' and is able to simulate very large populations. We focus on a haploid model and assume stochastic population size with flexible growth specification, no selection, a neutral single step mutation process, and self-reproducing individuals. These assumptions make the algorithm ideal for studying lineage markers such as Y-STR.

Motivation & Objective

  • To develop an exact forward simulation method for Fisher-Wright populations that avoids the approximations of coalescent-based models.
  • To enable efficient simulation of large populations with stochastic population size and neutral single-step mutations in haplotypes.
  • To support research in forensic genetics, particularly for Y-STR lineage markers, by accurately modeling haplotype distribution dynamics.
  • To reduce computational and memory overhead by shifting focus from individuals to haplotypes, using optimized data structures.
  • To provide a scalable, open-source R implementation (fwsim) for population genetic simulations with high performance.

Proposed method

  • The algorithm models population dynamics by tracking haplotype counts rather than individual lineages, reducing computational complexity.
  • It uses a multinomial sampling scheme to propagate haplotype counts across generations, with mutation applied as a neutral single-step process on each locus.
  • A k-d tree data structure is employed to efficiently manage and query haplotype states, enabling fast lookup and update operations during simulation.
  • Population size evolves stochastically according to a flexible growth parameter α, allowing for non-constant population dynamics.
  • The method supports arbitrary initial population sizes and numbers of loci, with mutation rates applied per locus.
  • The implementation is in the R package fwsim, optimized for performance and memory efficiency in large-scale simulations.

Experimental results

Research questions

  • RQ1How can exact forward simulation of Fisher-Wright populations be made computationally efficient when population size is stochastic and mutations are neutral single-step?
  • RQ2What performance gains can be achieved by modeling haplotypes instead of individuals in forward simulation?
  • RQ3To what extent does the use of k-d trees improve the scalability of population genetic simulations?
  • RQ4How does the computational efficiency of the fwsim package compare to naive individual-based simulation across varying population sizes and mutation rates?
  • RQ5Can the algorithm effectively simulate large populations with complex dynamics relevant to forensic Y-STR analysis?

Key findings

  • The fwsim package achieves up to 6,848-fold speedup over a naive individual-based implementation when simulating a population of 5,000 individuals over 200 generations with a mutation rate of 0.001.
  • On average, fwsim is nearly 2,000 times faster than the naive implementation for a population of 5,000 individuals with a mutation rate of 0.003 over 100 generations.
  • The algorithm scales efficiently with increasing numbers of loci and generations, with computation time growing moderately even for large simulations.
  • Memory consumption is significantly reduced by tracking haplotype counts rather than individual genotypes, enabling simulation of much larger populations.
  • The method accurately captures genetic drift and mutation dynamics, as evidenced by the observed slight drift from initial (0,0) haplotype frequencies in the contingency table of first two loci.
  • The implementation is robust and efficient, with median computation times for 10 simulations used in performance benchmarks.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.