Abstract
The sample frequency spectrum (SFS), or histogram of allele counts, is an important summary statistic in evolutionary biology, and is often used to infer the history of population size changes, migrations, and other demographic events affecting a set of populations. The expected multipopulation SFS under a given demographic model can be efficiently computed when the populations in the model are related by a tree, scaling to hundreds of populations. Admixture, back-migration, and introgression are common natural processes that violate the assumption of a tree-like population history, however, and until now the expected SFS could be computed for only a handful of populations when the demographic history is not a tree. In this article, we present a new method for efficiently computing the expected SFS and linear functionals of it, for demographies described by general directed acyclic graphs. This method can scale to more populations than previously possible for complex demographic histories including admixture. We apply our method to an 8-population SFS to estimate the timing and strength of a proposed “basal Eurasian” admixture event in human history. We implement and release our method in a new open-source software package momi2.
Introduction
Understanding the complex interplay of population growth, divergence, and migration is a fundamental goal of evolutionary biology. Researchers frequently utilize the Sample Frequency Spectrum (SFS)—a multidimensional histogram of allele counts across multiple populations—to reconstruct these demographic histories. While existing methods efficiently compute the expected SFS for populations related by a simple hierarchical tree, real-world evolutionary histories are often "reticulate," involving events such as admixture, back-migration, and introgression.
These non-tree-like events transform simple trees into complex Directed Acyclic Graphs (DAGs). Historically, computing the exact expected SFS for such graphs has been computationally prohibitive, typically limiting analyses to five or fewer populations. This paper introduces momi2, a method that overcomes these limitations, enabling the simultaneous inference of demographic history for dozens of populations within a graph-based framework.
Methodology
The core of the momi2 approach lies in several key technical innovations that streamline the computation of allele count probabilities.
The Moran Model and Lookdown Construction
Instead of the standard Kingman coalescent, the authors utilize a continuous-time Moran model. They incorporate a "Lookdown Construction," a mathematical framework that ensures the stochastic process of allele copying is unidirectional. This simplification allows for more tractable calculations of lineage dynamics over time.
Junction Tree Algorithm
To manage the complexity of population DAGs, the method employs a junction tree algorithm. It decomposes the population graph into an "event tree," where each node represents a specific demographic event (split, join, or leaf). This structure facilitates the use of belief propagation (the sum-product algorithm) to efficiently "lift" allele count probabilities backward through time from the leaves to the root.
Linear Functionals and Optimization
A significant breakthrough is the ability to compute linear functionals of the SFS—such as $F_{ST}$, Tajima’s $D$, or Patterson’s $f$-statistics—with the same computational complexity as a single SFS entry. Furthermore, the software leverages automatic differentiation to obtain exact gradients, significantly accelerating the optimization of demographic parameters.
Results
The authors validated momi2 by analyzing a complex 8-population human genomic dataset comprising approximately 2.4 million autosomal transversion SNPs. The dataset included contemporary populations (Mbuti, Han, Sardinian) and ancient lineages (Altai Neanderthal, Ust’Ishim, LBK, Loschbour, and MA1).
The "Basal Eurasian" Lineage
The study focused on the "Basal Eurasian" mystery—a theoretical "ghost" population that contributed to modern Europeans but diverged before other non-African populations. By utilizing the full SFS rather than isolated summary statistics, the authors estimated that Basal Eurasian ancestry in Early European Farmers (LBK) was approximately 9.4%, occurring roughly 33.7 thousand years ago (kya). This estimate is notably lower than previous findings (~44%), suggesting that the full SFS provides a more refined perspective on ancient admixture.
Computational Performance
The efficiency of the method was demonstrated by inferring the 8-population model in just 2.5 hours on a standard 4-core laptop. This performance represents a substantial leap over existing exact methods, which would struggle to complete such a calculation. Additionally, the human mutation rate was estimated at $1.22 \times 10^{-8}$ per base per generation, consistent with other modern genomic studies.
Discussion and Limitations
While momi2 offers unprecedented scaling for the number of populations, it faces certain trade-offs. It may be less efficient than diffusion-based methods (like moments) when the number of individuals per population is extremely large. Furthermore, like most SFS-based approaches, it assumes site independence (the Poisson Random Field model) and does not explicitly model Linkage Disequilibrium (LD), though statistical dependencies are addressed via block jackknife/bootstrap methods. Finally, while the tool excels at parameter estimation, the underlying graph topology must still be provided by the user, leaving automated topology discovery as a challenge for future research.
Summary updated