BMC BioinformaticsGeneticsPeer-reviewed journal article
EWF 2.0: Exact sampling of allele trajectories using the Wright--Fisher diffusion with time-varying demography
Jaromir SantiD, Paul A. JenkinsiD, Jere KoskelaiD, Dario SpanòiD
Abstract
Accurate modelling of allele frequency trajectories requires incorporation of both genetic mechanisms such as selection and mutation, as well as realistic population demography. Accounting for a non-constant demography within a Wright-Fisher diffusion framework induces a time-inhomogenous drift coefficient, a regime falling outside the scope of existing exact simulation routines. To address this gap, we introduce EWF 2.0, an exact simulation algorithm that accommodates time-varying demography within Wright-Fisher diffusions whilst retaining all the functionality of previous EWF versions. We validate correctness using distributional tests (Kolmogorov-Smirnov, QQ plots), confirming agreement with theoretical expectations. In spite of its greater generality, EWF 2.0 retains the same runtime as in previous versions, ensuring computational efficiency and scalability. All software is available at https://github.com/JaroSant/EWF. EWF 2.0 is particularly valuable for bridge simulation, where existing methods cannot handle time-varying mutation and selection rates. For a specified demographic history, mutation parameters, selection function and sampling times, EWF 2.0 generates exact draws from the law of the corresponding Wright-Fisher diffusion or diffusion bridge.
- Citations
- 0
- FWCI
- 0.00
- Field percentile
- top 41%
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
- Transition densities and sample frequency spectra of diffusion processes with selection and variable population size
Daniel Zivkovic, Matthias Steinrücken, … Wolfgang Stephan·bioRxiv·Feb 2, 2015
- SpectralTDF: transition densities of diffusion processes with time-varying selection parameters, mutation rates, and effective population sizes
Matthias Steinrücken, Ethan M Jewett, Yun S Song·bioRxiv·Oct 27, 2015
- Inference under a Wright-Fisher model using an accurate beta approximation
Paula Tataru, Thomas Bataillon, Asger Hobolth·bioRxiv·Jun 19, 2015
- Numerical simulation of the two-locus Wright-Fisher stochastic differential equation with application to approximating transition probability densities
Zhangyi He, Mark Beaumont, Feng Yu·bioRxiv·Jul 21, 2020
- An Approximate Markov Model for the Wright-Fisher Diffusion
Anna Ferrer-Admetlla, Christoph Leuenberger, … Daniel Wegmann·GeneticsPeer-reviewed·Jun 1, 2016
- Inferring the Joint Demographic History of Multiple Populations: Beyond the Diffusion Approximation
J. Jouganous, W. Long, S. Gravel·bioRxiv·Jan 25, 2017