Significance
Evolution in variable environments depends crucially on the fates of new mutations in the face of fluctuating selection pressures. In constant environments, the relationship between the selective effect of a mutation and the probability that it will eventually fix or go extinct is well understood. However, our understanding of fixation probabilities in fluctuating environmental conditions is limited. Here, we show that temporal fluctuations in environmental conditions can have dramatic effects on the fate of each new mutation, reducing the efficiency of natural selection and increasing the fixation probability of all mutations, including those that are strongly deleterious on average. This makes it difficult for a population to maintain specialist adaptations, even if their benefits outweigh their costs.
Keywords: population genetics, fixation probability, fluctuating environment, effective diffusion
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 fluctuating environment depends on the dynamics of environmental variation 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 average selection pressures acting on each new mutation. For example, mutations that result in a trade-off between conditions but are strongly deleterious on average can nevertheless be more likely to fix than mutations that are always neutral or beneficial. These effects can have important implications for patterns of molecular evolution in variable environments, and they suggest that it may often be difficult for populations to maintain specialist traits, even when their loss leads to a decline in time-averaged fitness.
Evolutionary trade-offs 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 trade-offs apply to any specialist phenotype or regulatory system that incurs a general cost to confer benefits in specific environmental conditions (7). Despite the ubiquity of these trade-offs, it is not always easy to predict when a specialist phenotype can evolve and persist. How useful must a trait be on average to be maintained? How regularly does it need to be useful? How much easier is it to maintain in a larger population compared with 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 time-varying 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 that 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 a 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 trade-off 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 nonsynonymous 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 . In the diffusion limit, the probability density function of the frequency of the mutant, , evolves according to the standard single-locus diffusion equation with a time-varying selection coefficient (35)
| [1] |
We focus on the case where the environment fluctuates between two conditions, where the (log) fitness effects of the mutation are and , respectively. Note that 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 will fluctuate between and 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 and . In other words, selection in each epoch is strong compared with drift and compared with the time-averaged selection pressure. Although 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 Supporting Information. We note that this does not imply that the trait is nearly neutral on average because selection can still be strong in the traditional sense ().
Fig. 1.
Fitness and frequency trajectories. (A) Sample fitness trajectory. The mutation arises at a random point in time. (B) Epochs have average length and variance . Examples of frequency trajectories for environmental fluctuations that are (C) fast and (D) slow compared with the timescale of selection. In C and D ; in C, ; and in D, .
We assume that the duration of each epoch is drawn at random from some distribution with mean τ and variance (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 (Supporting 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 (). However, we show in the Supporting Information that our analysis and conclusions also extend to the regime in which the mutation rate is high (). We discuss the relationship between our model and those used in previous work in more detail in the Supporting 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, because they will serve as the basis for the rest of our analysis below.
When 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 toward fixation, and a deleterious mutation declines deterministically toward 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 ref. 36 for details) in a time of order generations. In this time, genetic drift leads to a change in frequency of order . Thus, there is a critical frequency where these forces are comparable. Below , genetic drift drives substantial changes in allele frequencies before natural selection has time to act, and above natural selection dominates over drift.
In the drift-dominated regime where , the probability that a lineage at frequency x drifts to frequency before going extinct is approximately . Thus, a new mutation () will reach this threshold with probability of order . If the mutation arose during a beneficial environment, it will then grow logistically and will fix in about generations. On the other hand, if the mutation arose during a deleterious environment, it cannot increase in frequency substantially above and will typically go extinct within generations. Given equal probabilities of arising in either environment, the net fixation probability is therefore
| [2] |
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 []; see Supporting Information for further discussion and analysis of the correction due to finite epoch lengths.
In contrast, whenever , 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 , selection within each epoch will drive the mutant frequency to very high and very low values, but because , the mutation will experience many of these dramatic reversals before it fixes or goes extinct (Fig. 1D).
An Effective Diffusion Process.
Because 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 refs. 9 and 32. This yields a modified diffusion equation,
| [3] |
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. 1 C and D). Eq. 3 also leads to a corresponding backward equation,
| [4] |
for the fixation probability, , as a function of x (35). Here, and are the first two moments of the change in frequency in a single time step, 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, but 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 by averaging over this range of initial sizes.
In the following sections, we calculate and and solve the resulting diffusion equation for as a function of , 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 (). 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 , 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 (Supporting 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 (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. Because a deleterious mutation with cost s can survive for at most of order generations, the mutation must arise within the last 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 (Fig. 2A). Therefore, the mutation must arise within the first generations of a beneficial epoch to avoid extinction (i.e., within the “window of opportunity”; Fig. 2A). We let denote the length of the critical period in each epoch when a successful mutation can arise. Because mutations occur uniformly throughout each epoch, only a fraction will arise at the “right” time; all others are certainly destined for extinction.
Fig. 2.

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 generations of the mutant being most rare as long as the frequency of the mutant is below at the beginning of the beneficial epoch. If the mutant starts the beneficial epoch at , selection will take its frequency to 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 , at which point it has a fixation probability of . This picture applies regardless of whether is large or small compared with . (C) When the average selection pressure is sufficiently large, and . The mutation drifts neutrally below , after which its dynamics are deterministic and dominated by natural selection. This picture holds regardless of whether is large or small compared with . (D) When the variation in epoch lengths is large enough, is less than both and . The mutation first drifts neutrally below . Above this critical frequency, both natural selection and seasonal drift are potentially important, depending on the magnitudes of , , and .
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). Because selection is efficient within each epoch (), the effects of genetic drift are dominated by the period within of order generations of the beginning and end of each epoch, when either the mutant or the wild type becomes rare (Fig. 2A). However, provided that the mutation starts at a frequency , the dominant contribution to genetic drift comes from periods where the mutant is rare, because the wild type remains above frequency x throughout the environmental cycle. As a result, the contributions from drift are dominated by the first generations and the last 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 , but the dynamics of the mutation are otherwise neutral. This approximation breaks down when the frequency of the mutation is of order , because genetic drift near the middle of the cycle (when the wild type 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 (Supporting Information).
Fortunately, by the time that the mutation reaches an initial frequency of , we know that it must have an equal chance of fixing or going extinct. In other words, is the special frequency at which . This is a consequence of the inherent symmetry of the problem: when the mutant begins a beneficial epoch with frequency , the wild type will have frequency 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 , we can calculate the fixation probability of a new mutation when it is rare, without having to consider the dynamics above . We have seen that there is a probability 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 , and it drifts neutrally to frequency with probability (Fig. 2B). Because it is equally likely to fix or go extinct at this point, the net fixation probability is simply
| [5] |
where we have also included an factor of , which is derived in the formal analysis below. We note that the same line of reasoning can be applied to the fast switching () case as well, provided that we redefine and . With these definitions, we recover the standard result that when (32). In contrast, when the fixation probability in Eq. 5 is much larger than [and eventually saturates to s when ]. 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 (). 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 , which leads to small changes of order when . Thus, selection requires approximately 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 , so the net drift that accumulates over cycles is . By comparing the magnitudes of these terms, we find that there is a critical frequency above which selection operates efficiently. If is small enough that , then the average selection pressure will not have time to influence the fate of the mutation before it reaches (Fig. 2B), and it will fix with the probability in Eq. 5. On the other hand, if , then the mutation will drift to frequency with probability , and will then deterministically fix or go extinct depending on the sign of (Fig. 2C). The threshold between these two behaviors occurs at , where we have defined
| [6] |
which includes an additional factor of derived in the formal analysis below. The total fixation probability is therefore given by
| [7] |
For mutations with , 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 (), this “drift barrier” at is much larger than the traditional value of in a constant environment. Thus, we see that in addition to raising the overall fixation probability of nearly neutral mutations (), 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 . 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 , 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, because it does not act on each individual independently. Instead, the 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 , the seasonal drift over a pair of epochs leads to a change of order , and we have seen that the contribution from genetic drift over the same period is of order . This means that there is a critical frequency above which seasonal drift dominates over genetic drift.
If , 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. 2 B and C), and the fixation probability will remain the same as Eq. 5. On the other hand, if , or
| [8] |
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 (and ) are extremely small. For frequencies above , the multiplicative changes of seasonal drift cause the logarithm of the mutant frequency to undergo an unbiased random walk, so that the probability of reaching before returning to is approximately . The probability that the mutation reaches the seasonal drift region (i.e., that it drifts to for some order one constant c) is proportional to . The total fixation probability is therefore of order
| [9] |
Because the right-hand side of Eq. 9 is much larger than 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 . In addition, because now decays as a logarithm of N, the relative enhancement becomes even more pronounced in larger populations.
The addition of selected mutations () can be treated in an analogous manner, except that we must now compare the strength of selection with both genetic and seasonal drift. If is sufficiently large that , the mutation will reach frequency with probability and fix or go extinct deterministically as before (regardless of whether is large or small compared with ; Fig. 2C). On the other hand, when , selection primarily operates in the seasonal drift regime (Fig. 2D), where the logarithm of the mutation frequency undergoes a biased random walk with mean and variance . When , seasonal drift requires roughly pairs of epochs to carry a mutation from to . If the relative change due to is small over this timescale, then the average selection pressure will barely bias the trajectory of the mutation before it reaches , and the fixation probability will be identical to the on-average neutral case in Eq. 9. This will be true provided , where we now have
| [10] |
which includes the appropriate factor of derived in the formal analysis below. On the other hand, if , then selection dominates over seasonal drift and the fixation probability again approaches either or 0. Thus, we see that seasonal fluctuations again lead to a fixation probability of the form in Eq. 7, but with 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 and . 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 Supporting 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 (), 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 Supporting Information. We can then average over the epoch lengths to obtain the moments of the effective diffusion equation
| [11] |
In the absence of seasonal drift (), we recover the standard moments for a mutation with fitness effect in a constant environment, where time is measured in units of generations. When , seasonal drift leads to additional terms in both the mean and variance of , consistent with the multiplicative random walk described in the heuristic section.
These short-time asymptotics break down when environmental switching is slow (), because 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 wild type 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 (), we show in the Supporting Information that the moments of the effective diffusion equation are given by
| [12] |
When , these moments are similar to the fast-switching regime above, except that genetic drift is reduced by a factor of . For , we see that additional terms arise due to genetic drift near the middle of the cycle, which increase both the mean and variance of .
To extend this solution to frequencies above , it is useful to consider the corresponding diffusion process for the wild-type frequency. By construction, the moments of this effective diffusion process are identical to Eq. 12 (with ), and the two sets of moments now cover the entire range of mutant frequencies. We can then find the total fixation probability by matching the corresponding solutions of Eq. 4 at some intermediate frequency where both sets of moments are valid (e.g., at ). 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 Supporting 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,
| [13] |
where is defined in Eqs. 6 and 10. Eq. 13 shows that the relevant fitness effect is the average fitness , but that environmental fluctuations lead to a modified drift barrier , which is independent of 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 with simulations in Fig. 4. These results are in full agreement with our heuristic analysis: mutations with average fitness effect will fix with a probability approximately equal to , beneficial mutations with will fix with probability , and deleterious mutations with will have an exponentially small probability of fixation given by .
Fig. 3.
The effects of environmental fluctuations on the fate of a new mutation are well summarized by a change in the drift barrier, . Here, 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 , , and varies from 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).
Fig. 4.
The increase in drift barrier, , relative to its value in a constant environment as a function of the strength of selection, . The value of was measured using Wright–Fisher simulations of an on average neutral mutant (symbols). Lines show theoretical predictions. Fast switching () is shown in blue and slow switching () in orange. Here and N ranges from to to obtain the values of 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, . We have shown here that this ratio continues to exhibit a simple exponential dependence on ,
| [14] |
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 is less than the “drift barrier” , and that selection becomes exponentially more efficient for mutations with . We have shown here how environmental fluctuations increase the drift barrier , 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 , it is tempting to define an effective population size . 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, because the offspring number fluctuations caused by environmental variation do not affect individuals independently. This leads to behavior that cannot be captured by an effective population size [e.g., neutral fixation times which do not scale as but rather as ].
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 () in a fluctuating environment. As is apparent from Fig. 5, the fixation probability of such a mutation can be much larger than (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
| [15] |
Due to the dramatic increase in due to environmental fluctuations (Fig. 4), this ratio can often be much greater than one, reflecting a higher substitution rate of on-average deleterious mutations with a fluctuating selection coefficient compared with 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, as this behavior trivially arises whenever a deleterious mutation sweeps to fixation in a single beneficial epoch (and ). 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 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).
Fig. 5.
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, . In all simulations, , , 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.
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 that are essential in one of the two environments (7, 37), our analysis here applies to traits with more subtle costs and benefits (see ref. 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 (39)]. Assuming that environmental changes occur on the order of a day ( generations) and that N can easily exceed , these populations will likely be in the regime where . Depending on the time spent in each environment, our analysis shows that the population can be extremely susceptible to invasion by loss-of-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, because the drift barrier declines only logarithmically with N when environmental fluctuations are irregular.
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 the 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 ]. When environmental fluctuations are both rapid and extremely regular ( and ) 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 (Fig. 6). This can happen for two reasons: (i) either selection within each environment is strong enough, or the duration of each epoch is long enough, that is no longer vanishingly small; or (ii) environmental fluctuations are sufficiently irregular that seasonal drift becomes important (Fig. 6).
Fig. 6.
Phase diagram showing the various regimes discussed in the paper, as a function of the magnitude of environmental fluctuations () and the average timescale of environmental fluctuations (). 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.
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 (Fig. 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. Trade-offs 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 Drosophila 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 . The annual variation in the sizes of these populations may contribute important effects that our model does not consider, but in a population of individuals, seasonal drift would be more significant than genetic drift as long as , 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 trade-off and the average selection coefficient is much less than . 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 (Supporting 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 (). When this assumption is violated, the effective diffusion approximation 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 Effective Diffusion Regime
We analyze the fate of a mutation in a fluctuating environment by using an effective diffusion approximation, which coarse grains the evolutionary dynamics over pairs of environmental epochs. Such an approximation is appropriate whenever the mutation experiences many beneficial and deleterious epochs over the course of its lifetime, and the net change over each cycle is small. Formally, this requires that
| [S1.1] |
| [S1.2] |
| [S1.3] |
in addition to the usual strong selection assumption (). We make repeated use of these limits throughout the remainder of this section. Violations of these conditions are considered in Beyond the Effective Diffusion Regime.
Fast Switching [].
In the fast switching regime, the environmental timescale (τ) is much shorter than the timescale of selection (), so the frequency of the mutation does not change much over the course of a cycle. This regime was originally analyzed by ref. 32; we present a derivation of these results here for completeness. We begin by rewriting the diffusion equation in Eq. 1. in Langevin form (40),
| [S1.4] |
where represents the noise term and has the properties , . In the Itô interpretation, this can be rewritten in the following differential form
| [S1.5] |
When the timescales of environmental fluctuations are shorter than the timescale of selection, , so we can assume that x is approximately constant over the course of a pair of epochs and coarse grain Eq. S1.5 over an environmental cycle
| [S1.6] |
Averaging over and , we find the first two moments of
| [S1.7] |
which can be rewritten as
| [S1.8] |
The backward equation for the fixation probability of a mutant at frequency x is thus (35)
| [S1.9] |
which can be rearranged as
| [S1.10] |
It will be convenient to define to be the roots of [i.e., ]. Integrating Eq. S1.10, we obtain
| [S1.11] |
where we have defined . Finally, integrating Eq. S1.11 and requiring that and gives
| [S1.12] |
Because , the initial size of the lineage will not be much greater than at leading order. Thus, we can expand the numerator of Eq. S1.12 for small x to arrive at
| [S1.13] |
The fixation probability of a new mutation is therefore given by
| [S1.14] |
where we have used the fact that , and defined the drift barrier, , as
| [S1.15] |
In the two limiting cases, this formula reduces to
| [S1.16] |
which agrees with the expressions for given in the main text.
Slow Switching [].
In contrast to the fast switching regime above, slower environmental switching () can lead to substantial changes in allele frequency over the course of a single epoch. However, provided that and , the net change in frequency after a full cycle is still sufficiently small. Note that when , these two conditions also imply that and . In other words, our analysis simplifies to that of a nearly perfect fitness trade-off in a nearly deterministic environment (although as we will see below, the residual effects of and will still be extremely important).
To account for the nonlinear effects of selection over the course of a cycle, we begin by introducing the change of variable in Eq. 1, which transforms the original diffusion equation into the form
| [S1.17] |
The drift term is important only at very high and very low frequencies [corresponding to and ], so we introduce a negligible error at frequencies for which by ignoring the nonlinear component in the drift term. This gives
| [S1.18] |
We can derive an analogous equation that is valid whenever the frequency of the wild type is not too high by the change of variable
| [S1.19] |
Over the course of a pair of epochs, the frequency of a mutation takes both low and high values, but we can account for the change in frequency over the entire cycle by using Eq. S1.18 when and Eq. S1.19 when and matching the two processes at where they are both valid.
Concretely, let at the beginning of a beneficial epoch of length . We would like to calculate the moments of , the total change in χ by the end of the following deleterious epoch, which has length . The moment generating function of , defined as , conditioned on , for an arbitrary is given by (11)
| [S1.20] |
Thus, at some time t after the beginning of the beneficial epoch, such that , the generating function of χ is
| [S1.21] |
It will be convenient to define the random variable as . Note that captures all of the nondeterministic changes in χ. The generating function of is
| [S1.22] |
and its mean and variance are
| [S1.23] |
The mutation reaches at some random time , or generations before the end of the beneficial epoch. From this moment on, the wild type is the rare allele and we switch over to diffusion in . Analogously to , we define a second random variable that satisfies , where is the time measured from the beginning of the deleterious epoch from the perspective of the mutation (i.e., the middle of the cycle). Subject to the initial condition that at generations before the environmental shift, the generating function of at some time , such that is
| [S1.24] |
from which we obtain the conditional mean and variance of
| [S1.25] |
Finally, we compute the generating function of χ at the end of the deleterious epoch, conditioned on it having initial value 1, generations before the end of the deleterious epoch. We find
| [S1.26] |
The generating function of can be obtained from Eq. S1.26 by noting that , which yields the conditional moments of
| [S1.27] |
The unconditional moments are obtained by averaging over and . In doing this we note that , , and are independent, and that and are independent. We make use of the fact that the standard deviations of all variables are much smaller than their means as long as and . To lowest order
| [S1.28] |
When , , so the moments of in this limit are
| [S1.29] |
which we rewrite as
| [S1.30] |
The expressions for the moments of the effective diffusion in the slow and fast switching limits (given by Eqs. S1.7 and S1.30) are equivalent up to the term proportional to . This term arises from the amplification of the effects of drift in the middle of the environmental cycle and is thus negligible in the fast switching limit. To solve the backward equation and obtain an expression for , we proceed analogously to the Fast Switching section. Defining as the roots of the polynomial and , we arrive at
| [S1.31] |
Applying the boundary condition and requiring that at the probability of fixation of the mutation (and its derivative) is continuous with the probability of extinction of the wild type at the same frequency, we arrive at
| [S1.32] |
which reduces to
| [S1.33] |
when .
To find the probability of fixation of a new mutation arising at an arbitrary point in time, we must again average over the possible frequencies at the beginning of the first deleterious epoch. To leading order in , the distribution of epoch lengths is approximately δ-distributed,
| [S1.34] |
The primary contribution to the variation in initial frequencies is thus given by the random arising time, which we can average over to find that
| [S1.35] |
The fixation probability of a new mutation is therefore
| [S1.36] |
where we have defined the drift barrier,
| [S1.37] |
Unequal Epochs ().
The preceding analysis was carried out under the implicit assumption that the distribution of time spent in each environment is equal. We can relax this assumption simply by redefining the variables s, , τ, and . For a general combination of , , , , , and , we can define
| [S1.38] |
| [S1.39] |
| [S1.40] |
| [S1.41] |
and all of our results continue to apply.
Recurrent Mutation ().
In large populations, new mutations that either create or destroy a specialist phenotype might arise multiple times during the course of evolution. In this section, we consider the scenario in which wild-type individuals recurrently mutate with per-generation probability μ and reverse mutations from the mutant to the wild-type allelic state occur with rate ν. These mutation rates can encompass any mechanism by which individuals change allelic state (e.g., in prokaryotes they can include both mutations and trait gain and loss due to horizontal gene transfer). For conciseness of presentation, we will limit ourselves to the special case where , but the analysis can be straightforwardly extended to the case where the two mutation rates are different. As before, we assume that selection within each of the environmental epochs is efficient () and stronger than mutation (). When the latter is not true, selection has a very limited impact on all timescales.
In the limit that , the entire mutant lineage will usually descend from a single mutational event and lineages that arise from different mutational events will not cosegregate in the population. Our analysis in the main text describes this regime. In contrast, when , new mutations to both of the allelic types may occur within a fixation time, and our analysis must be modified. In this recurrent mutation regime, neither of the allelic types will fix, but there will be an equilibrium distribution of frequencies at which the mutant is present in the population. Thus, instead of comparing the fixation probabilities of the two alleles, we can ask whether the average frequency of the on-average beneficial allele will be higher than the frequency of the on-average deleterious allele.
When the mutant allele is rare, genetic drift takes of order generations to change the frequency of the mutation by x. During this time mutation changes the allele frequency by , where the factor comes from the fact that the mutation must arise within the window of opportunity to remain in the population. Thus, when , mutation is stronger than genetic drift at all frequencies. During this time, selection will change the frequency of the mutation by and seasonal drift will change the frequency of the mutation by and so there will again be two critical frequencies and , above which selection and environmental drift dominate over mutation. Genetic drift is subdominant in all of these regimes.
In the absence of seasonal drift, recurrent mutation from the wild type to the mutant will act to increase the frequency of the mutant individuals below (at these frequencies, reversion to the wild type can be neglected). Above , selection will be the dominant force. If the mutation is deleterious on average, selection will decrease the number of mutant individuals above and the allele will be maintained at equilibrium frequency . As long as , the frequency of the mutant allele averaged over time will be lower than . Similarly, if the mutation is beneficial on average, the frequency of the mutant individuals will be sustained at by the balance between selection and mutation from the mutant to the wild-type allele. In this case, the time-averaged frequency of the mutant allele will be above as long as . When , selection is subdominant over the entire effective diffusion range, and mutation will sustain the time-averaged frequency of the mutant at . This sets a threshold for the average fitness effect at (note the similarity between this expression and the one we had in the absence of recurrent mutation, ). In summary, if , selection will be efficient at maintaining the on-average beneficial allele at a frequency that is higher than . Otherwise, the average frequency of both of the alleles will be sustained at .
In the presence of seasonal drift, mutational pressure will lead to the increase of the frequency of mutant alleles below and to the decrease of the frequency of mutant alleles above . Between and and between and , selection and seasonal drift will be the dominant forces. In this case, we must compare the timescales on which selection and seasonal drift operate to determine whether or not selection is efficient. Repeating the calculation from the heuristic section in the main text, we find that selection is efficient if .
We have seen that the same heuristic analysis applies in the regime as the analysis we performed for in the main text. Provided we replace N with , we obtain analogous expressions for and recover the same qualitative results on the efficiency of selection in a fluctuating environment. To make this claim more quantitative, we now turn to calculating the equilibrium distribution of frequencies for the effective process. The probability that the mutant allele frequency is below or above will be suppressed by mutation. In the regime in which seasonal drift and selection dominate, the equilibrium distribution of frequencies for the effective process satisfies (35):
| [S1.42] |
Transforming the variables to , imposing zero flux boundary conditions at equilibrium, and requiring continuity of the at and , we find that
| [S1.43] |
This means that
| [S1.44] |
will have two peaks at and . This expression for agrees with similar expressions in other parameter regimes that are quoted in the existing literature (26, 31, 32). The ratio of the heights of these peaks at and is
| [S1.45] |
From this distribution one may in principle calculate any statistic of the frequency of the mutant allele. For instance, we use it calculate the expectation value of , averaged over all times. This statistic will be zero if the average frequency of the mutated allele is , positive if the mutated allele is dominant for the majority of the time, and negative if the wild-type allele is dominant in the population.
Over the course of a single environmental cycle of length starting from the beginning of a beneficial epoch
| [S1.46] |
Averaged over many cycles,
| [S1.47] |
Using the analogous expression for conditioned on the cycle starting in a deleterious epoch, we can calculate the expectation over the full frequency range
| [S1.48] |
which evaluates to
| [S1.49] |
Thus, the average frequency of both of the alleles will be around when the average selection coefficient is significantly smaller in magnitude than , whereas the on-average beneficial allele will dominate if , reproducing our heuristic conclusions. Of course, in this regime the effects of clonal interference across multiple loci may also become important; this is an interesting avenue for future work.
Beyond the Effective Diffusion Regime
The effective diffusion approach in the previous section relied on three basic assumptions:
| [S2.50] |
| [S2.51] |
| [S2.52] |
In this section, we consider violations of each of these assumptions in turn.
Fixation During the First Epoch [].
The primary assumption of the effective diffusion approach is that the mutation will experience many beneficial and deleterious epochs during its lifetime. This assumption will obviously break down in the limit of extremely slow environmental switching [], when mutations typically fix within a single beneficial epoch. To calculate the fixation probability in this regime, we recall that to leading order in , the length of the first epoch is approximately δ-distributed,
| [S2.53] |
Meanwhile, the fixation time in the beneficial environment is also approximately δ-distributed to leading order in :
| [S2.54] |
Thus, the primary source of variability in whether the mutation fixes stems from the random arising time of the mutation. In other words, to leading order, the fixation probability of a new mutation in this limit is given by
| [S2.55] |
where we have used to denote the time from arising to the end of a beneficial epoch. Given our assumptions above, we can evaluate the probability to obtain
| [S2.56] |
The first-order correction shows that the fix-in-one-epoch behavior breaks down when , which is precisely where the effective diffusion approximation starts apply. This is illustrated in Fig. S1, where we compare these predictions to simulations over a broad range of .
Fig. S1.
The scaled fixation probability as a function of , which shows the transition between the effective diffusion and single epoch limits. Symbols show Wright–Fisher simulations and lines show theoretical predictions (, and the other variables are indicated on the graph).
Substantial Average Fitness Effects ().
When is not small compared with one, the net change over a cycle can be too large for the effective diffusion approximation to apply. In addition, when , the differences between and s can start to become important as well.
We first note that must be a monotonic function of , provided that we hold the remaining parameters constant. Because , Eq. 13 shows that the fixation probability of a deleterious mutation is bounded by an arbitrarily small number, and the fixation probability of a beneficial mutation is at least . In this case, the fate of the mutation is determined while it is rare (), which suggests that we can calculate the fixation probability by using a linear approximation to Eq. 1,
| [S2.57] |
The fixation probability of this process has been well studied (11, 24), and is given by the general formula
| [S2.58] |
where the angle brackets denote an average over all epoch lengths as well as over the frequency of the mutation at the beginning of the first good epoch. Let B denote the (random) value of the integral in the denominator:
| [S2.59] |
Then we can derive the following recursion relation for the distribution of B:
| [S2.60] |
where we have retained only the leading order terms in and . This recursion shows that to leading order, the distribution of B is essentially deterministic, so that we can simply solve the equation for B to obtain
| [S2.61] |
and hence
| [S2.62] |
Here, denotes the generating function of the mutant frequency at the beginning of its first full beneficial epoch. To leading order in , this generating function is the same as that derived in Slow Switching []. Integrating over the possible arising times of the mutation, we find that
| [S2.63] |
where the expansion of the exponentials is valid provided that . Thus,
| [S2.64] |
We compare this prediction with simulations in Fig. S2.
Fig. S2.

(Left) Phase diagram showing the regime in which the average fitness effect is substantial, as a function of and . (Right) Comparison between the predictions obtained and Wright–Fisher simulations for perfectly periodic environments (, purple) and for exponentially distributed epoch lengths (, blue) (, varied from to ).
Substantial Variation in Epoch Lengths ().
When , seasonal drift can generate large changes in allele frequency over the course of a cycle that render the effective diffusion approximation invalid. In addition, when , the precise shape of the epoch length distribution starts to play a larger role, and the mean and variance may not adequately capture the behavior.
However, given that the log-transformed allele frequency is still diffusive even when , we might expect our existing expressions to provide a reasonable approximation to the fixation probability, provided that the distribution of epoch lengths is still well-summarized by the mean and variance. To check this conjecture, we compare our original theoretical predictions to simulations in the slow switching regime under an exponential distribution of epoch lengths (where ) in Fig. S2. We see that our existing expressions provide a reasonable approximation to the fixation probability even when , although some small deviations are noticeable due to the modified dynamics during the first few epochs (i.e., before the mutation reaches the edge of the seasonal drift-dominated region).
In addition, when , the precise shape of the epoch length distribution starts to play a larger role, and the mean and variance may not adequately capture the behavior. To see how these effects can become important for even larger , we can consider the fixation probability under a gamma distribution of epoch lengths with :
| [S2.65] |
In this case, the distribution of epoch lengths resembles a power-law distribution with a median near τ and occasional fluctuations that are cut off at . However, unlike the cases above, the duration of the very first epoch (i.e., conditional on a mutation arising) is dramatically different from that of a typical epoch, because it satisfies
| [S2.66] |
and has a typical scale much larger than τ. Provided that , the mutation is virtually guaranteed to fix in its first good epoch, even though it would rarely expect to see an epoch of that length again. Thus, in the limit that we again converge to the fix-in-one-epoch limit . However, the next-order correction is much more difficult to obtain in this case, because the standing variation from an incomplete sweep will no longer be completely purged in the subsequent deleterious epoch. Rather, the dynamics of the mutation resembles a mixture of the diffusive dynamics in The Effective Diffusion Regime with occasional jumps that can potentially drive the allele to fixation or extinction (similar to the generalized diffusion models studied in ref. 41). A detailed analysis of this regime is beyond the scope of the present paper, and remains an interesting avenue for future work.
Relation to Previous Work
In the present work, we have focused on a diffusion model (Eq. 1) for the frequency of an allele in a fluctuating environment. This model bears many similarities to those used in earlier studies of time-varying selection pressures, but it differs from these earlier models in several key ways. It is therefore useful to briefly review this earlier literature, so that we may comment on the major differences that arise.
The earliest attempts to model the effects of fluctuating selection pressures were largely focused on infinite-population models in which the selection coefficient is resampled from some fixed distribution in every generation, and the log frequency of the allele undergoes a discrete random walk (12–14, 17–21, 26, 31). In our present terminology, this is effectively a model of pure seasonal drift. However, we have seen that although seasonal drift shares the dispersive nature of genetic drift, its multiplicative nature ensures that it can never completely drive an allele to fixation or extinction. Rather, the allele frequencies start to accumulate near or , an effect which has been termed quasi-fixation (26). However, just a small amount of genetic drift (or equivalently, a population size just slightly less than infinity) is sufficient to eliminate this pathological behavior (26, 31).
More general diffusion models were later proposed to account for the joint effects of seasonal variation and genetic drift (27–31). Like their earlier counterparts above, these models assumed that selection pressures were resampled every generation, so that the standard derivation of the diffusion equation could still be applied (35). However, due to this assumption of rapid and uncorrelated environmental change, these studies found that the effects of fluctuations are relevant only when the variance in the selection pressure is large compared with the other selection pressures in the population. This requires a modified version of the standard diffusion limit to account for the fact that terms are no longer negligible, which raises a host of additional issues that can usually be ignored when . In particular, the precise details of the birth–death process start to become important, as do differences in the definition of the selection coefficient, and whether time averages should be carried out using the geometric mean or the arithmetic mean (15, 21). Somewhat more interestingly, these large s effects can lead to an emergent form of overdominance, even for otherwise semidominant alleles (9). When this occurs, the boundaries of the diffusion process are no longer accessible, and the mutation can be maintained at intermediate frequencies for extended periods of time (42–45).
However, we stress that all of these effects are absent in the standard diffusion limit (i.e., and with held fixed), which is used throughout the present work. Given this assumption, our model bears the closest similarity to the one used by refs. 32 and 33, which considered autocorrelated selection pressures for which . By exploiting an unused degree of freedom in the diffusion timescale, these authors derived an effective diffusion process not unlike the one considered here, and were the first to show that environmental fluctuations can be relevant even in the standard diffusion limit, provided that the integrated autocovariance in is larger than .
Acknowledgments
We thank Eric Kang, Dmitri Petrov, Dan Rice, and Joshua Weitz for useful discussions and helpful comments on the manuscript. Simulations in this article were run on the Odyssey cluster supported by the Faculty of Arts and Sciences Division of Science Research Computing Group at Harvard University. This work was supported in part by the James S. McDonnell Foundation, the Alfred P. Sloan Foundation, the Harvard Milton Fund, Grant PHY 1313638 from the National Science Foundation, and Grant GM104239 from the National Institutes of Health.
Footnotes
The authors declare no conflict of interest.
This article is a PNAS Direct Submission.
This article contains supporting information online at www.pnas.org/lookup/suppl/doi:10.1073/pnas.1505406112/-/DCSupplemental.
References
- 1.Drlica K. The mutant selection window and antimicrobial resistance. J Antimicrob Chemother. 2003;52(1):11–17. doi: 10.1093/jac/dkg269. [DOI] [PubMed] [Google Scholar]
- 2.Bergland AO, Behrman EL, O’Brien KR, Schmidt PS, Petrov DA. Genomic evidence of rapid and stable adaptive oscillations over seasonal time scales in Drosophila. PLoS Genet. 2014;10(11):e1004775. doi: 10.1371/journal.pgen.1004775. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 3.Yona AH, et al. Chromosomal duplication is a transient evolutionary solution to stress. Proc Natl Acad Sci USA. 2012;109(51):21010–21015. doi: 10.1073/pnas.1211150109. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 4.Rodríguez-Verdugo A, Carrillo-Cisneros D, González-González A, Gaut BS, Bennett AF. Different tradeoffs result from alternate genetic adaptations to a common environment. Proc Natl Acad Sci USA. 2014;111(33):12121–12126. doi: 10.1073/pnas.1406886111. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 5.Leiby N, Marx CJ. Metabolic erosion primarily through mutation accumulation, and not tradeoffs, drives limited evolution of substrate specificity in Escherichia coli. PLoS Biol. 2014;12(2):e1001789. doi: 10.1371/journal.pbio.1001789. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 6.Turner PE, Elena SF. Cost of host radiation in an RNA virus. Genetics. 2000;156(4):1465–1470. doi: 10.1093/genetics/156.4.1465. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 7.Gerland U, Hwa T. Evolutionary selection between alternative modes of gene regulation. Proc Natl Acad Sci USA. 2009;106(22):8841–8846. doi: 10.1073/pnas.0808500106. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 8.Mustonen V, Lässig M. Molecular evolution under fitness fluctuations. Phys Rev Lett. 2008;100(10):108101. doi: 10.1103/PhysRevLett.100.108101. [DOI] [PubMed] [Google Scholar]
- 9.Gillespie JH. The Causes of Molecular Evolution. Oxford Univ Press; New York: 1991. [Google Scholar]
- 10.Mustonen V, Lässig M. From fitness landscapes to seascapes: Non-equilibrium dynamics of selection and adaptation. Trends Genet. 2009;25(3):111–119. doi: 10.1016/j.tig.2009.01.002. [DOI] [PubMed] [Google Scholar]
- 11.Kendall DG. On the generalized “birth-and-death” process. Ann Math Stat. 1948;19(1):1–15. [Google Scholar]
- 12.Dempster ER. Maintenance of genetic heterogeneity. Cold Spring Harb Symp Quant Biol. 1955;20:25–31, discussion, 31–32. doi: 10.1101/sqb.1955.020.01.005. [DOI] [PubMed] [Google Scholar]
- 13.Lewontin RC, Cohen D. On population growth in a randomly varying environment. Proc Natl Acad Sci USA. 1969;62(4):1056–1060. doi: 10.1073/pnas.62.4.1056. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 14.Levins R. The effect of random variations of different types on population growth. Proc Natl Acad Sci USA. 1969;62(4):1061–1065. doi: 10.1073/pnas.62.4.1061. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 15.Hartl DL, Cook RD. Balanced polymorphisms of quasineutral alleles. Theor Popul Biol. 1973;4:163–172. [Google Scholar]
- 16.Hartl DL, Cook RD. Autocorrelated random environments and their effects on gene frequency. Evolution. 1974;28:275–280. doi: 10.1111/j.1558-5646.1974.tb00747.x. [DOI] [PubMed] [Google Scholar]
- 17.Cook RD, Hartl DL. Uncorrelated random environments and their effects on gene frequency. Evolution. 1974;28:265–274. doi: 10.1111/j.1558-5646.1974.tb00746.x. [DOI] [PubMed] [Google Scholar]
- 18.Karlin S, Lieberman U. Random temporal variation in selection intensities: case of large population size. Theor Popul Biol. 1974;6(3):355–382. doi: 10.1016/0040-5809(74)90016-1. [DOI] [PubMed] [Google Scholar]
- 19.Capocelli RM, Ricciardi LM. A diffusion model for population growth in random environment. Theor Popul Biol. 1974;5(1):28–41. doi: 10.1016/0040-5809(74)90050-1. [DOI] [PubMed] [Google Scholar]
- 20.Levikson B, Karlin S. Random temporal variation in selection intensities acting on infinite diploid populations: Diffusion method analysis. Theor Popul Biol. 1975;8(3):292–300. doi: 10.1016/0040-5809(75)90046-5. [DOI] [PubMed] [Google Scholar]
- 21.Gillespie JH, Guess HA. The effects of environmental autocorrelations on the progress of selection in a random environment. Am Nat. 1978;112:897–909. [Google Scholar]
- 22.Kussell E, Leibler S. Phenotypic diversity, population growth, and information in fluctuating environments. Science. 2005;309(5743):2075–2078. doi: 10.1126/science.1114383. [DOI] [PubMed] [Google Scholar]
- 23.Leibler S, Kussell E. Individual histories and selection in heterogeneous populations. Proc Natl Acad Sci USA. 2010;107(29):13183–13188. doi: 10.1073/pnas.0912538107. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 24.Uecker H, Hermisson J. On the fixation process of a beneficial mutation in a variable environment. Genetics. 2011;188(4):915–930. doi: 10.1534/genetics.110.124297. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 25.Wright S. On the roles of directed and random changes in gene frequency in the genetics of populations. Evolution. 1948;2(4):279–294. doi: 10.1111/j.1558-5646.1948.tb02746.x. [DOI] [PubMed] [Google Scholar]
- 26.Kimura M. Process leading to quasi-fixation of genes in natural populations due to random fluctuation of selection intensities. Genetics. 1954;39(3):280–295. doi: 10.1093/genetics/39.3.280. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 27.Kimura M. On the probability of fixation of mutant genes in a population. Genetics. 1962;47:713–719. doi: 10.1093/genetics/47.6.713. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 28.Ohta T. Fixation probability of a mutant influenced by random fluctuation of selection intensity. Genet Res. 1972;19(1):33–38. [PubMed] [Google Scholar]
- 29.Jensen L, Pollak E. Random selective advantages of a gene in a finite population. J Appl Probab. 1969;6(1):19–37. [Google Scholar]
- 30.Jensen L. Random selective advantages of genes and their probabilities of fixation. Genet Res. 1973;21(3):215–219. doi: 10.1017/s0016672300013409. [DOI] [PubMed] [Google Scholar]
- 31.Gillespie JH. Natural selection with varying selection coefficients—A haploid model. Genet Res. 1973;21(2):115–120. [Google Scholar]
- 32.Takahata N, Ishii K, Matsuda H. Effect of temporal fluctuation of selection coefficient on gene frequency in a population. Proc Natl Acad Sci USA. 1975;72(11):4541–4545. doi: 10.1073/pnas.72.11.4541. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 33.Takahata N, Kimura M. Genetic variability maintained in a finite population under mutation and autocorrelated random fluctuation of selection intensity. Proc Natl Acad Sci USA. 1979;76(11):5813–5817. doi: 10.1073/pnas.76.11.5813. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 34.Mustonen V, Lässig M. Adaptations to fluctuating selection in Drosophila. Proc Natl Acad Sci USA. 2007;104(7):2277–2282. doi: 10.1073/pnas.0607105104. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 35.Ewens WJ. Mathematical Population Genetics I. New York: Springer; 2004. [Google Scholar]
- 36.Fisher DS. 2007. Evolutionary dynamics. Les Houches, eds. Bouchaud JP, Mézard M, Dalibard J (Elsevier, Paris), Vol. 85, pp. 395–446.
- 37.Masel J, King OD, Maughan H. The loss of adaptive plasticity during long periods of environmental stasis. Am Nat. 2007;169(1):38–46. doi: 10.1086/510212. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 38.Lahti DC, et al. Relaxed selection in the wild. Trends Ecol Evol. 2009;24(9):487–496. doi: 10.1016/j.tree.2009.03.010. [DOI] [PubMed] [Google Scholar]
- 39.Eames M, Kortemme T. Cost-benefit tradeoffs in engineered lac operons. Science. 2012;336(6083):911–915. doi: 10.1126/science.1219083. [DOI] [PubMed] [Google Scholar]
- 40.Korolev KS, Avlund M, Hallatschek O, Nelson DR. Genetic demixing and evolution in linear stepping stone models. Rev Mod Phys. 2010;82(2):1691–1718. doi: 10.1103/RevModPhys.82.1691. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 41.Der R, Epstein C, Plotkin JB. Dynamics of neutral and selected alleles when the offspring distribution is skewed. Genetics. 2012;191(4):1331–1344. doi: 10.1534/genetics.112.140038. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 42.Haldane J, Jayakar SD. Polymorphism due to selection of varying direction. J Genet. 1963;58(2):237–242. [Google Scholar]
- 43.Hedrick PW. Genetic variation in a heterogeneous environment. I. Temporal heterogeneity and the absolute dominance model. Genetics. 1974;78(2):757–770. doi: 10.1093/genetics/78.2.757. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 44.Cook RD, Hartl DL. Stochastic selection in large and small populations. Theor Popul Biol. 1975;7(1):55–63. doi: 10.1016/0040-5809(75)90005-2. [DOI] [PubMed] [Google Scholar]
- 45.Gillespie JH, Langley CH. A general model to account for enzyme variation in natural populations. Genetics. 1974;76(4):837–848. doi: 10.1093/genetics/76.4.837. [DOI] [PMC free article] [PubMed] [Google Scholar]






