Abstract
This paper presents a novel numerical framework for solving the random genetic drift problem, which is governed by a degenerated convection-dominated parabolic equation. A primary challenge in modeling genetic drift is the "fixation" phenomenon, where gene variants either disappear or dominate a population, resulting in Dirac delta singularities at the boundaries as time evolves. By employing an Energetic Variational Approach (EnVarA)—balancing the Maximal Dissipation Principle (MDP) and the Least Action Principle (LAP)—we derive a trajectory-based governing equation. We propose a numerical scheme utilizing a convex splitting technique, ensuring unique solvability and energy decay. Numerical experiments demonstrate that this method captures boundary singularities with near-machine precision ($10^{10}$) on equidistant grids, significantly outperforming traditional Eulerian methods.
Introduction
In population genetics, random genetic drift describes the stochastic fluctuations of allele frequencies within a population due to random sampling in reproduction. Over time, these fluctuations lead to "fixation," where an allele's frequency reaches either 0% or 100%. Mathematically, this process is described by the Wright-Fisher equation, a degenerated parabolic equation where the diffusion coefficient vanishes at the boundaries.
As time progresses, the probability density function (PDF) of the allele frequency develops infinitely sharp spikes, known as Dirac delta singularities, at these boundaries. Traditional numerical tools, such as Finite Volume Methods (FVM) or Finite Element Methods (FEM), struggle to resolve these singularities. They often introduce numerical viscosity or require extremely fine grids to achieve even modest accuracy, typically limited to a magnitude relative to the spatial grid size ($1/h$).
The Energetic Variational Approach (EnVarA)
To overcome the limitations of standard Eulerian approaches, this research utilizes the Energetic Variational Approach (EnVarA). This framework treats the evolution of the probability density as a physical system governed by the balance of energy and dissipation, shifting the perspective from fluid-like density to particle trajectories.
Lagrangian Perspective
Instead of monitoring density changes at fixed spatial points (the Eulerian view), the EnVarA framework adopts a Lagrangian perspective. It tracks the "trajectories" of probability particles. By solving for the trajectory equation, the singularity at the boundary is transformed from a density spike into a clustering of trajectories. When a particle moves within a threshold ($\epsilon_0 = 10^{-10}$) of the boundary, it is mathematically treated as fixed, and its mass is reassigned to the boundary point.
Variational Principles
The governing equations are derived from two fundamental principles of non-equilibrium thermodynamics:
- Least Action Principle (LAP): This accounts for the conservative forces within the system, derived from the internal energy.
- Maximal Dissipation Principle (MDP): This accounts for the dissipative forces, such as entropy production or "friction" in the probability space.
This balance provides a rigorous physical foundation for biological modeling, rooted in Onsager’s reciprocal relations.
Numerical Scheme and Stability
A key contribution of this work is the development of a stable numerical scheme using a convex splitting technique. The total energy of the system is decomposed into a convex part (treated implicitly) and a concave part (treated explicitly).
This approach guarantees several critical properties:
- Unique Solvability: The solution is guaranteed to exist and be unique within a defined convex set.
- Energy Decay Property: The numerical "energy" of the system consistently decreases over time, mirroring the physical reality of the biological process.
- Unconditional Stability: The simulation remains stable regardless of the time-step size, preventing the numerical instabilities common in traditional solvers when dealing with steep gradients.
Results and Performance
The proposed method was evaluated using cases of pure drift, drift with semi-selection, and Dirac initial states.
Extreme Precision in Fixation
The most striking result is the method's ability to resolve Dirac delta singularities. While traditional FVM schemes might resolve a boundary spike to a height of $10^4$ on a given grid, the EnVarA-based trajectory method achieves a precision of $10^{10}$. This near-machine precision allows for an incredibly accurate representation of the fixation phenomenon without the computational expense of ultra-fine grids.
Conservation and Accuracy
In pure drift cases, the method perfectly conserves the total mass (probability) and the expected gene frequency over time. In scenarios involving semi-selection—where one allele has a selective advantage—the numerical results align perfectly with the theoretical fixation probability ($P_{fix}$) formulas derived from the Kolmogorov backward equation.
Conclusion
The Energetic Variational Approach provides a powerful new framework for studying population genetics. By shifting to a trajectory-based model and utilizing convex splitting, the authors have created a numerical tool capable of handling the mathematical challenges of Dirac delta singularities with unprecedented precision.
While currently demonstrated for one-dimensional, two-allele systems, the framework's reliance on fundamental thermodynamic principles suggests potential for expansion. Future work will focus on multi-allelic loci, where higher-dimensional singularities present significant computational challenges. This research lays the foundation for more robust and accurate simulations of complex evolutionary dynamics.
Summary updated