Skip to main content
Genetics logoLink to Genetics
. 2021 Aug 3;219(2):iyab119. doi: 10.1093/genetics/iyab119

Sweeps in time: leveraging the joint distribution of branch lengths

Gertjan Bisschop 1, Konrad Lohse 1, Derek Setter 1,
PMCID: PMC8633083  PMID: 34849880

Abstract

Current methods of identifying positively selected regions in the genome are limited in two key ways: the underlying models cannot account for the timing of adaptive events and the comparison between models of selective sweeps and sequence data is generally made via simple summaries of genetic diversity. Here, we develop a tractable method of describing the effect of positive selection on the genealogical histories in the surrounding genome, explicitly modeling both the timing and context of an adaptive event. In addition, our framework allows us to go beyond analyzing polymorphism data via the site frequency spectrum or summaries thereof and instead leverage information contained in patterns of linked variants. Tests on both simulations and a human data example, as well as a comparison to SweepFinder2, show that even with very small sample sizes, our analytic framework has higher power to identify old selective sweeps and to correctly infer both the time and strength of selection. Finally, we derived the marginal distribution of genealogical branch lengths at a locus affected by selection acting at a linked site. This provides a much-needed link between our analytic understanding of the effects of sweeps on sequence variation and recent advances in simulation and heuristic inference procedures that allow researchers to examine the sequence of genealogical histories along the genome.

Keywords: selective sweeps, positive selection, genealogy, inference, coalescent

Introduction

The variation we observe in genome sequence data is the result of the combined demographic and selective forces acting in the evolutionary history of a population. While demography shapes genetic variation uniformly throughout the genome, natural selection has localized effects on genetic variation near the targets of past selection. Recombination attenuates the strength of this effect with increasing distances from any selected site (Maynard Smith and Haigh 1974). Despite this key difference, distinguishing the signatures of natural selection from those of demography in genomic variation remains a significant challenge.

Substantial effort has been made to describe the effect of positive selection on the genealogical history at linked neutral sites and to develop methods to detect the footprint of adaptive evolution in genomic data [for an overview, see Hejase et al. (2020a)]. Here, we focus on the class of parametric model-based methods that identify the signature of hard selective sweeps as a local distortion of ancestry caused by genetic hitchhiking [for a survey of such methods, see Pavlidis and Alachiotis (2017)]. When a new adaptive mutation sweeps through a population, the hitchhiking of linked neutral variation leads to a local reduction in genetic diversity (Maynard Smith and Haigh 1974) and generates a statistically detectable footprint in the site frequency spectrum (SFS; Kim and Stephan 2002). This forms the basis for a number of composite likelihood methods to detect selective sweeps such as SweepFinder (Nielsen et al. 2005), SweepFinder2 (DeGiorgio et al. 2016), SweeD (Pavlidis et al. 2013), and for adaptive introgression sweeps, VolcanoFinder (Setter et al. 2020).

However, many of these methods are limited in at least three fundamental ways. Firstly, their focus on summaries of average diversity and divergence discards relevant information in the co-occurrence of closely linked variants. Secondly, assuming equilibrium population dynamics has been shown to increase both false-positive and false-negative error rates (Crisci et al. 2013). Finally, current sweep-scanning approaches assume that the population has been sampled at the time of fixation of the beneficial mutation, leading to a decrease in power to detect increasingly old sweeps. Given these limitations, it remains an open question how much additional information about past selective sweeps is contained in sequence variation.

Approximating sweeps

Since the introduction of the hitchhiking model (Maynard Smith and Haigh 1974), many approximations for the effect of a selective sweep have been developed using the coalescent framework of Kingman (1982), Hudson (1983), and Tajima (1983). Here, the fixation of a new beneficial mutation has the effect of genetically structuring the ancestry at linked neutral loci (Kaplan et al. 1989; Stephan et al. 1992; Barton et al. 2004). During the sweep, coalescence can only occur among lineages on the same genetic background as the selected locus, while recombination may move lineages from the selected onto a neutral genetic background. However, analytic expressions to quantify these effects are only possible with further simplifications of the model. The genome scanning methods mentioned above are based on the star-like approximation for the selective sweep (Barton 1998, 2000; Durrett and Schweinsberg 2005; Berg and Coop 2015), which is relatively accurate, yet computationally tractable for thousands of samples (Pavlidis et al. 2013). We can view the star-like approximation as follows: assuming selection is strong (Nes1), fixation of the beneficial mutation happens nearly instantaneously on the coalescent time scale. Lineages either recombine out of the sweep individually or coalesce in a single multiple-merger event at the origin of the beneficial mutation. However, this assumption fails either when selection is weak or at intermediate recombination distances from the selective target when selection is strong, and this leads to biased parameter estimates (Barton 1998; Santiago and Caballero 2005; Hartfield and Bataillon 2020; Setter et al. 2020; Charlesworth 2020). More accurate approximations for the effect of selective sweeps on genealogies have been developed (Bossert and Pfaffelhuber 2013), which, although more cumbersome mathematically, may avoid biases in parameter estimates and genome scans. The initial growth of a beneficial mutation behaves like a supercritical branching process (Kaplan et al. 1989; Evans and O’Connell 1994; Barton 1998). Conditioned on fixation, the stochastic increase in frequency is well-approximated by a pure-birth or Yule process. The structured coalescent that describes the genealogy at a linked neutral locus is then well-approximated by marking the lineages in the Yule tree by recombination events (Schweinsberg and Durrett 2005; Etheridge et al. 2006; Pfaffelhuber et al. 2006). Thus, in contrast to the star-like approximation, lineages on the selected background are assumed to coalesce pairwise during the sweep and can later recombine out of the sweep. Modeling and simulating the sweep phase as a time interval during which the coalescent is governed by the Yule process (Hermisson and Pfaffelhuber 2008) is possible for reasonably strong selection; however, analytic results are possible only for a sample of two. We will refer to this as the full Yule approximation. An alternative approach, which extends to larger samples (tens of individuals), is to use the Yule process to derive better approximations for a model that assumes that the sweep is instantaneous (on the coalescent time scale; Etheridge et al. 2006; Bossert and Pfaffelhuber 2013). The sampling formulae derived by Bossert and Pfaffelhuber (2013) assume that a sweep partitions lineages at a linked neutral locus into three families: nonrecombining lineages, early recombining lineages, and late recombinant lineages. We will refer to this as the instantaneous Yule approximation. Like the star-like approximation, the instantaneous Yule approximation is an instantaneous partitioning of the sample, but it allows for up to two multiple-merger events (Pfaffelhuber et al. 2006).

Overview

The motivation of the present study is to develop a full analytic description of the effect of a hard selective sweep that occurred at an arbitrary time in the past on the distribution of genealogies at nearby neutral sites and to explore how this can be used to improve likelihood-based inference. We use forwards simulations throughout to quantify the robustness and accuracy of our analytic predictions and to assess the power of our method.

The paper is structured as follows: First, we briefly summarize approximate models of selective sweeps and show how a hard selective sweep occurring at an arbitrary time in the past can be embedded in the generating function (GF) for the distribution of the genealogy introduced by Lohse et al. (2011). The GF provides a recursive description of the full genealogy of a sample for a general class of structured coalescent processes with discrete events. While previous applications of the GF have focused on models of demographic history (Bunnefeld et al. 2015; Lohse et al. 2016), here, we use the GF framework to describe the genealogy at a neutral locus associated with a hard sweep occurring at a given time in the past.

Secondly, we use the GF to derive (and rederive) analytic predictions for the effect of a sweep on mean genetic diversity, the SFS, and the probability of genealogical topologies in the vicinity of a sweep target. In addition, we obtain the marginal distributions of the length of branches with i descendants among the sample (i-Ton branches) that underlie the SFS, and we compute the probability distribution of blockwise configurations of completely linked mutations (the blockwise SFS or bSFS) in the region of the genome affected by the selective sweep.

Finally, to connect these results to sequence data, we develop a simple composite likelihood framework based on the bSFS and assess the power and accuracy of our method to jointly estimate the sweep time and the strength of selection, comparing the performance of our method to that of SweepFinder2 (DeGiorgio et al. 2016). We also apply our method to the known sweep of the C/T(-13910) (rs4988235) mutation of the MCM6 gene that underlies lactase persistence in European populations and discuss the bioinformatic challenges faced when using blockwise data for inference.

Materials and methods

Evolutionary history

We consider n lineages sampled from a panmictic population of Ne diploid individuals that evolves according to a Wright–Fisher model. We initially assume that each lineage is uniquely labeled, i.e., the data are polarized relative to an outgroup and each haplotype is fully phased (we relax these assumptions when considering inference). In Figure 1, we uniquely label the lineages ancestral to each sampled individual a,b,c,d,e, and f. A coalescence event may then generate, e.g., branch type bc which is ancestral to lineages b and c.

Figure 1.

Figure 1

Model. The effect of an old selective sweep at time Ta on a sample of six lineages {a,b,c,d,e,f} at a nearby neutral site. Tracing the genealogy pastward, we first observe a neutral coalescence of the b and c lineages. The second event is the selective sweep, which occurs quickly on the time scale of coalescent events. This induces what appears to be a multiple-merger coalescence of d, e, and f (as in the star-like approximation). On closer inspection, we see the stochastic frequency trajectory of the adaptive mutation (shown in red) that structures the coalescent during the sweep. Here, the a and bc lineages recombine out of the sweep, and although the events occur in rapid succession, the remaining lineages do indeed coalesce pairwise. Prior to the sweep, neutral coalescence of the remaining lineages continues until a common ancestor is found.

We measure time pastward from sampling (T0=0) in units of 2Ne generations, i.e., on the coalescent time scale. We consider a single selective sweep of a de novo beneficial (and codominant) mutation with selection coefficient s that swept to fixation at a discrete time point Ta in the past. We define Ta as the time interval between fixation of the beneficial mutation and the time of sampling so that TaT0=0.

In the full model, the beneficial mutation sweeps through the population following a stochastic frequency trajectory X[t] satisfying X[T]=1 for TTa and for some T>Ta,X[T]=12Ne and X[T>T]=0. That is, the beneficial mutation arises as a single new mutation in a randomly chosen background at time T.

This frequency trajectory structures the coalescent process at linked neutral sites (Durrett and Schweinsberg 2004). Coalescence occurs only between lineages that share the state at the selected site. Lineage pairs currently associated with the beneficial (conversely, ancestral) allele may coalesce at rate 12NeX[t] (respectively, 12Ne(1X[t])), while any single such lineages may recombine out of (i.e., into, forwards in time) the sweep at rate r(1X[t]) per generation (respectively, rX[t]). Here, r is the rate of recombination between the selected and the neutral site.

Describing the coalescent using GFs

The ancestry of a sample can be described by the pairwise coalescence of lineages until the common ancestor is reached (Kingman 1982; Hudson 1983; Tajima 1983), and the time between these events is exponentially distributed. Any two lineages coalesce independently at rate 1 (in units of 2Ne generations), so when k lineages remain in our sample, the waiting time to the next coalescent event is (k2). Each next step is conditionally independent of the last, so the total time it takes to reach the common ancestor tmrca is distributed as the sum of the interevent time distributions of the process. Deriving the distribution of tmrca directly is not trivial and requires repeated integration, but it is easy to obtain if we describe the process using a GF. By using GFs, the distribution of the sum of independent random variables simply becomes the product of their respective GFs. By describing the distribution of random variables as a sum or integral transform, GFs provide a useful analytical tool for understanding random variables. In the GF, each variable in the time domain (tx) is associated with a corresponding “dummy” variable (ωx) in the new domain of the transform.

The GF approach as described in Lohse et al. (2011) uses the Laplace transform of the interevent times in the coalescent history. The Laplace transform is a natural choice and has a simple interpretation: it is the probability that the associated random event happens before the occurrence of some catastrophe with an exponentially distributed waiting time (Råde 1972). In coalescent terms, we can interpret the catastrophe as mutations occurring along the branches in the genealogy. Therefore, the Laplace transform of the distribution of genealogical branches is itself the probability of not seeing any mutations along the genealogy, i.e., the probability of identity in state for the sampled lineages (Lohse et al. 2011). Associating each ancestral branch type with a unique dummy variable gives the GF for the distribution of all branch types. Because of its simple form, the GF can be obtained through a straightforward recursion that accounts for all possible sequences of events (and thereby, all possible topologies). Taking the inverse Laplace transform with respect to any particular set of dummy variables, we recover the joint probability distribution of the corresponding branch lengths.

Following the notations of Lohse et al. (2011), Hermisson and Pfaffelhuber (2008), and Barton et al. (2004), we label a sample of n lineages as a set {a,b,c} and define the coalescence of the sample as a process that takes values in the set of partitions of {a,b,c}. The process starts with the set of sampled lineages Ω={{a},{b},{c}} and ends when all lineages coalesce, Ω={{a,b,c,}}.

When describing the neutral coalescent, each term in the GF will consist of n–1 factors, each corresponding to the coalescence of two distinct lineages. In our set-notation, we represent each such coalescent event by the removal of lineages i and j from the indexed set Ω and replacing them with a single lineage representing their common ancestor, giving rise to a set Ωi,j with |Ωi,j|=|Ω|1. The function Φ mathematically describes all possible events given a set of lineages, allowing us to define the recursion to obtain the neutral GF as

Φ[Ω]:=1(|Ω|2)+xΩωx·1i<j|Ω|Φ[Ωi,j], (1)

where the sum over 1i<j|Ω| represents the set of possible pairwise coalescent events among the Ω lineages and the dummy variable terms ωx are summed over all lineages x present in Ω. When |Ω|=1,Φ[Ω]=1 and the recursion ends.

Embedding sweeps in the Kingman coalescent

For times T<Ta, i.e., more recently than the selective sweep occurs, the ancestry of the sample Ω is described by the Kingman coalescent (Kingman 1982).

Although the sweep is a discrete event, following Lohse et al. (2011), we initially treat the sweep as a competing exponential process occurring at rate δ backward in time. This allows us to obtain through recursion the GF for the distribution of branch lengths in the genealogical history. By taking the inverse Laplace transform of the GF divided by δ, we recover the GF parameterized by the discrete time when the beneficial mutation reaches fixation Ta.

Φ[Ω,δ]:=1(|Ω|2)+δ+xΩωx·(1i<j|Ω|Φ[Ωi,j,δ]+δ*Φ*[Ω]) (2)

Φ* represents the recursive term for the effect of the adaptive event on the genealogy of our sample. Throughout the paper, we use the superscript * to distinguish functions corresponding to models of selection from those of the neutral model, i.e., those without a superscript. Here, we focus on two different instantaneous sweep approximations: the star-like approximation and the instantaneous Yule approximation. Both of these approximations describe the impact of a sweep as a partitioning of the extant lineages. As such, these instantaneous events do not add length to any of the branches and thus Φ*[Ω]=Φ[Ω] (see equation 1) with Ω a partition of Ω as described by either approximation. Note that Φ* no longer depends on δ, so that the sweep may only occur once in the genealogical history. Also note that each term of the GF will now contain at most n factors.

The star-like approximation

In the star-like approximation, the neutral lineages sampled at a locus d bases from the adaptive mutation independently recombine out of the sweep (i.e., they escape) with probability Pe=1eα. The parameter α measures the strength of the sweep relative to the total rate of recombination between the neutral and selected site: α=r*dsln[2Nes], where r is the per-base recombination rate, Ne is the (diploid) population size, and s is the heterozygous advantage of the beneficial mutation. From another perspective, the duration of a selective sweep (the time to fixation) is approximately tfix=2ln[2Nes]/s (in generations), and the probability that no recombination occurs during this interval, eα, depends on the total rate of recombination during the sweep through α=r*d*tfix/2. The nonrecombinant lineages that do not “escape” the sweep coalesce instantaneously to the origin of the beneficial mutation (Barton 1998, 2000; Durrett and Schweinsberg 2005). This approximation thus partitions n extant lineages into two sets, either of which may be empty, with one representing the set of m lineages that escape the sweep and the other the multiple merger of the n–m remaining lineages . The probability of observing such an event will be denoted by Pm,n, i.e., the probability that m out of n lineages escape the sweep.

The instantaneous Yule approximation

This sampling formula considers a partition into three sets and is based on the Yule approximation (Etheridge et al. 2006; Bossert and Pfaffelhuber 2013). Provided 2Nes is sufficiently large, the trajectory X[t] of a beneficial mutation under (strong) selection can be more closely approximated by considering a pure-birth process with binary splits at rate 2Nes (Schweinsberg and Durrett 2005). Forward in time, this Yule process describes the ancestry of all lineages descending from the beneficial mutation present at the end of the sweep (i.e., those with an infinite line of descent). Note that this process is stopped once there are 4Nes lineages, given that each lineage has a probability 2s of having an infinite line of descent. Genealogies under hitchhiking at neutral sites, at a recombination distance r*d from the sweep site, can then be described by marking the Yule tree along its branches with recombination events occurring at rate 2Ne*r*d. Now, letting Ω represent the set of lineages present at time Ta, we can define a labeled partition induced by the Yule process that governs the coalescent during the sweep. This partition consists of three families:

  1. |L|=l late recombinant singletons: single lineages that have recombined away from the beneficial background.

  2. A single family of early recombinants of size |E|=e: a family of lineages that recombines away after coalescing.

  3. A single nonrecombinant family of size |N|=|Ω||L||E|: a family of lineages that is identical by descent to the founder of the sweep (along a distance of at least d).

Simulations

The full model is implemented as a Wright–Fisher simulation using SLiM3.3 (Haller and Messer 2019) and msprime (Kelleher et al. 2016). Samples are extracted at a fixed number of generations after the sweep completes. Sequences are always 1 Mb in length, with the site under selection in the center. We assume a population with Ne=10,000,r=1e7 and μ=1.25e7 throughout, and simulate samples of varying size (n[4,12,20]), sweep times (Ta[0.1,0.5,1.0,2.0]), and two different strength of selection (s =0.05 or 0.005).

Power analysis

We assess the power to identify sweeps and the accuracy to infer sweep parameters (Ta and s) using a composite likelihood (CL) scheme based on the bSFS [see Lohse et al. (2016) and Results]. Neutral variation for each of the B/2 blocks of fixed length l on either side of a putative sweep target can be summarized as a vector k by counting the mutation types occurring in that block. By taking derivatives of the GF with respect to the corresponding dummy variables ωx as derived in equation (30) of Bahlo and Griffiths (2001), probabilities for all vectors k can be obtained. Blocks immediately to the right and left of the sweep target have an average distance l/2. Although we may sample a larger number of individuals n, analytic results for the bSFS are limited to smaller sample sizes. In the CL framework, we accommodate this by considering all possible subsamples of size x (we use x =4 throughout). Let P[kij] be the probability of observing a blockwise mutation configuration k at distance i*ll/2 in subsample j, 1j(nx). Summing over all (nx) subsamples of n, we can define the following CL for the sweep model,

lnCLs(θ,Ta,s)=i=1Bj=1(nx)lnP[kij]. (3)

Given an analogous likelihood under neutrality lnCL0(θ) the support for a sweep (at time Ta and of strength s) can be measured as:

ΔlnCL=lnCLs(θ,Ta,s)lnCL0(θ). (4)

We fit both models to 1000 simulated replicates with a beneficial mutation as well as to 10,000 neutral simulations. To allow comparison, we repeat the analysis on the same data using SweepFinder2 (DeGiorgio et al. 2016). To measure power, we construct ROC curves: ΔlnCL values for true (hard sweep) and false (neutral) replicates are jointly ranked in descending order, after which, for each element, both the fraction of false and true positives are determined. Note that we do not perform a sweep scan but rather assume that the position of the selective target is known.

Rather than evaluating all equations for each combination of parameter values (θ,Ta,s,Ne,r), we construct an interpolation function (third-degree polynomial) for each mutation configuration, from a grid of pre-evaluated mutation configuration probabilities in Mathematica (version 12). Evaluating a polynomial rather than the exact analytical expression reduces computation time significantly. For each replicate, inference consists of two steps: we first estimate θ, using all blocks that are sufficiently far away from the sweep site (α>12). We then obtain joint estimates of Ta and s conditional on θ. Parameter optimization is conducted on a grid (θ,Ta,s) allowing us to precompute all bSFS configurations, and run the optimization for all simulation replicates on a laptop.

Results

Time erodes the footprint of adaptive evolution

In this section, we examine how the expected footprint of adaptive evolution is affected by Ta, the time since the selective sweep. We first show results for pairwise genetic diversity (n =2) and then extend this to the SFS (n =9). A detailed analysis as well as an illustration of our approach is provided in Supplementary S1 Notebook. Note that throughout we use the superscript * to denote GFs and distributions for coalescent histories with a sweep event.

Pairwise genetic diversity

For illustration, we first derive the GF for the distribution of branch lengths in a sample of two (haploid) lineages. In this case, the two branches a and b are equivalent, and their sum is twice the time to the most recent common ancestor (tmrca). By substituting ωa+ωbωmrca=ω, we obtain the GF for tmrca. Under the neutral model, the GF is simply the Laplace transform of an exponentially distributed random variable with mean 1

ϕ=11+ω.

Using the star-like approximation of a selective sweep, the recursion for the GF with parameter δ results in:

ϕ*[ω,δ]=11+δ+ω+δP0,21+δ+ω+δP1,21+δ+ω·11+ω+δP2,21+δ+ω·11+ω.

The summed terms represent the possible sequences of events in the genealogical history of the sample and Pi,j represents the probability that i out of j lineages escape the sweep. The first term corresponds to neutral coalescence before the sweep; the second, to coalescence during the sweep. In the remaining terms, one or both lineages escape the sweep and subsequently coalesce under the standard neutral coalescent. Since we have defined the GF for a model with exponentially distributed sweep times ϕ*[ω,δ]=0δeTaδϕ*[ω,Ta]dTa. Taking the inverse Laplace transform of ϕ*[ω,δ]/δ gives us the GF for the distribution of branch lengths as a function of the time since the sweep Ta:

ϕ*[ω,Ta]=eTa(1+ω)P0,2+11+ω*((1eTa(1+ω))+eTa(1+ω)(1P0,2)).

In the limit as ω0,ϕ* becomes a sum of terms, each representing the probability of a particular genealogical history (Lohse et al. 2011). Neutral coalescence occurs before the sweep with probability 1eTa. Given that it does not (with prob. eTa), coalescence may happen during the sweep with probability P0,2, or neutrally after the sweep with probability (1P0,2). The expected time to the most recent common ancestor E[tmrca] is obtained by taking minus the derivative of the GF with respect to ω and then taking the limit as ω0 (Lohse et al. 2011). In the neutral case, E[tmrca]=1, and for the sweep scenario, substituting P0,2=e2α,E[tmrca]=1eTaP0,2=1eTa2α.

When Ta = 0, i.e., the population is sampled at the time of fixation, we recover the classic valley of diversity caused by a selective sweep (Maynard Smith and Haigh 1974; Kaplan et al. 1989; Figure 2A). By comparison, older sweeps have a reduced effect on E[tmrca]. Forwards in time, this amounts to the recovery of genetic diversity that was lost due to hitchhiking in the selective sweep. From a coalescent viewpoint, the genealogy is unaffected by selection if coalescence occurs before the sweep.

Figure 2.

Figure 2

The signature of old sweeps, star-like approximation. (A) The effect of a sweep on the expected time to the most recent common ancestor (tmrca) as a function of the distance from the sweep center (α=rsln[2Nes]) and the time since the sweep Ta. (B) The distribution (PDF) of tmrca at the sweep center, α  =  0 and at distance α=0.25. (C) The SFS for a sample of n =9 individuals.

Distribution of tmrca

The effect old sweeps have on the genealogy can be seen more clearly in the full distribution of tmrca: under the neutral model, tmrca is exponentially distributed with rate 1. The probability density (PDF) and cumulative density functions (CDF) are therefore f[t]=et and F[t]=1et, respectively. Under the selection model, we obtain the PDF by inverting the GF with respect to ω (Lohse et al. 2011). We may integrate the PDF with respect to t to obtain the CDF or alternatively, we may divide the GF by ω and then take the inverse Laplace transform. For this model, we obtain the PDF (f*) and CDF (F*) for tmrca at a neutral locus linked to the adaptive mutation:

f*[t]=et0t<Taet(1P0,2)+P0,2eTat=Taet(1P0,2)t>Ta
F*[t]=1ett<Ta1et(1P0,2)tTa

.

As expected, for times t<Ta, the PDF matches the neutral case, f*[t]=f[t], since the sweep cannot affect the genealogy during that period (Figure 2B). Since we assume that the sweep induces an instantaneous coalescent event, there is a point mass of size eTaP0,2=eTa2α at t = Ta. Indeed, at the sweep center, all coalescence occurs before or during the sweep tTa. At greater distances from the sweep center, the point mass diminishes in size. For t>Ta, only lineages that escaped the sweep may subsequently coalesce, and they do so neutrally. Thus, the probability density matches the neutral case scaled by the probability that one or both lineages escape, f*[t]=et(1P0,2)=f[t](1P0,2). Indeed, Figure 2 shows that, although the location of the discontinuity shifts as the time since the sweep increases, the probability density for t>Ta is determined only by the distance from the sweep center, α=r*dsln[2Nes].

The SFS

For moderate sample sizes, we can obtain the expected SFS as a function of both the distance from the sweep center α and Ta the time since the sweep. Distinguishing branches by the number of descendants, e.g., ωa,bω2, the set of ωi, 1in1 corresponds to the length of the branches with i descendants among the sample (i-Tons). The expected marginal lengths of i-Ton branches E[ti] can be obtained by differentiating the GF with respect to ωi, analogous to E[tmrca] described above for n =2. Normalizing by i=1n1E[ti] yields the expected frequency of mutations belonging to each i-Ton class. Figure 2C shows the SFS for a sample of n =9, at different distances from the sweep center and for increasingly old sweeps. As for the expected pairwise genetic diversity, the effect of older sweeps on the SFS is dampened. However, the relative effect differs between i-Ton classes and depends on both Ta and α. At the sweep center, α = 0, we observe a prominent excess in the proportion of singleton lineages. In contrast, outside the sweep center, α=0.25, we see an excess of both intermediate and high-frequency polymorphisms as the age of the sweep increases.

Beyond the mean—leveraging joint branch length information

Pairwise and/or average measures of sequence variation such as the SFS are drastic summaries. In order to fully capture the footprint of selective sweeps on linked neutral sequence variation, we would ideally like to compute the probability of haplotypic variation flanking a selective target. Unfortunately, this requires including recombination (including breakpoint locations) explicitly in the GF recursion which quickly becomes intractable. In the following, we focus on blocks of nonrecombining sequence and consider the effect of sweeps on three quantities of interest: the probability of genealogical topologies, the marginal distribution of i-Ton branches, and, following Lohse et al. (2016), the bSFS, the blockwise configuration of i-Ton counts.

The probability of genealogical topologies

The probability of seeing any particular topology can be found by evaluating the limit at infinity for the ω corresponding to branches that are incompatible with it (and evaluating all other ω at zero). Under the star-like approximation and for n =4, this results in five different topologies, three of which are induced by multiple mergers. For the sake of simplicity, we can distinguish between three topology classes defined by the root node: genealogies with a symmetric or asymmetric bipartition at the root and genealogies without any bi-partition (Pstar; Figure 3).

Psym=13(12e6Ta(1e3Ta)*2P0,3e6Ta(P0,4+P1,4))Pasym=13(2+2e6Ta(1e3Ta)*2P0,3e6Ta(2P0,4P1,4))Pstar=e6TaP0,4.
Figure 3.

Figure 3

Probability of genealogical topologies for n =4, star-like approximation. The probability of a genealogy with an asymmetric (light gray), symmetric (black), or star-shaped (dark gray) root node is shown for Ta = 0 (full), 0.5 (dashed), 1.0 (dotted), with increasing distance from the sweep center (left to right).

Dissecting the three terms in Psym and Pasym, the first term represents the probability of seeing (a)symmetric trees under the standard neutral coalescent. Only multiple mergers of three (second term) or four (third term) lineages will affect this probability.

The marginal distribution of i-Ton branches

The marginal distribution (PDF) of i-Ton branches, i.e., the genealogical branches underlying the SFS (Figure 2C), can be obtained by inverting the GF with respect to ωi. The resulting expressions are cumbersome and are provided in Supplementary S1 Notebook for a sample size of four, which we investigate below.

For the case of n =4 and assuming neutrality, only two topologies are possible: the first coalescence event always generates a doubleton lineage, while the second may either generate a second doubleton lineage, resulting in a symmetric topology with probability Psym=1/3, or a tripleton lineage, resulting in an asymmetric topology with probability Pasym=2/3. Thus, the marginal PDF of tripleton branches f[t3] contains a point-mass at t3=0 of size 1/3, while the PDF for t1 and t2 contain no discontinuities (Supplementary Figure S1A).

In contrast, in the vicinity of a selective sweep, we observe multiple removable discontinuities in all three marginal PDFs (Figure 4). The PDFs can be rewritten as piece-wise continuous functions combining a continuous distribution of coalescence times with point masses corresponding to either the absence of a particular branch type or a burst of coalescence caused by the sweep. Given that each class of i-Ton branches consists of multiple genealogical branches, these distributions are more intricate than for the pairwise pairwise case (f[t2] above) and are discussed further in Supplementary S1 Notebook for the case of n =4.

Figure 4.

Figure 4

Marginal i-Ton branch length distributions for n =4. Analytic predictions under the neutral model (A) and the approximate selection models (B) are compared to the corresponding distribution obtained from 10,000 simulation replicates overlaid as a histogram. The Yule approximation is indicated by solid lines while the dashed lines indicate the star-like approximation. Results for singleton, doubleton, and tripleton branch lengths are shown in blue, green, and red, respectively. The top row shows two distances from the sweep center α{0.14,0.069} and Ta=0.1. Analogous results for an older sweep at Ta=0.25 are shown in the bottom row. Time is measured in units of 2Ne generations. Here, Ne=10,000, s =0.05, and r=107. Note that the location and size of each point mass (e.g., the tripleton point mass at time t =0) is reflected in the CDF rather than the PDF (Supplementary Figure S1).

In general, for a sample of size n, the discontinuities present in the branch length distribution of each i-Ton type are determined by the total number of such i-Ton branches present during the interevent times of the coalescent process during which the selective sweep occurs. For example, there are always n singleton branches present initially, and the first coalescent event reduces this to n–2. There exists one topology in which the number of singleton branches is reduced by one in each subsequent interval. Therefore, the PDF of singletons has a total of n–1 discontinuities at t={(n)Ta,(n2)Ta,(n3)Ta,,Ta}. For i >1, there is always a point mass at t =0 due to the possibility that the first event is coalescence of all lineages during the sweep. The possible multiplicity of the (i >1)-Ton classes is determined by the ways to decompose n into smaller-valued integers and thus the number of discontinuities for i >1 is n/i+1.

Finally, we note that the star-like approximation used for the analysis provides relatively accurate predictions. In comparison to simulations, the accuracy improves only slightly using the Yule approximation (Supplementary Figure S1). For both approximations, the model underestimates the time since the sweep occurred, i.e., the location of the point-mass Ta. In our model, we assume that the duration of the sweep (on the coalescent scale) tfix/(2Ne) is negligible. In reality, the burst of coalescence occurs at the beginning of the sweep, and including this extra time in our model (substituting Ta+tfix for Ta) largely accounts for the bias.

The bSFS

Above, we used the GF to obtain the SFS by deriving the expected length of i-Ton branches. An alternative and less drastic summary of sequence variation is the bSFS, the vector of SFS counts in short blocks (Bunnefeld et al. 2015). To be able to leverage topology information, we will focus on (sub)samples of n =4. In this case, the bSFS is a vector of counts for three i-Ton types k={k1,k2,k3} where ki{0,1,kmax+1}. For example, a mutational configuration of (0, 0, 1) represents a block with only one tripleton mutation. Note that we use kmax+1 to bin all mutation configurations with more than kmax mutations of type i. If we restrict the bSFS to a maximum of kmax = 2 mutations per i-Ton type, we distinguish (kmax+2)3=64 unique bSFS configurations (given that both the absence of a particular mutation type ki = 0 and seeing >kmax mutations also define bSFS configurations).

Assuming no recombination within blocks, the bSFS can be obtained from the GF by taking successive derivatives with respect to the ωi [see eq. (1) in Lohse et al. (2011) for details]. Comparing the analytic expectation for the bSFS P[k_] to simulations (Figure 5) highlights both the accuracy of the star-like approximation (for n =4) and the robustness of the bSFS to intrablock recombination, provided blocks are short (here a recombination rate of r=107, l =100 bases).

Figure 5.

Figure 5

The bSFS for n =4 and Ta=0.1. The expected probabilities of bSFS configurations given by the star-like approximation (logscale) against their observed frequencies in 10,000 simulation replicates. Each dot corresponds to a unique bSFS configuration. Counts left and right of the selected site are added together. Each dot in the scatter plot represents a unique bSFS-configuration, counting the number of (singletons, doubletons, and tripletons). Red: (_,_,k), green: (_,k,0), blue: (k,0,0), black: (0,0,0) with k1, and _ any integer. The dotted line marks the minimal detectable frequency for the simulations. The rightmost figure shows the total probability of observing blocks within each of these categories (sweep center at α=0.0).

Power to infer old sweeps

We can use the analytic result for the bSFS obtained above to jointly estimate the sweep time and the strength of selection in a CL framework (summing lnL across both blocks and subsamples of x =4, see Materials andMethods). In the following, we quantify the power (and bias) of characterizing sweeps using the star-like approximation and test to what extent the instantaneous Yule approximation improves these estimates.

With strong selection (s =0.05), the power to infer Ta and α is high, even for fairly old sweeps (Ta=1.0), especially with samples of n12 (Figure 6). Even for small sample sizes (n =4), we get decent estimates of the sweep parameters (Figure 7). Increasing sample size (for a fixed subsample size of x =4) reduces mutational sampling noise but only increases power to estimate parameters to a limited extent (Supplementary Figure S2). The power to correctly infer sweep parameters decreases with increasing age of the sweep (Ta). This is unsurprising, given that the number of lineages that enter the sweep, and hence the information about the sweep, declines with increasing Ta.

Figure 6.

Figure 6

ROC curve, star-like approximation. Plotting the rate of true positives against the rate of false negatives shows how much power we have to distinguish genomic regions that underwent a hard sweep from neutral replicates. As expected, power depends on the time since the sweep [Ta=0.1 (green), 0.5 (lighter green), 1.0 (light brown), and 2.0 (dark brown)], the strength of selection (left s =0.05, right s =0.005) and sample size n =4 (full line), 12 (dashed).

Figure 7.

Figure 7

Heatmaps. Parameter estimates of the gridded optimization using the star-like approximation across simulations using a sample of n = 4 lineages. The top and bottom rows show strong and weak selection, respectively. The panels show the accuracy of our parameter estimates for simulation data with increasingly older sweeps (Ta=0.1,0.5,1.0,2.0 from left to right). Within the panels, each square represents a parameter combination in the test grid. The number inside each square shows the percentage of replicates (>4.5%) associated with a particular parameter combination, with darker shading corresponding to a higher density. The true simulated parameter combination is highlighted by a pink square. (A) Strong selection, s = 0.05 and (B) weak selection, s = 0.005.

When selection is weak (s =0.005), power drops off quickly for sweeps that are older than Ta=0.5, especially for small samples (n =4). The heatmap reveals that, irrespective of sample size, sweep parameters become nonidentifiable when selection is weak (Figure 7 and Supplementary Figure S3). Two effects are at play here: firstly, for weak selection, the assumption that sweeps happen instantaneously becomes problematic, as the duration of the sweep will be approximately 0.1. The fact that we estimate the time to the completion of the sweep using an approximation that assumes an instantaneous burst of coalescence at the onset will tend to bias estimates (towards higher Ta values) when the duration of the sweep is on the same order of magnitude as the time since completion (Ta0.5). Secondly, when the model becomes nonidentifiable, we see the estimates for a fraction of the replicates veer off toward either larger s or smaller Ta. Presumably, this is a consequence of the stochasticity of the coalescent which inherently limits the ability to detect a single weak sweep that affects only a small region of the genome. Depending on the particular realization of the neutral coalescent for the lineages remaining at this region, weak sweeps of intermediate age appear to be difficult to distinguish from much older and harder sweeps. We suspect that this is an inherent limitation of the signal in the data that cannot be overcome by adding more samples when the subsample size is kept small.

By contrasting ROC curves between a model with Ta = 0 and a model where Ta is free to vary, we can assess how much better the data fit an old sweep (Supplementary Figure S4). As expected, forcing Ta = 0 (a standard assumption of sweep scans), works well for recent sweeps but breaks down for older ones, i.e., power drops off in the same way previously reported for SFS-based methods (Racimo et al. 2014; Setter et al. 2020). However, when including the sweep time as a parameter, old sweeps become detectable with high power as long as they are strong.

Comparing the heatmaps and ROC curves under the star-like and the instantaneous Yule approximations (Supplementary Figures S5–S7) reveals very little difference between the two approximations in terms of accuracy and power. Root mean square errors for the estimates are nearly identical across a range of Ta estimates. We also find that old sweeps are similarly nonidentifiable under both approximations when selection is weak suggesting that the power to infer selection is inherently limited in this case.

Comparison to SweepFinder2

Analyzing the same set of simulations for SFS data using SweepFinder2, we clearly see that diagnosing sweeps using the bSFS has greater power across all parameter combinations (Supplementary Figures S8 and S10). SweepFinder2 only has power to detect strong sweeps when Ta0.1 and when n12. This increase in power is not only due to our ability to fit an additional parameter (Supplementary Figure S4). Using the bSFS clearly also allows us to extract more information from a limited number of samples (Supplementary Figure S9).

Sweeps in the lactase gene region

We applied our method to estimate the timing and strength of selection acting on the C/T(-13910) (rs4988235) mutation in the MCM6 gene. This mutation, which is at high frequency in northern European populations (Enattah et al. 2002), is associated with lactose metabolism in adulthood (Järvelä 2005) and has strong support for a hard selective sweep (Bersaglieri et al. 2004; Coelho et al. 2005; Mathieson and Mathieson 2018; Speidel et al. 2019; Stern et al. 2019; Mathieson 2020). We used phase-3 data from the 1000 genomes project (The 1000 Genomes Project Consortium 2015), restricting our analysis to the European (CEU) samples and the 4-Mb region centered on the sweep target. Because the sweep is partial, we subsampled further, using only individuals that are homozygous for the causal variant. We obtained the bSFS for nonoverlapping 1000-bp blocks along the genome, including all sites but only considering variation at biallelic SNPs. The scaled mutation rate is estimated using the GF for a neutral coalescent history.

Analyzing bSFS variation 1 Mb on either side of the causal variant, we observe strong support for a hard selective sweep at rs4988235 with maximum CL estimates of s =0.086 and Ta=0.0 for the strength and timing of the sweep. This estimate of s is substantially higher than previous estimates. Inspection of test sites at 50-kb intervals in the flanking region of the genome (see Supplementary Figure S11) reveals apparently different signals on either side of the causal variant: while there is strong support for the neutral model (s0 and Ta>2) upstream, a large (350kb) region downstream of rs498823 shows support for a selective sweep. These apparently conflicting results are an artifact of our simplifying assumption of a single estimated scaled mutation rate θ=0.44 (and selective neutrality) for the entire region, which ignores the fact that the downstream region is gene rich and so under strong selective constraint. Because the bSFS is highly sensitive to the scaled mutation rate, the neutral model poorly fits the data in this region. However, a model of strong positive selection can at least partially account for the low diversity observed, leading to inflated likelihood ratio scores. If we limit estimation of sweep parameters to the largely intergenic region upstream of rs498823 (see Discussion), we obtain a lower estimate of s =0.037, which is more in line with previous studies (Mathieson and Mathieson 2018; Stern et al. 2019).

Discussion

We have shown how the effect of selective sweeps on nearby genealogies can be incorporated into the recursive description of the genealogical histories of a sample (Lohse et al. 2011). Much like a population bottleneck which can also be approximated as a multiple merger event (Bunnefeld et al. 2015), a selective sweep can be viewed as a discrete event that affects the genealogical history of a sample of neutral lineages (Kaplan et al. 1989). However, unlike bottlenecks, selective sweeps have a local effect on neutral variation in the genome (Galtier et al. 2000), lead to topologically unbalanced genealogies, and are therefore distinguishable.

While it is straightforward to recover previous analytic results for the expected loss of pairwise genetic diversity around sweep targets (Maynard Smith and Haigh 1974; Kaplan et al. 1989) and the SFS using the GF framework, our motivation was to extend analyses beyond expected coalescent times and pairwise samples. What we gain by embedding selective sweep approximations in the GF framework is a complete analytic description of the effects of genetic hitchhiking on the distribution of genealogies. Crucially, the strength and age of selective sweeps distort genealogies at nearby neutral sites in distinct ways. While these two aspects of past selective events are hard to disentangle from the expected reduction in genetic diversity, we show that they can be jointly estimated using richer summaries of sequence variation that capture information contained in the distribution of genealogies. Specifically, we show that for a single strong selective sweep, the bSFS has reasonable power to jointly infer both parameters even for a sample of n =4 lineages. Being able to maximize the information contained in small samples not only provides an obvious avenue for CL inference but also increases the power of comparative population genetic analyses, which are still limited by the lack of large resequence data sets for most taxa.

While our test on simulated data shows that, at least in principle, a sweep scan based on the bSFS has greater power than SweepFinder2, our exploration of the lactase sweep in humans illustrates that further work is required to apply such scans to real data. The fundamental difficulty is that our assumption that sequence variation is only ever indirectly affected by sweeps is at odds with the reality of selective constraints acting on coding and regulatory sequence. Thus in practice, justifying the assumption that blockwise variation around sweeps is selectively neutral and statistically exchangeable requires careful filtering decisions on the data. Alternatively, one can try and incorporate independent prior knowledge about selective constraint and mutation rate heterogeneity (Huber et al. 2016), e.g., from background selection maps (Mcvicker et al. 2009) to model variation in θ among blocks.

Model extensions and limitations

Star-like vs Yule

Throughout this paper, we have focused on two sweep approximations. While the instantaneous Yule approximation is a more accurate description of a hard sweep than the star-like approximation, we find very little difference in terms of power and accuracy between both sampling formulae in the case of a classic hard sweep. However, it may be unsurprising that ignoring the possibility of a family of early recombining lineages has little impact given that the (sub)sample size we considered is small (Pfaffelhuber et al. 2006).

Different types of selection

Although there has been much interest in differentiating the signatures of soft and hard sweeps (Hejase et al. 2020b), previous analytic work has shown that old hard sweeps are difficult to distinguish from soft sweeps given that both cause a partial reduction in genetic diversity (Hermisson and Pennings 2005; Pennings and Hermisson 2006a, 2006b). While recent soft sweeps can be distinguished by conspicuous patterns in haplotype data (Ferrer-Admetlla et al. 2014), these associations break down relatively quickly, and an old soft sweep may be indistinguishable from a (slightly older) hard sweep (Schrider et al. 2015; Zheng and Wiehe 2019). Despite this, machine-learning methods appear capable of classifying different histories of selection (Hejase et al. 2020b). By incorporating models of soft selective sweeps (Hermisson and Pfaffelhuber 2008) into the GF framework, it should be possible to identify the characteristics signatures of these selective processes in the branch length distributions and/or gene tree topologies.

We focus on the effects of a single hard sweep. An alternative is to capture the aggregate effects of positive selection on patterns of neutral diversity throughout the genome (Juric et al. 2016; Booker et al. 2017). While the signal of any particular sweep is inherently limited (given the stochasticity of both the coalescent and the trajectories of selected alleles), one would expect there to be much more information about positive selection when aggregating signatures across the genome. Given that, for mathematical convenience, our starting point has been to assume a model in which the waiting time to a sweep is exponentially distributed with rate δ (see equation 2), the current description also yields the recursion for the GF under a model of recurrent sweeps. However, in order to obtain results for a biologically plausible and general model of recurrent sweeps at uniformly distributed selective targets, one would have to integrate over both sweep locations and the distribution of fitness effects (Stephan et al. 1992).

Joint inference of demographic history and selection

The majority of theoretical results for selective sweeps to date have assumed that there is no population structure and that, with the exception of a focal sweep, the population is at equilibrium: the adaptive mutation arises de novo in an otherwise neutral panmictic population of constant size. In reality, of course, natural populations are not at equilibrium (Brandvain and Wright 2016) and it remains challenging to jointly infer past demography and selective events (Li et al. 2012). The most successful approaches to date extend the approximate diffusion model of Kimura (1955) to describe the population-level allele frequency spectrum under nonequilibrium dynamics. However, solving the diffusion equation can be difficult. Zivković and Stephan (2011) obtain analytic results for histories of varying population size, but in combination with positive selection, only numeric solutions are possible (Williamson et al. 2005), except for very simplistic demographic histories (Evans et al. 2007). Crucially, these predictions are primarily used to infer the effects of direct selection by comparing allele frequency spectra among different classes of mutations (e.g., coding vs noncoding). While this approach can provide demographically explicit predictions for the background SFS in sweep-scanning methods (Pavlidis et al. 2013; Johri et al. 2020), results to-date are again limited to the SFS and to very recent sweeps (Ta = 0).

Even simple changes in demography, e.g., bottleneck in population size, strongly affect the power of sweep detection methods (Galtier et al. 2000; Jensen et al. 2005; Teshima et al. 2006; Stephan 2019). With the GF approach, however, it is possible to model complex and dynamic demographic histories. Because we treat the sweep as a discrete event, it too can be incorporated into general models of demography. Population structure adds further complications for detecting sweeps. For example, the VolcanoFinder method to infer adaptive introgression after secondary contact must assume complete lineage sorting, and as a consequence, its power to detect introgression sweeps is limited to highly divergent populations (Setter et al. 2020). The GF method fully accounts for the sorting of lineages, and in this context, would permit the inference of adaptive introgression even from a recently diverged donor population.

Toward more powerful inference of selection

The motivation for our analytic work is to improve the ability to make inferences about selection. We have explored one possible approach, a CL framework based on the bSFS for estimating parameters of individuals sweeps in some detail. However, there are several other promising avenues for developing inference.

Our results for the effect of sweeps on genealogical branches may prove to be powerful in the context of recent methods that infer the ARG and/or tree sequences (with or without branch length information) from phased data, such as ARGweaver (Rasmussen et al. 2014), RENT+ (Mirzaei and Wu 2017), tsinfer (Kelleher et al. 2019), and RELATE (Speidel et al. 2019). In principle, the GF framework allows to connect a sequence of marginal trees inferred by these methods to explicit models of population structure and past selection.

One direction of further research could be to directly use the topology information contained in inferred tree sequences. This should also allow us to extend the calculation of the GF to larger sample sizes. Several summary statistics have been developed to diagnose the effect of sweeps on genealogical topologies (Li and Wiehe 2013; Yang et al. 2018). This research is motivated by the fact that statistics like root imbalance are invariant to population size changes. But, as far as as we are aware, results for the effect of sweeps on the distribution of topologies are lacking and could be used to improve sweep scans. For example, the probability of asymmetric topology (i.e., a bipartition of {3, 1} in a sample of n =4) follows a nonmonotonic pattern around sweep targets. Analogous signals have been exploited to distinguish adaptive introgression sweeps from classic sweeps (Setter et al. 2020).

A final approach would be to compute the joint probabilities of the mutational configuration/branch lengths of a tree and its span. Leaving out the mutational information used to infer the tree sequences, inference would be based directly on the distribution of marginal genealogies, including the distribution of coalescence times (Weissman and Hallatschek 2017). While a full model of recombination, i.e., allowing for an arbitrary number of recombination breakpoints in a sequence, seems infeasible, it should be possible to condition the GF on there being no recombination in a stretch of sequence of a given length. Abandoning the idea of nonrecombining blocks of a fixed length would thus allow us to incorporate LD information in the sweep inference. Although the direct inspection of the marginal trees that represent the genealogical history of a sample is an exciting prospect, we still require the statistical tools to exploit the information they contain about the evolutionary process efficiently.

Data availability

The supporting figures as well as all notebooks and code used to generate and analyze the presented data can be found at https://github.com/GertjanBisschop/SweepsInTime.

Acknowledgments

The authors thank Brian Charlesworth and Matthew Hartfield for insightful comments on an earlier draft and two anonymous reviewers for their helpful suggestions.

Funding

This work was supported by a European Research Council starting grant (ERC, ModelGenomLand, 757648). K.L. is also supported by a fellowship from the Natural Environment Research Council (NERC, NE/L011522/1).

Conflicts of interest

The authors declare that there is no conflict of interest.

Literature cited

  1. Bahlo M, Griffiths RC.. 2001. Coalescence time for two genes from a subdivided population. J Math Biol. 43:397–410. [DOI] [PubMed] [Google Scholar]
  2. Barton NH. 1998. The effect of hitchhiking on neutral genealogies. Genet Res. 72:123–133. [Google Scholar]
  3. Barton NH. 2000. Genetic hitchhiking. Philosophical transactions of the Royal Society of London. Series B, Biological sciences 355:1553–1562 [DOI] [PMC free article] [PubMed] [Google Scholar]
  4. Barton NH, Etheridge AM, Sturm AK.. 2004. Coalescence in a random background. Ann Appl Probab. 14:754–785. [Google Scholar]
  5. Berg JJ, Coop G.. 2015. A coalescent model for a sweep of a unique standing variant. Genetics. 201:707–725. [DOI] [PMC free article] [PubMed] [Google Scholar]
  6. Bersaglieri T, Sabeti PC, Patterson N, Vanderploeg T, Schaffner SF, et al. 2004. Genetic signatures of strong recent positive selection at the lactase gene. Am J Hum Genet. 74:1111–1120 [DOI] [PMC free article] [PubMed] [Google Scholar]
  7. Booker TR, Jackson BC, Keightley PD.. 2017. Detecting positive selection in the genome. BMC biology 15:98. [DOI] [PMC free article] [PubMed]
  8. Bossert S, Pfaffelhuber P.. 2013. The yule approximation for the site frequency spectrum after a selective sweep. PLoS One. 8:e81738. [DOI] [PMC free article] [PubMed] [Google Scholar]
  9. Brandvain Y, Wright SI.. 2016. The limits of natural selection in a nonequilibrium world. Trends Genet. 32:201–210. [DOI] [PubMed] [Google Scholar]
  10. Bunnefeld L, Frantz LA, Lohse K.. 2015. Inferring bottlenecks from genome-wide samples of short sequence blocks. Genetics. 201:1157–1169. [DOI] [PMC free article] [PubMed] [Google Scholar]
  11. Charlesworth B. 2020. How good are predictions of the effects of selective sweeps on levels of neutral diversity? Genetics. 216:1217–1238. [DOI] [PMC free article] [PubMed] [Google Scholar]
  12. Coelho M, Luiselli D, Bertorelle G, Lopes AI, Seixas S, et al. 2005. Microsatellite variation and evolution of human lactase persistence. Hum Genet. 117:329–339. [DOI] [PubMed] [Google Scholar]
  13. Crisci JL, Poh YP, Mahajan S, Jensen JD.. 2013. The impact of equilibrium assumptions on tests of selection. Front Genet. 4:235. [DOI] [PMC free article] [PubMed] [Google Scholar]
  14. DeGiorgio M, Huber CD, Hubisz MJ, Hellmann I, Nielsen R.. 2016. SweepFinder2: increased sensitivity, robustness, and flexibility. Bioinformatics. 32:1895–1897. [DOI] [PubMed] [Google Scholar]
  15. Durrett R, Schweinsberg J.. 2004. Approximating selective sweeps. Theor Popul Biol. 66:129–138. [DOI] [PubMed] [Google Scholar]
  16. Durrett R, Schweinsberg J.. 2005. A coalescent model for the effect of advantageous mutations on the genealogy of a population. Stochastic Processes Appl. 115:1628–1657. [Google Scholar]
  17. Enattah NS, Sahi T, Savilahti E, Terwilliger JD, Peltonen L, et al. 2002. Identification of a variant associated with adult-type hypolactasia. Nat Genet. 30:233–237. [DOI] [PubMed] [Google Scholar]
  18. Etheridge A, Pfaffelhuber P, Wakolbinger A.. 2006. An approximate sampling formula under genetic hitchhiking. Ann Appl Probab. 16:685–729. [Google Scholar]
  19. Evans SN, O’Connell N.. 1994. Weighted occupation time for branching particle systems and a representation for the supercritical superprocess. Can Math Bull. 37:187–196. [Google Scholar]
  20. Evans SN, Shvets Y, Slatkin M.. 2007. Non-equilibrium theory of the allele frequency spectrum. Theor Popul Biol. 71:109–119. [DOI] [PubMed] [Google Scholar]
  21. Ferrer-Admetlla A, Liang M, Korneliussen T, Nielsen R.. 2014. On detecting incomplete soft or hard selective sweeps using haplotype structure. Mol Biol Evol. 31:1275–1291. [DOI] [PMC free article] [PubMed] [Google Scholar]
  22. Galtier N, Depaulis F, Barton NH.. 2000. Detecting bottlenecks and selective sweeps from DNA sequence polymorphism. Genetics. 155:981–987. [DOI] [PMC free article] [PubMed] [Google Scholar]
  23. Haller BC, Messer PW.. 2019. SLiM 3: forward genetic simulations beyond the Wright–Fisher model. Mol Biol Evol. 36:632–637. [DOI] [PMC free article] [PubMed] [Google Scholar]
  24. Hartfield M, Bataillon T.. 2020. Selective sweeps under dominance and inbreeding. G3 (Bethesda). 10:1063–1075. [DOI] [PMC free article] [PubMed] [Google Scholar]
  25. Hejase HA, Dukler N, Siepel A.. 2020a. From summary statistics to gene trees: methods for inferring positive selection. Trends in genetics: TIG 36:243–258. [DOI] [PMC free article] [PubMed] [Google Scholar]
  26. Hejase HA, Salman-Minkov A, Campagna L, Hubisz MJ, Lovette IJ, et al. 2020b. Genomic islands of differentiation in a rapid avian radiation have been driven by recent selective sweeps. Proc Natl Acad Sci U S A. 117:30554–30565. [DOI] [PMC free article] [PubMed] [Google Scholar]
  27. Hermisson J, Pennings PS.. 2005. Soft sweeps. Genetics. 169:2335–2352. [DOI] [PMC free article] [PubMed] [Google Scholar]
  28. Hermisson J, Pfaffelhuber P.. 2008. The pattern of genetic hitchhiking under recurrent mutation. Electron J Probab. 13:2069–2106. [Google Scholar]
  29. Huber CD, DeGiorgio M, Hellmann I, Nielsen R.. 2016. Detecting recent selective sweeps while controlling for mutation rate and background selection. Mol Ecol. 25:142–156. [DOI] [PMC free article] [PubMed] [Google Scholar]
  30. Hudson RR. 1983. Properties of a neutral allele model with intragenic recombination. Theor Popul Biol. 23:183–201. [DOI] [PubMed] [Google Scholar]
  31. Järvelä IE. 2005. Molecular genetics of adult-type hypolactasia. Ann Med. 37:179–185. [DOI] [PubMed] [Google Scholar]
  32. Jensen JD, Kim Y, DuMont VB, Aquadro CF, Bustamante CD.. 2005. Distinguishing between selective sweeps and demography using DNA polymorphism data. Genetics. 170:1401–1410. [DOI] [PMC free article] [PubMed] [Google Scholar]
  33. Johri P, Charlesworth B, Jensen JD.. 2020. Toward an evolutionarily appropriate null model: Jointly inferring demography and purifying selection. Genetics. 215:173–192. [DOI] [PMC free article] [PubMed] [Google Scholar]
  34. Juric I, Aeschbacher S, Coop G.. 2016. The strength of selection against neanderthal introgression. PLoS Genet. 12:e1006340. [DOI] [PMC free article] [PubMed] [Google Scholar]
  35. Kaplan NL, Hudsont RR, Langle CH, Hudson RR, Langle CH.. 1989. The “hitchhiking effect” revisited. Genetics 123:887–899. [DOI] [PMC free article] [PubMed] [Google Scholar]
  36. Kelleher J, Etheridge AM, McVean G.. 2016. Efficient coalescent simulation and genealogical analysis for large sample sizes. PLoS Comput Biol. 12:e1004842. [DOI] [PMC free article] [PubMed] [Google Scholar]
  37. Kelleher J, Wong Y, Wohns AW, Fadil C, Albers PK, et al. 2019. Inferring whole-genome histories in large population datasets. Nat Genet. 51:1660. [DOI] [PubMed] [Google Scholar]
  38. Kim Y, Stephan W.. 2002. Detecting a local signature of genetic hitchhiking along a recombining chromosome. Genetics. 160:765–777. [DOI] [PMC free article] [PubMed] [Google Scholar]
  39. Kimura M. 1955. Solution of a process of random genetic drift with a continuous model. Proc Natl Acad Sci U S A. 41:144–150. [DOI] [PMC free article] [PubMed] [Google Scholar]
  40. Kingman JFC. 1982. The coalescent. Stochastic Processes Appl. 13:235–248. [Google Scholar]
  41. Li H, Wiehe T.. 2013. Coalescent tree imbalance and a simple test for selective sweeps based on microsatellite variation. PLoS Comput Biol. 9:e1003060. [DOI] [PMC free article] [PubMed] [Google Scholar]
  42. Li J, Li H, Jakobsson M, Li S, Sjödin P, et al. 2012. Joint analysis of demography and selection in population genetics: Where do we stand and where could we go? Mol Ecol. 21:28–44. [DOI] [PubMed] [Google Scholar]
  43. Lohse K, Chmelik M, Martin SH, Barton NH.. 2016. Efficient strategies for calculating blockwise likelihoods under the coalescent. Genetics. 202:775–786. [DOI] [PMC free article] [PubMed] [Google Scholar]
  44. Lohse K, Harrison RJ, Barton NH.. 2011. A general method for calculating likelihoods under the coalescent process. Genetics. 189:977–987. [DOI] [PMC free article] [PubMed] [Google Scholar]
  45. Mathieson I. 2020. Estimating time-varying selection coefficients from time series data of allele frequencies. bioRxiv 2020.11.17.387761 [DOI] [PMC free article] [PubMed]
  46. Mathieson S, Mathieson I.. 2018. FADS1 and the timing of human adaptation to agriculture. Mol Biol Evol. 35:2957–2970. [DOI] [PMC free article] [PubMed] [Google Scholar]
  47. Maynard Smith J, Haigh J.. 1974. The hitch-hiking effect of a favourable gene. Genet Res. 23:23–35. [PubMed] [Google Scholar]
  48. Mcvicker G, Gordon D, Davis C, Green P.. 2009. Widespread genomic signatures of natural selection in hominid evolution. PLoS Genet. 5:e1000471. [DOI] [PMC free article] [PubMed] [Google Scholar]
  49. Mirzaei S, Wu Y.. 2017. RENT+: an improved method for inferring local genealogical trees from haplotypes with recombination. Bioinformatics. 33:1021–1030. [DOI] [PMC free article] [PubMed] [Google Scholar]
  50. Nielsen R, Williamson S, Kim Y, Hubisz MJ, Clark AG, et al. 2005. Genomic scans for selective sweeps using SNP data. Genome Res. 15:1566–1575. [DOI] [PMC free article] [PubMed] [Google Scholar]
  51. Pavlidis P, Alachiotis N.. 2017. A survey of methods and tools to detect recent and strong positive selection. J Biol Res (Greece). 24:7. [DOI] [PMC free article] [PubMed] [Google Scholar]
  52. Pavlidis P, Živković D, Stamatakis A, Alachiotis N.. 2013. SweeD: Likelihood-based detection of selective sweeps in thousands of genomes. Mol Biol Evol. 30:2224–2234. [DOI] [PMC free article] [PubMed] [Google Scholar]
  53. Pennings PS, Hermisson J.. 2006a. Soft sweeps II–molecular population genetics of adaptation from recurrent mutation or migration. Mol Biol Evol. 23:1076–1084. [DOI] [PubMed] [Google Scholar]
  54. Pennings PS, Hermisson J.. 2006b. Soft sweeps III: the signature of positive selection from recurrent mutation. PLoS Genet. 2:e186. [DOI] [PMC free article] [PubMed] [Google Scholar]
  55. Pfaffelhuber P, Haubold B, Wakolbinger A.. 2006. Approximate genealogies under genetic hitchhiking. Genetics. 174:1995–2008. [DOI] [PMC free article] [PubMed] [Google Scholar]
  56. Racimo F, Kuhlwilm M, Slatkin M.. 2014. A test for ancient selective sweeps and an application to candidate sites in modern humans. Mol Biol Evol. 31:3344–3358. [DOI] [PMC free article] [PubMed] [Google Scholar]
  57. Råde L. 1972. On the use of generating functions and Laplace transforms in applied probability theory. Int J Math Educ Sci Technol. 3:25–33. [Google Scholar]
  58. Rasmussen MD, Hubisz MJ, Gronau I, Siepel A.. 2014. Genome-wide inference of ancestral recombination graphs. PLoS Genet. 10:e1004342. [DOI] [PMC free article] [PubMed] [Google Scholar]
  59. Santiago E, Caballero A.. 2005. Variation after a selective sweep in a subdivided population. Genetics. 169:475–483. [DOI] [PMC free article] [PubMed] [Google Scholar]
  60. Schrider DR, Mendes FK, Hahn MW, Kern AD.. 2015. Soft shoulders ahead: spurious signatures of soft and partial selective sweeps result from linked hard sweeps. Genetics. 200:267–284. [DOI] [PMC free article] [PubMed] [Google Scholar]
  61. Schweinsberg J, Durrett R.. 2005. Random partitions approximating the coalescence of lineages during a selective sweep. Ann Appl Probab. 15:1591–1651. [Google Scholar]
  62. Setter D, Mousset S, Cheng X, Nielsen R, DeGiorgio M, et al. 2020. VolcanoFinder: genomic scans for adaptive introgression. PLoS Genet. 16:e1008867. [DOI] [PMC free article] [PubMed] [Google Scholar]
  63. Speidel L, Forest M, Shi S, Myers SR.. 2019. A method for genome-wide genealogy estimation for thousands of samples. Nat Genet. 51:1321–1329. [DOI] [PMC free article] [PubMed] [Google Scholar]
  64. Stephan W. 2019. Selective sweeps. Genetics. 211:5–13. [DOI] [PMC free article] [PubMed] [Google Scholar]
  65. Stephan W, Wiehe THE, Lenz MW.. 1992. The effect of strongly selected substitutions on neutral polymorphism: analytical results based on diffusion theory. Theor Popul Biol. 41:237–254. [Google Scholar]
  66. Stern AJ, Wilton PR, Nielsen R.. 2019. An approximate full-likelihood method for inferring selection and allele frequency trajectories from DNA sequence data. PLoS Genet. 15:e1008384. [DOI] [PMC free article] [PubMed] [Google Scholar]
  67. Tajima F. 1983. Evolutionary relationship of DNA sequences in finite populations. Genetics. 105:437–460. [DOI] [PMC free article] [PubMed] [Google Scholar]
  68. Teshima KM, Coop G, Przeworski M.. 2006. How reliable are empirical genomic scans for selective sweeps? Genome Res. 16:702–712. [DOI] [PMC free article] [PubMed] [Google Scholar]
  69. The 1000 Genomes Project Consortium. 2015. A global reference for human genetic variation. Nature. 526:68–74. [DOI] [PMC free article] [PubMed] [Google Scholar]
  70. Weissman DB, Hallatschek O.. 2017. Minimal-assumption inference from population-genomic data. eLife. 6:e24836. [DOI] [PMC free article] [PubMed] [Google Scholar]
  71. Williamson SH, Hernandez R, Fledel-Alon A, Zhu L, Nielsen R, et al. 2005. Simultaneous inference of selection and population growth from patterns of variation in the human genome. Proc Natl Acad Sci U S A. 102:7882–7887. [DOI] [PMC free article] [PubMed] [Google Scholar]
  72. Yang Z, Li J, Wiehe T, Li H.. 2018. Detecting recent positive selection with a single locus test bipartitioning the coalescent tree. Genetics. 208:791–805. [DOI] [PMC free article] [PubMed] [Google Scholar]
  73. Zheng Y, Wiehe T.. 2019. Adaptation in structured populations and fuzzy boundaries between hard and soft sweeps. PLoS Comput Biol. 15:e1007426. [DOI] [PMC free article] [PubMed] [Google Scholar]
  74. Zivković D, Stephan W.. 2011. Analytical results on the neutral non-equilibrium allele frequency spectrum based on diffusion theory. Theor Popul Biol. 79:184–191. [DOI] [PubMed] [Google Scholar]

Associated Data

This section collects any data citations, data availability statements, or supplementary materials included in this article.

Data Availability Statement

The supporting figures as well as all notebooks and code used to generate and analyze the presented data can be found at https://github.com/GertjanBisschop/SweepsInTime.


Articles from Genetics are provided here courtesy of Oxford University Press

RESOURCES