Numerical complete solution for random genetic drift by energetic variational approach

Chenghua Duan, Chun Liu, Cheng Wang, Xingye Yue

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:

  1. Least Action Principle (LAP): This accounts for the conservative forces within the system, derived from the internal energy.
  2. 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

Abstract

In this paper, we focus on numerical solutions for random genetic drift problem, which is governed by a degenerated convection-dominated parabolic equation. Due to the fixation phenomenon of genes, Dirac delta singularities will develop at boundary points as time evolves. Based on an energetic variational approach (EnVarA), a balance between the maximal dissipation principle (MDP) and least action principle (LAP), we obtain the trajectory equation. In turn, a numerical scheme is proposed using a convex splitting technique, with the unique solvability (on a convex set) and the energy decay property (in time) justified at a theoretical level. Numerical examples are presented for cases of pure drift and drift with semi-selection. The remarkable advantage of this method is its ability to catch the Dirac delta singularity close to machine precision over any equidistant grid.
BibTeX
@inproceedings{duan2018numerical,
  author = {Chenghua Duan and Chun Liu and Cheng Wang and Xingye Yue},
  title = {{Numerical complete solution for random genetic drift by energetic variational approach}},
  booktitle = {ESAIM},
  year = {2018},
  doi = {10.1051/m2an/2018058},
}
Figure