The fate of a mutation in a fluctuating environment
Ivana Cvijović, Benjamin H. Good, Elizabeth R. Jerison, Michael M. Desai

TL;DR
This paper explores how changing environments affect the survival of new genetic mutations, showing that environmental variability can override average selection pressures.
Contribution
The study reveals that environmental fluctuations can reduce selection efficiency and alter mutation fixation probabilities beyond time-averaged effects.
Findings
Environmental variability can make selection ineffective at distinguishing beneficial from deleterious mutations.
Temporal fluctuations often have a greater impact on mutation fixation than average selection pressures.
Mutations with average deleterious effects can fix more often than neutral or beneficial ones in fluctuating environments.
Abstract
Natural environments are never truly constant, but the evolutionary implications of temporally varying selection pressures remain poorly understood. Here we investigate how the fate of a new mutation in a variable environment depends on the dynamics of environmental fluctuations and on the selective pressures in each condition. We find that even when a mutation experiences many environmental epochs before fixing or going extinct, its fate is not necessarily determined by its time-averaged selective effect. Instead, environmental variability reduces the efficiency of selection across a broad parameter regime, rendering selection unable to distinguish between mutations that are substantially beneficial and substantially deleterious on average. Temporal fluctuations can also dramatically increase fixation probabilities, often making the details of these fluctuations more important than the…
Click any figure to enlarge with its caption.
FIG. 1
FIG. 2
FIG. 3
FIG. 4
FIG. 5
FIG. 6




























































Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsEvolution and Genetic Dynamics
Evolutionary tradeoffs are widespread: adaptation to one environment often leads to costs in other conditions. For example, drug resistance mutations often carry a cost when the dosage of the drug decays [1], and seasonal variations in climate can differentially select for certain alleles in the summer or winter [2]. Similarly, laboratory adaptation to specific temperatures [3, 4] or particular nutrient sources [5, 6] often leads to declines in fitness in other conditions. Related tradeoffs apply to any specialist phenotype or regulatory system which incurs a general cost in order to confer benefits in specific environmental conditions [7]. But despite the ubiquity of these tradeoffs, it is not always easy to predict when a specialist phenotype can evolve and persist. How useful must a trait be on average in order to be maintained? How regularly does it need to be useful? How much easier is it to maintain in a larger population compared to a smaller one?
The answers to these questions depend on two major factors. First, how often do new mutations create or destroy a specialist phenotype, and what are their typical costs and benefits across environmental conditions? This is fundamentally an empirical question, which depends on the costs and benefits of the trait in question, as well as its genetic architecture (e.g. the target size for loss-of-function mutations that disable a regulatory system). In this paper, we focus instead on the second major factor: given that a particular mutation occurs, how does its long-term fate depend on its fitness in each condition and on the details of the environmental fluctuations?
To address this question, we must analyze the fixation probability of a new mutation that experiences a timevarying selection pressure. This is a classic problem in population genetics, and has been studied by a number of previous authors. The effects of temporal fluctuations are simplest to understand when the timescales of environmental and evolutionary change are very different. For example, when the environment changes more slowly than the fixation time of a typical mutation, its fate will be entirely determined by the environment in which it arose [8]. On the other hand, if environmental changes are sufficiently rapid, then the fixation probability of a mutation will be determined by its time-averaged fitness effect [9, 10]. In these extreme limits, the environment can have a profound impact on the fixation probability of a new mutation, but the fluctuations themselves play a relatively minor role. In both cases, the effects of temporal variation can be captured by defining a constant effective selection pressure, which averages over the environmental conditions that the mutation experiences during its lifetime. This result is the major reason why temporally varying selection pressures are neglected throughout much of population genetics, despite the fact that truly constant environments are rare.
However, this simple result is crucially dependent on the assumption that environmental changes are much slower or much faster than all evolutionary processes. When these timescales start to overlap, environmental fluctuations can have important qualitative implications which cannot be summarized by any effective selection pressure, even when a mutation experiences many environmental epochs over its lifetime. As we will show below, this situation is not an unusual special case, but a broad regime that becomes increasingly relevant in large populations. In this regime, the fate of each mutation depends critically on its fitness in each environment, the dynamics of environmental changes, and the population size.
Certain aspects of this process have been analyzed in earlier studies. Much of this earlier work focuses on the dynamics of a mutation in an infinite population [11–24]. However, these infinite-population approaches are fundamentally unsuitable for analyzing the fixation probabilities of mutations that are neutral or deleterious on average (and even for mutations that are beneficial on average, population sizes must often be unrealistically large for this infinite population size approximation to hold). Another class of work has focused explicitly on finite populations, but only in the case where the environment varies stochastically from one generation to the next [25–31]. Later work has extended this analysis to fluctuations on somewhat longer timescales, but this work is still restricted to the special case where selection cannot change allele frequencies significantly during an individual environmental epoch [9, 32, 33].
These studies have provided important qualitative insights into various aspects of environmental fluctuations. However, we still lack both a quantitative and conceptual understanding of more significant fluctuations, where selection in each environment can lead to measurable changes in allele frequency. This gap is particularly relevant because significant changes in allele frequency are the most clearly observable signal of variable selection in natural populations.
In this work, we analyze the fate of a new mutation that arises in an environment that fluctuates between two conditions either deterministically or stochastically on any timescale. We provide the first full analysis of the fixation probability of a mutation when evolutionary and environmental timescales are comparable and allele frequencies can change significantly in each epoch. We find that even in enormous populations, natural selection is often very inefficient at distinguishing between mutations that are beneficial and deleterious on average. In addition, substitution rates of all mutations are dramatically increased by variable selection pressures. This can lead to counterintuitive results. For instance, mutations that result in a tradeoff but are predominantly deleterious during their lifetime can be much more likely to fix than mutations that are always neutral or even beneficial. Thus it may often be difficult for populations to maintain specialist traits, even when loss of function mutations are selected against on average. This can lead to important signatures on the genetic level, e.g. in elevated rates of non-synonymous to synonymous substitutions (dN/dS) [34].
MODEL
We consider the dynamics of a mutation that arises in a haploid population in an environment that fluctuates over time. We assume the population has constant size N (neglecting potential seasonal changes in the size of the population) and denote the frequency of the mutant at time t as x(t). In the diffusion limit, the probability density function of the frequency of the mutant, f(x, t), evolves according to the standard single-locus diffusion equation with a time-varying selection coefficient [35] [eqn]
We focus on the case where the environment fluctuates between two conditions, where the (log) fitness effects of the mutation are [eqn] and [eqn], respectively. Note that [eqn] is the arithmetic average of the log fitness, which corresponds to the geometric mean of the absolute fitness. We neglect longer-term changes in selection pressures, so that s(t) will fluctuate between s1 and s2 in discrete environmental epochs (Fig. 1A). Through the bulk of our analysis we will focus on the case of a mutation with a strong pleiotropic trade-off, such that [eqn] and Ns ≫ 1. In other words, selection in each epoch is strong compared to drift and compared to the time-averaged selection pressure. While this will not be generically true, the effects of fluctuations will turn out to be most dramatic for those mutations that fall into this regime, and we consider violations of these assumptions in the Supplementary Information. We note that this does not imply that the trait is nearly neutral on average since selection can still be strong in the traditional sense [eqn].
Fitness and frequency trajectories. (A) Sample fitness trajectory. The mutation arises at a random point in time. (B) Epochs have average length 〈T〉 = τ and variance var (T) = δτ2. (C),(D) Examples of frequency trajectories for environmental fluctuations that are (C) fast and (D) slow compared to the timescale of selection. In both panels, N = 106, s = 10−2, δτ = 0.1; in panel C, , sτ = 1 and in panel D, , sτ = 10.
We assume that the duration of each epoch is drawn at random from some distribution with mean τ and variance δτ^2^ (Fig. 1B). For simplicity, we assume that the distribution of epoch lengths is the same for both environments through most of the analysis, but our approach can easily be generalized to the asymmetric case as well (see Supplementary Information). Through most of our analysis we focus on the case where the mutation rate, μ, is low enough that we can ignore recurrent mutation between the allelic types (Nμ ≪ 1). However, we show in the Supplementary Information that our analysis and conclusions also extend to the regime in which the mutation rate is high (Nμ ≫ 1). We discuss the relationship between our model and those employed in previous work in more detail in the Supplementary Information.
Timescales of environmental variation
The fate of a new mutation will crucially depend on how the characteristic timescale of environmental fluctuations, τ, compares to the typical lifetime of a new mutation. For example, in the extreme case where environmental fluctuations are very slow, each mutant lineage will either fix or go extinct during the epoch in which it arose. Thus, its fate is effectively determined in the context of a constant environment in which it is either strongly beneficial or strongly deleterious. The fixation probability of such a mutation has been well-studied, and can be most easily understood as a balance between the competing forces of natural selection and genetic drift. We briefly review the key results here, since they will serve as the basis for the rest of our analysis below.
While the mutation is rare, genetic drift dominates over natural selection, and the mutant allele drifts in frequency approximately neutrally. When the mutation is more common, natural selection dominates over genetic drift: a beneficial mutation increases in frequency deterministically towards fixation, and a deleterious mutation declines deterministically towards extinction. To determine the threshold between these two regimes, we ask whether significant changes in allele frequency are driven by selection or drift. According to Eq. (1), natural selection changes the frequency of a rare allele substantially (i.e. by of order x; see [36] for details) in a time of order t = 1/s generations. In this time, genetic drift leads to a change in frequency of order [eqn]. Thus there is a critical frequency [eqn] where these forces are comparable. Below xsel, genetic drift drives substantial changes in allele frequencies before natural selection has time to act, while above xsel natural selection dominates over drift.
In the drift-dominated regime where x < xsel, the probability that a lineage at frequency x drifts to frequency xsel before going extinct is approximately [eqn].Thus a new mutation [eqn] will reach this threshold with probability of order [eqn]. If the mutation arose during a beneficial environment, it will then grow logistically [eqn] and will fix in about [eqn] generations. On the other hand, if the mutation arose during a deleterious environment, it cannot increase in frequency substantially above xsel and will typically go extinct within [eqn] generations. Given equal probabilities of arising in either environment, the net fixation probability is therefore [eqn]
This will hold provided that the environment changes slowly enough that the mutation will have fixed or gone extinct by the end of that environmental epoch (sτ ≫ 2 log(Ns)); see Supplementary Information for further discussion and analysis of the correction due to finite epoch lengths.
In contrast, whenever sτ ≪ 2 log(Ns), a mutant lineage will experience many beneficial and deleterious epochs before it can fix. In this case, environmental fluctuations can have a dramatic influence on the frequency trajectory of a new mutation (Fig. 1). For example, when sτ > 1, selection within each epoch will drive the mutant frequency to very high and very low values, but because sτ ≪ 2 log(Ns), the mutation will experience many of these dramatic reversals before it fixes or goes extinct (Fig. 1D).
An effective diffusion process
Since we aim to predict the long-term fate of the mutation, we are primarily concerned with how multiple epochs combine to generate changes in the allele frequency. This suggests that we define an effective diffusion process which integrates Eq. (1) over pairs of environmental epochs, similar to the earlier approaches of [32] and [9]. This yields a modified diffusion equation, [eqn] where x now represents the frequency of a mutation at the beginning of a beneficial epoch, and time is measured in pairs of epochs (Fig. 1C,D). Equation (3) also leads to a corresponding backward equation, [eqn] for the fixation probability, p(x), as a function of x [35]. Here, 〈δx〉 and 〈δx^2^〉 are the first two moments of the change in frequency in a single timestep, and must be calculated by integrating Eq. (1) over a pair of epochs. These functions will be independent of time, but will generally have a more complicated dependence on x than the coefficients in Eq. (1). In this way, we can reduce the general problem of a time-varying selection pressure to a time-independent diffusion process of a different form. The only caveat is that this process describes the fate of a mutation starting from the beginning of a beneficial epoch, while mutations will actually arise uniformly in time. Thus, we must also calculate the frequency distribution of a mutation at the beginning of its first full beneficial epoch, so that we can compute the overall fixation probability pfix by averaging p(x) over this range of initial sizes.
In the following sections, we calculate 〈δx〉 and 〈δx^2^〉and solve the resulting diffusion equation for p_fix_ as a function of [eqn], s, τ, δτ, and N. We begin by analyzing the problem at a conceptual level, to provide intuition for the more formal analysis that follows.
HEURISTIC ANALYSIS
We first consider the simplest case of an on-average neutral mutation in a perfectly periodic environment ([eqn], δτ = 0). In this case, the effects of environmental fluctuations are primarily determined by how rapidly selection acts relative to the rate of environmental change. When τ is much less than 1/s, selection barely alters the frequency of the mutation over the course of a single epoch. We can then add up the contribution of multiple epochs in a straightforward manner (see Supplementary Information), and we find that the coarse-grained process is indistinguishable from a neutral mutation in a constant environment [9, 32].
In contrast, when τ is much greater than 1/s (but still shorter than the fixation time), natural selection dramatically alters the frequency of a mutation within a single epoch, and the effects of environmental fluctuations will play a much larger role. For example, the fate of a mutation now crucially depends on the precise time at which it arises. If it arises early in a deleterious epoch, it will be driven to extinction long before the environment shifts. Since a deleterious mutation with cost s can survive for at most of order 1/s generations, the mutation must arise within the last 1/s generations of a deleterious epoch to avoid extinction. Similarly, if the mutation arises late in a beneficial epoch it might increase in frequency for a time, but these gains will be reversed in the subsequent deleterious epoch, when the fitness of the mutation switches to −s (see Figure 2A). Therefore, the mutation must arise within the first ∼1/s generations of a beneficial epoch in order to avoid extinction (i.e. within the “window of opportunity”, Fig. 2A). We let τc = 1/s denote the length of the critical period in each epoch when a successful mutation can arise. Since mutations occur uniformly throughout each epoch, only a fraction τc/τ ≪ 1 will arise at the “right” time; all others are certainly destined for extinction.
A schematic illustration of the concepts in the heuristic section. (A) All mutations that arise outside of the window of opportunity near the beginning of a beneficial epoch are destined to go extinct. Within a pair of environmental epochs, genetic drift is strongest within 2τc generations of the mutant being most rare as long as the frequency of the mutant is below x1/2 at the beginning of the beneficial epoch. If the mutant starts the beneficial epoch at x1/2, selection will take its frequency to 1 − x1/2 by the end of that epoch. The dominant evolutionary force depends on the frequency of the mutation. (B) When the average selection pressure and the variation in epoch lengths are weak, genetic drift dominates all other evolutionary forces. The mutation thus drifts neutrally below x1/2, at which point it has a fixation probability of 1/2. This picture applies regardless of whether xsel is large or small compared to xseas. (C) When the average selection pressure is sufficiently large, xsel ≪ x1/2 and xsel ≪ xseas. The mutation drifts neutrally below xsel, after which its dynamics are deterministic and dominated by natural selection. This picture holds regardless of whether xseas is large or small compared to x1/2. (D) When the variation in epoch lengths is large enough, xseas is less than both xsel and x1/2. The mutation first drifts neutrally below xseas. Above this critical frequency, both natural selection and seasonal drift are potentially important, depending on the magnitudes of xseas, xsel and x1/2.
If a mutation does arise during this critical time, its future behavior is characterized by a series of dramatic oscillations in frequency, which can drive an initially rare mutant to high frequencies (and back) over the course of a single cycle (Fig. 1D). Since selection is efficient within each epoch (Ns ≫ 1), the effects of genetic drift are dominated by the period within of order τc = 1/s generations of the beginning and end of each epoch, when either the mutant or the wildtype becomes rare (Fig. 2A). However, provided that the mutation starts at a frequency x ≪ e^-sτ/2^, the dominant contribution to genetic drift comes from periods where the mutant is rare, since the wildtype remains above frequency x throughout the environmental cycle. As a result, the contributions from drift are dominated by the first ∼ τc generations and the last ∼τc generations of the cycle, when the frequency of the mutant is still close to x. Thus, the overall magnitude of drift is reduced by a factor of τc/τ, but the dynamics of the mutation are otherwise neutral. This approximation breaks down when the frequency of the mutation is of order e^-sτ/2^, since genetic drift near the middle of the cycle (while the wildtype is rare) starts to play a larger role. This drift, when propagated to the end of the cycle, ultimately leads to a net increase in the average frequency of the mutant and the effective diffusion process is no longer neutral (see Supplementary Information).
Fortunately, by the time that the mutation reaches an initial frequency of e^-sτ/2^, we know that it must have an equal chance of fixing or going extinct. In other words, x1/2 = e^-sτ/2^ is the special frequency at which p(x1/2) = 1/2. This is a consequence of the inherent symmetry of the problem: when the mutant begins a beneficial epoch with frequency x1/2, the wild-type will have frequency x1/2 at the end of that epoch, and the situation will be exactly reversed – hence, the mutant and wild-type must have the same fixation probability (Fig. 2A).
Given that p(x1/2) = 1/2, we can calculate the fixation probability of a new mutation while it is rare, without having to consider the dynamics above x1/2. We have seen that there is a probability ∼ τc/τ that the mutation arises at the right time; otherwise it is certain to go extinct. Provided that it arises at the right time, the mutation has an initial frequency of [eqn], and it drifts neutrally to frequency x1/2 with [eqn] (Fig. 2B). Since it is equally likely to fix or go extinct at this point, the net fixation probability is simply [eqn] where we have also included an 𝓸(1) factor of 4/π, which is derived in the formal analysis be is derived in the formal analysis below. We note that the same line of reasoning can be applied to the fast-switching (sτ ≪ 1) case as well, provided that we redefine τc = τ and x1/2 = 1/2. With these definitions, we recover the standard result that pfix = 1/N when sτ ≪ 1 [32]. In contrast, when 1 ≪ sτ ≪ log(Ns) the fixation probability in Eq. (5) is much larger than 1/N (and eventually saturates to s when sτ ≫ log(Ns)). In other words, an on-average neutral mutation in a fluctuating environment is much more likely to fix than a strictly neutral mutation. This has important implications for the maintenance of specialist phenotypes, which we revisit in more detail in the Discussion.
The reduced efficiency of selection
It is straightforward to extend this picture to mutations that are beneficial or deleterious on average [eqn]. As in the constant environment case, we must consider the relative contributions of selection and drift to the net change in the mutant frequency. Over a pair of epochs, the average selection pressure will alter the frequency of the mutation by a factor of order [eqn], which leads to small changes of order [eqn] when [eqn]. Thus, selection requires approximately [eqn] pairs of epochs to change the frequency of the mutation by of order x. Meanwhile, the contribution from drift over a single cycle is of order ^[eqn]^, so the cumulative drift that accumulates over [eqn] cycles is ≈ [eqn]. By comparing the magnitudes of these terms, we find that there is a critical frequency [eqn] above which selection operates efficiently. If [eqn] is small enough that xsel ≫ x1/2, then the average selection pressure will not have time to influence the fate of the mutation before it reaches x1/2 (Fig. 2B), and it will fix with the same probability as Eq. (5). On the other hand, if xsel ≪ x1/2, then the mutation will drift to frequency xsel with [eqn], and will then deterministically fix or go extinct depending on the sign of [eqn] (Figure 2C). The threshold between these two behaviors occurs at [eqn], where we have defined [eqn] which includes an additional factor of 1/2 derived in the formal analysis below. The total fixation probability is therefore given by [eqn]
For mutations with [eqn], the fixation probability does not depend on the average selection coefficient and can be much higher than the fixation probability of neutral mutations in a constant environment. When fluctuations are strong (sτ ≫ 1), this “drift barrier” at s* is much larger than the traditional value of [eqn] in a constant environment. Thus, we see that in addition to raising the overall fixation probability of nearly neutral mutations [eqn], environmental fluctuations also elevate the minimum fitness effect required for selection to operate efficiently.
The role of seasonal drift
Of course, environmental fluctuations in nature are never truly periodic, so it is natural to consider what happens when we allow for stochastic variation in the length of each epoch. To illustrate these effects, it is useful to first return to the case where [eqn]. When the duration of consecutive epochs is no longer deterministic, the increase in frequency during a beneficial epoch may not always be balanced by the decrease in frequency during the following deleterious epoch. These imbalances change the frequency of the mutation by multiplicative factors of e^sΔT^, which serve as an additional source of variation alongside genetic drift. However, the nature of this “seasonal drift” is very different from ordinary genetic drift, since it does not act on each individual independently. Instead, the e^sΔT^ factors lead to correlated fluctuations across the whole mutant lineage. Thus, the relative changes from seasonal drift do not decrease at higher frequencies as they do for genetic drift. When sδτ ≪ 1, the seasonal drift over a pair of epochs leads to a change of order sδτx, while we have seen that the contribution from genetic drift over the same period is of order [eqn]. This means that there is a critical frequency [eqn] above which seasonal drift dominates over genetic drift.
If xseas ≫ x1/2, then seasonal drift will have little time to influence the fate of the mutation before it has an equal chance of fixing or going extinct (Fig. 2B and Fig. 2C), and the fixation probability will remain the same as Eq. (5). On the other hand, if xseas ≪ x1/2, or [eqn] then there will be a broad range of frequencies where seasonal drift is the dominant evolutionary force (Fig. 2D). In large populations, this condition can be satisfied even when sδτ (and sτ) are extremely small. For frequencies above xseas, the multiplicative changes of seasonal drift cause the logarithm of the mutant frequency to un-dergo an unbiased random walk, so that the probability of reaching x1/2 before returning to xseas is approximately log (x/xseas) / log x1/2/xseas). The probability that the mutation reaches the seasonal drift region (i.e. that it drifts to c · xseas for some order one constant c) is proportional to [eqn]. The total fixation probability is therefore of order [eqn]
Since the right hand side of Eq. (9) is much larger than 1/N in this regime, we see that just a small amount of seasonal drift can dramatically enhance the fixation of on-average neutral mutations, even when sτ ≪ 1. In addition, since pfix now decays as a logarithm of N, the relative enhancement becomes even more pronounced in larger populations.
The addition of selected mutations [eqn] can be treated in an analogous manner, except that we must now compare the strength of selection with both genetic and seasonal drift. If [eqn] is sufficiently large that xsel ≪ xseas, the mutation will reach frequency xsel with probability [eqn] and fix or go extinct deterministically as before (regardless of whether xseas is large or small compared to x1/2; Fig. 2C). On the other hand, when xsel ≫ xseas, selection primarily operates in the seasonal drift regime (Fig. 2D), where the logarithm of the mutation frequency undergoes a biased random walk with mean [eqn] and variance (sδτ)^2^. When [eqn], seasonal drift requires roughly log^2^(x1/2/xseas)/(sδτ)^2^ pairs of epochs to carry a mutation from xseas to x1/2. If the relative change due to [eqn] is small over this timescale, then the average selection pressure will barely bias the trajectory of the mutation before it reaches x1/2, and the fixation probability will be identical to the on-average neutral case in Eq. (9). This will be true provided [eqn], where we now have [eqn] which includes the appropriate factor of 1/2 derived in the formal analysis below. On the other hand, if [eqn], then selection dominates over seasonal drift and the fixation probability again approaches either [eqn] or 0. Thus, we see that seasonal fluctuations again lead to a fixation probability of the form in Eq. (7), but with s* now defined by Eq. (10). In other words, seasonal drift also leads to an increase in the fitness effects required for natural selection to operate efficiently. But as we saw for the neutral fixation probability in Eq. (9), this increase is even more pronounced when seasonal drift becomes important.
FORMAL ANALYSIS
We now turn to a formal derivation of the results described above. We begin by calculating the moments of the effective diffusion process in Eq. (4). As in the heuristic analysis above, we will work in the limit that [eqn]τ ≪ 1 and sδτ ≪ 1. When either of these assumptions is violated, the change in frequency over a pair of epochs is no longer small and the effective diffusion approximation is no longer appropriate. We discuss violations of these assumptions in the Supplementary Information.
To calculate the moments of the effective diffusion, we must integrate the dynamics in Eq. (1) over an entire environmental cycle. When environmental switching is fast (sτ ≪ 1), the frequency of the mutant lineage cannot change substantially within the cycle. The overall changes in the frequency of the mutant can therefore be obtained from a short-time asymptotic expansion of Eq. (1) derived in the Supplementary Information. We can then average over the epoch lengths to obtain the moments of the effective diffusion equation [eqn]
In the absence of seasonal drift (δτ = 0), we recover the standard moments for a mutation with fitness effect [eqn] in a constant environment, where time is measured in units of 2τ generations. When δt > 0, seasonal drift leads to additional terms in both the mean and variance of δx, consistent with the multiplicative random walk described in the heuristic section.
These short-time asymptotics break down when environmental switching is slow (sτ ≫ 1), since we can no longer assume that the frequency of the mutation is approximately constant during a cycle. In this case, however, we can now model the peaks of each cycle (when either the mutant or wildtype is rare) using standard branching process methods, with asymptotic matching at intermediate frequencies. Provided that the mutant is not so common that it is likely to fix over the course of the cycle (x ≪ 1 − e^sτ^/N s), we show in the Supplementary Information that the moments of the effective diffusion equation are given by [eqn]
When x ≪ x1/2, these moments are similar to the fastswitching regime above, except that genetic drift is reduced by a factor of τc/τ = 1/(sτ). For x ≳ x1/2, we see that additional terms arise due to genetic drift near the middle of the cycle, which increase both the mean and variance of δx.
In order to extend this solution to frequencies above x ≳ 1 − e^sτ^/N s, it is useful to consider the corresponding diffusion process for the wildtype frequency. By construction, the moments of this effective diffusion process are identical to Eq. (12) (with [eqn])and the two sets of moments now cover the entire range of mutant frequencies. We can then find the total fixation probability p(x) by matching the corresponding solutions of Eq. (4) at some intermediate frequency where both sets of moments are valid (e.g. at x = x1/2). Finally, we obtain the fixation probability of a new mutation by averaging over the frequency of the mutant lineage at the beginning of the first full cycle it encounters. We carry out these calculations in detail in the Supplementary Information.
In both the fast and slow switching limits, we find that the fixation probability of a new mutant in a fluctuating environment satisfies a modified version of Kimura’s formula, [eqn] where s* is defined in Eqs. (6) and (10). Equation (13) shows that the relevant fitness effect is the average fitness [eqn], but that environmental fluctuations lead to a modified drift barrier s*, which is independent of [eqn] but depends on the other parameters: N, s, τ, and δτ. We compare this predicted parameter collapse to the results of Wright-Fisher simulations in Fig. 3, and compare our predictions for s* with simulations in Fig. 4. These results are in full agreement with our heuristic analysis: mutations with average fitness effect [eqn] will fix with a probability approximately equal to 2*s**, beneficial mutations with [eqn] will fix with probability [eqn], and deleterious mutations with [eqn] will have an exponentially small probability of fixation given by [eqn].
The effects of environmental fluctuations on the fate of a new mutation are well summarized by a change in the drift barrier, s. Here, s* is independent of the average fitness, , but depends on the population size and the dynamics of environmental fluctuations. Colored points show Wright-Fisher simulations of mutant lineages arising at random points in time, performed for a range of epoch lengths and variances in epoch time. Here N = 106, s = 10−2, and var (τ)/τ2 varies from 10−4 to 10. The different colors distinguish between simulations in which switching rates were different and the different shapes distinguish between mutations that are on average beneficial (upward triangles), neutral (circles) and deleterious (downward triangles). The full lines show the theoretical predictions for the fixation probability in the effective diffusion limit (Eq. (13)) and the dotted line shows the probability of fixation in a single environmental epoch (Eq. (2)).*
The increase in drift barrier, s, relative to its value in a constant environment as a function of the strength of selection, Ns. The value of s* was measured using Wright-Fisher simulations of an on average neutral mutant (symbols). Lines show theoretical predictions. Fast switching (sτ = 0.1) is shown in blue and slow switching (sτ = 10) in orange. Here s = 10−2 and N ranges from 103 to 108 to obtain the values of Ns shown.*
DISCUSSION
In this work, we have analyzed how temporal fluctuations alter the dynamics and fixation probability of a new mutation. We find two main qualitative impacts. First, fluctuations reduce the efficiency of selection. This efficiency is commonly quantified by the ratio of fixation probabilities of beneficial and deleterious mutations, [eqn]. We have shown here that this ratio continues to exhibit a simple exponential dependence on [eqn], [eqn] even in the presence of environmental fluctuations. As in a constant environment, Eq. (14) implies that selection cannot distinguish between beneficial and deleterious mutations when [eqn] is less than the “drift barrier” s*, and that selection becomes exponentially more efficient for mutations with [eqn]. We have shown here how environmental fluctuations increase the drift barrier s*, broadening the range over which selection cannot distinguish between beneficial and deleterious mutations.
Given the similarity of Eq. (14) to the constant environment case, where [eqn], it is tempting to define an “effective population size” Ne = 2/s*. This would attribute the decreased efficiency of selection to an increased variance in offspring number arising from variability in the environment. However, we have shown that this intuition is misleading, since the offspring number fluctuations caused by environmental variation do not affect individuals independently. This leads to behavior which cannot be captured by an effective population size [e.g., neutral fixation times which do not scale as Ne but rather as [eqn].
These correlated fluctuations are also responsible for the second effect of environmental fluctuations: an overall increase in the fixation probability of all mutations. This increased rate of fixation can lead to counterintuitive results. For example, consider a mutation that is deleterious on average ([eqn] < 0) in a fluctuating environment. As is apparent from Fig. 5, the fixation probability of such a mutation can be much larger than 1/N, the fixation probability of a mutation that is neutral in both environments (e.g. a strictly neutral synonymous mutation). In fact, a mutation that is on average deleterious can be more likely to fix than a mutation that is on average beneficial, depending on the statistics of environmental fluctuations relevant to the two (e.g. see crossover between blue and orange lines in Fig. 5). In particular, if we compare the deleterious mutation above to a beneficial mutation of the same magnitude in a constant environment, the ratio of their fixation probabilities is given by [eqn]
The dependence of the fixation probability on the rate and regularity of environmental fluctuations. The fixation probability has been scaled by the fixation probability of a neutral mutation in a constant environment, 1/N. In all simulations, N = 106, s = 10-2, and the other parameters are shown in the plot. As the variance increases, the fixation probability becomes higher and the average fitness effect, , plays an increasingly smaller role. The fixation probability is also higher if the environmental changes are slower.
Due to the dramatic increase in s* by environmental fluctuations (Fig. 4), this ratio can often be much greater than one, reflecting a higher substitution rate of onaverage deleterious mutations with a fluctuating selection coefficient compared to always beneficial mutations of the same average magnitude. The fate of a mutation can thus be more strongly influenced by the dynamics of environmental fluctuations than by its average fitness effect. At some level this is not surprising, since this behavior trivially arises whenever a deleterious mutation sweeps to fixation in a single beneficial epoch (and pfix ≈ s). However, our results show that this is still true even when environmental changes are rapid enough that the mutation experiences many beneficial and deleterious epochs in its lifetime. This implies that fluctuations can accelerate sequence divergence and increase quantities such as dN/dS even when the population is not adapting on average. This potential consequence of fluctuating selection on rates of adaptation has been pointed out previously in the context of slow environmental fluctuations, and analyzed using the concept of “fitness flux” [10].
Our findings have important implications for the maintenance of regulatory functions in the face of a changing environment. In contrast to previous work which primarily focuses on traits which are essential in one of the two environments [7, 37], our analysis here applies to traits with more subtle costs and benefits (see [38] for a recent review). For example, bacterial regulatory mechanisms can provide an important advantage in a specific environment, but are typically costly otherwise (e.g. in the case of the lac operon s ≈ ±10% [39]). Assuming that environmental changes occur on the order of a day (τ ≈ 10 generations) and that N can easily exceed 10^6^, these populations will likely be in the regime where 1 ≲ sτ ≪ 2 log(Ns). Depending on the time spent in each environment, our analysis shows that the population can be extremely susceptible to invasion by lossof-function mutations even if the regulatory mechanism provides an overall benefit across environmental conditions. This can make it much more difficult for a population to maintain the regulatory mechanism, leading to a “Muller’s ratchet”-like effect in which the time-averaged fitness declines over time. Furthermore, it may be equally difficult to maintain regulatory traits even in very large populations, since the drift barrier declines only logarithmically with N when environmental fluctuations are irregular.
Phase diagram showing the various regimes discussed in the paper, as a function of the magnitude of environmental fluctuations (sδτ) and the average timescale of environmental fluctuations (sτ). The shaded regions are the only ones in which the environmental fluctuations do not change the drift barrier, and so the effect of environmental fluctuations can be summarized by an effective fitness. The black line separates the region in which genetic drift is the dominant source of stochastic fluctuations in the lineage size from the region in which seasonal drift has a more significant effect. The effect of an increase in the population size on the boundaries of the regions is shown in orange.
In addition to predicting fixation probabilities, our results also specify the regimes in which the evolutionary process is altered as a result of changing environmental conditions. We might have assumed that fate of a mutation is determined by its average strength of selection whenever it experiences many beneficial and deleterious epochs over the course of its lifetime (i.e. whenever sτ < 2 log(Ns)). When environmental fluctuations are both rapid and extremely regular (sτ ≪ 1 and [eqn] this is indeed the case. However, our analysis shows that there is also a broad regime in which environmental fluctuations lead to dramatic changes in the evolutionary process that cannot be summarized by a simple change in the effective selection coefficient (see Figure 6). This can happen for two reasons: (1) either selection within each environment is strong enough, or the duration of each epoch is long enough, that sτ is no longer vanshingly small, or (2) environmental fluctuations are sufficiently irregular that seasonal drift becomes important (Fig. 6).
It is not a priori clear which regime is most relevant for natural populations, largely due to the difficulty in measuring time-varying selection pressures in their native context. For a randomly chosen combination of s and τ, the rate of environmental fluctuations will often be either very fast or very slow, and the behavior described here will not apply. However, the region between these two limits becomes larger as the size of the population increases (see Figure 6), both because longer fixation times permit more extreme frequency oscillations and also because genetic drift becomes weaker relative to seasonal drift. Moreover, given a distribution of fitness effects of new mutations, it is natural to expect that some alleles will exhibit long-lived oscillations of the type studied here. Tradeoffs in this regime are arguably the most likely to be directly observed in natural populations, precisely because they exhibit frequency changes that can be measured from time-course population sequences.
For example, a recent study has identified numerous polymorphisms in natural D. melanogaster populations that undergo repeated oscillations in frequency over the course of the year (10 generations) [2]. Although the oscillations in many of these SNPs are likely driven by linkage to other seasonally selected sites, these data suggest that there are at least some driver alleles with sτ ≈ 1. The annual variation in the sizes of these populations may contribute important effects that our model does not consider, but in a population of N ≈ 10^5^ individuals, seasonal drift would be more significant than genetic drift as long as δτ/τ ≫ 0.01, corresponding to a variance in the lengths of seasons on the order of a single day.
In our analysis so far, we have primarily discussed the case where mutations incur a strong pleiotropic tradeoff and the average selection coefficient is much less than 1/τ. When either of these conditions is violated, the fate of a mutation is predicted by its time-averaged fitness effect and does not otherwise depend on the dynamics of environmental variation (see Supplementary Information). We have also assumed that the variance in epoch lengths is not too large, so that the changes due to seasonal drift in each cycle are small (sδτ ≲ 1). When this assumption is violated, the effective diffusion approximation in in Eq. (3) can technically no longer be applied. However, many of our heuristic arguments remain valid, and we expect qualitatively similar behavior of the fixation probability. We leave a more detailed treatment of this regime for future work.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1Drlica, K. (2003) The mutant selection window and antimicrobial resistance. Journal of Antimicrobial Chemotherapy 52, 11–17.
- 2Bergland, A. O, Behrman, E. L, O’Brien, K. R, Schmidt, P. S, & Petrov, D. A. (2014) Genomic Evidence of Rapid and Stable Adaptive Oscillations over Seasonal Time Scales in Drosophila. P Lo S Genetics 10, e 1004775.
- 3Yona, A. H, Manor, Y. S, Herbst, R. H, Romano, G. H, Mitchell, A, Kupiec, M, Pilpel, Y, & Dahan, O. (2012) Chromosomal duplication is a transient evolutionary solution to stress. Proceedings of the National Academy of Sciences 109, 21010–21015.
- 4Rodrίguez-Verdugo, A, Carrillo-Cisneros, D, González-González, A, Gaut, B. S, & Bennett, A. F. (2014) Different tradeoffs result from alternate genetic adaptations to a common environment. Proceedings of the National Academy of Sciences 111, 12121–12126.
- 5Leiby, N & Marx, C. J. (2014) Metabolic erosion primarily through mutation accumulation, and not trade-offs, drives limited evolution of substrate specificity in escherichia coli. P Lo S biology 12, e 1001789.
- 6Turner, P. E & Elena, S. F. (2000) Cost of host radiation in an RNA virus. Genetics 156, 1465–1470.
- 7Gerland, U & Hwa, T. (2009) Evolutionary selection between alternative modes of gene regulation. Proceedings of the National Academy of Sciences of the United States of America 106, 8841–8846.
- 8Mustonen, V & Lässig, M. (2008) Molecular Evolution under Fitness Fluctuations. Physical Review Letters 100, 108101.
