EWF 2.0: Exact sampling from the Wright-Fisher diffusion with time-varying demography
Sant, J.; Jenkins, P. A.; Koskela, J.; Spano, D.
Show 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. This extension is particularly valuable for bridge simulation, where existing methods cannot handle differing 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. 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
Matching journals
The top 2 journals account for 50% of the predicted probability mass.
Similar papers in this journal
- Maximum likelihood estimation of natural selection and allele age from time series data of allele frequencies 97%
- A numerical framework for genetic hitchhiking in populations of variable size 97%
- PhaseGen: Exact Solutions for Time-Inhomogenous Multivariate Coalescent Distributions under Diverse Demographies 96%
Similar papers in this journal
Similar papers in this journal
- Inferring the timing and strength of natural selection and gene migration in the evolution of chicken from ancient DNA data 97%
- Estimating temporally variable selection intensity from ancient DNA data with the flexibility of modelling linkage and epistasis 97%
- Complex genetic admixture histories reconstructed with Approximate Bayesian Computations 95%
"Similar papers" are the closest papers from that journal in the model's embedding space. They show what the match is built on, but the ranking comes mostly from a classifier over the whole training set, not from these examples alone.