Skip to main content
NIHPA Author Manuscripts logoLink to NIHPA Author Manuscripts
. Author manuscript; available in PMC: 2021 Jul 1.
Published in final edited form as: Evolution. 2020 Dec 13;75(1):10–24. doi: 10.1111/evo.14121

Evolution in alternating environments with tunable inter-landscape correlations

Jeff Maltas 1, Douglas M McNally 2, Kevin B Wood 1,3
PMCID: PMC8246403  NIHMSID: NIHMS1710415  PMID: 33206376

Abstract

Natural populations are often exposed to temporally varying environments. Evolutionary dynamics in varying environments have been extensively studied, though understanding the effects of varying selection pressures remains challenging. Here we investigate how cycling between a pair of statistically related fitness landscapes affects the evolved fitness of an asexually reproducing population. We construct pairs of fitness landscapes that share global fitness features but are correlated with one another in a tunable way, resulting in landscape pairs with specific correlations. We find that switching between these landscape pairs, depending on the ruggedness of the landscape and the inter-landscape correlation, can either increase or decrease steady-state fitness relative to evolution in single environments. In addition, we show that switching between rugged landscapes often selects for increased fitness in both landscapes, even in situations where the landscapes themselves are anti-correlated. We demonstrate that positively correlated landscapes often possess a shared maximum in both landscapes that allows the population to step through sub-optimal local fitness maxima that often trap single landscape evolution trajectories. Finally, we demonstrate that switching between anti-correlated paired landscapes leads to ergodic-like dynamics where each genotype is populated with nonzero probability, dramatically lowering the steady-state fitness in comparison to single landscape evolution.

I. INTRODUCTION

Natural populations experience tremendous environmental diversity, and understanding how this spatiotemporal diversity influences evolutionary dynamics is a long-standing challenge. A great deal of work, both theoretical and experimental, has shown that spatial (Agarwala and Fisher 2019; Constable and McKane 2014a,b; Farhang-Sardroodi et al. 2017; Habets et al. 2006; Hermsen and Hwa 2010; Korona et al. 1994; Lin et al. 2015; Waddell et al. 2010; Whitlock and Gomulkiewicz 2005) and temporal (Acar et al. 2008; Canino-Koning et al. 2019; Cook and Hartl 1974; Cooper and Lenski 2010; Cvijović et al. 2015; Gaál et al. 2010; Gillespie and Guess 1978; Gupta et al. 2011; Hartl and Cook 1974; Kashtan et al. 2007; Kussell and Leibler 2005; Lewontin and Cohen 1969; Mustonen and Lässig 2008; Mustonen and Lässig 2009; Patra and Klumpp 2015; Shahrezaei et al. 2008; Skanata and Kussell 2016; Steinberg and Ostermeier 2016; Tan and Gore 2012; Tan et al. 2011; de Vos et al. 2015) heterogeneity play an important role in adaptation of asexual communities. For example, temporal or spatial fluctuations may lead to increased fixation probability and adaptation rates (Cvijović et al. 2015; Farhang-Sardroodi et al. 2017; Hermsen and Hwa 2010; Kashtan et al. 2007; Lewontin and Cohen 1969; Mustonen and Lässig 2008; Whitlock and Gomulkiewicz 2005), a phenomenon that is also exploited in genetic programming algorithms (ONeill et al. 2010). In addition, environments that change in systematic ways may promote facilitated variation (Gerhart and Kirschner 2007; Parter et al. 2008), allowing organisms to preferentially harness the beneficial effects of random genetic changes and rapidly adapt to future perturbations. And when phenotypes themselves fluctuate over time, the frequency of inter-phenotype switching can evolve to match the timescale of environmental fluctuations (Acar et al. 2008; Gupta et al. 2011; Kussell and Leibler 2005; Shahrezaei et al. 2008).

It is increasingly clear that these evolutionary dynamics have practical consequences for human health. The rise of drug resistance, which threatens the efficacy of treatments for bacterial infections, cancer, and viruses, is driven–at least in part–by evolutionary adaption occurring in complex, heterogeneous environments. Spatial heterogeneity in drug concentration has been shown to accelerate the evolution of resistance (Baym et al. 2016; Fu et al. 2015; Greulich et al. 2012; Hermsen et al. 2012; Moreno-Gamez et al. 2015; Zhang et al. 2011), though adaptation may also be slowed when fitness landscapes (Greulich et al. 2012) or drug profiles (De Jong and Wood 2018) are judiciously tuned. Similarly, temporal variations in drug exposure–for example, drug cycling–can slow resistance under some conditions, though hospital-level strategies such as mixing may be more effective at generating the requisite environmental heterogeneity (Bergstrom et al. 2004; Brown and Nathwani 2005). Recent studies have also shown the potential of new control strategies that harness so-called collateral effects (Barbosa et al. 2018; Dhawan et al. 2017; de Evgrafov et al. 2015; Fuentes-Hernandez et al. 2015; Imamovic et al. 2018; Imamovic and Sommer 2013; Kim et al. 2014; Lazar et al. 2018, 2014, 2013; Maltas et al. 2019; Maltas and Wood 2019; Munck et al. 2014; Nichol et al. 2019; Roemhild et al. 2015, 2018; Yoshida et al. 2017), which occur when resistance to a target drug is accompanied by an increase or decrease in resistance to an unseen stressor. In essence, these strategies force populations to simultaneously adapt to incompatible evolutionary tasks (Hart et al. 2015; Shoval et al. 2012).

Evolutionary adaptation is often modeled as a biased random walk on a high-dimensional landscape that links each specific genotype with a particular fitness (Gillespie 1983a,b, 1984). In the simplest scenario, these landscapes represent evolution in the strong selection weak mutation (SSWM) limit, where isogenic populations evolve step-wise as the current genotype is replaced by that of a fitter descendant. While these idealized models are strictly valid only under certain conditions–for example, SSWM typically holds when mutation rate and effective population size are small–simple models have contributed significantly to our understanding of evolution (Cook and Hartl 1974; Desai and Fisher 2007; Desai et al. 2007; Gerrish and Lenski 1998; Gillespie 1983a, 1984; Hartl and Cook 1974). In the context of fitness landscape models, control strategies that exploit collateral effects force the population to adapt to sequences of distinct, but statistically related, landscapes. For example, alternating between two drugs that induce mutual collateral sensitivity (adaptation to drug A leads to sensitivity to drug B, and vice versa) corresponds to landscapes with anti-correlated fitness peaks. When environments change in systematic ways–for example, by forcing the population to adapt to modular tasks comprised of related sub-goals–adaptation may select for generalists, genotypes that are fit in a wide range of environments at the cost of suboptimal specialization for any particular task (Parter et al. 2008; Sachdeva et al. 2020; Wang and Dai 2019). Relatively recent theoretical work also shows that conditional effects of evolutionary history can be captured by slowly changing landscapes–seascapes–which allow for the incorporation of time-dependent correlations (Agarwala and Fisher 2019; Mustonen and Lässig 2009). In general, however, understanding evolution in correlated landscapes–and in particular, how the choice of that correlation impacts adaptation–remains challenging.

In this work, we investigate evolutionary dynamics of asexual populations in rapidly alternating environments described by pairs of (potentially rugged) fitness landscapes with tunable inter-landscape correlations (Fig 1). This problem is loosely inspired by adaptation of microbial communities to 2-drug cycles in which each drug induces collateral resistance or sensitivity to the other, though the scenario in question may arise in many different contexts, including evolution in antibodies (Burton et al. 2012) and viruses (Rhee et al. 2010). Our goal is to understand how the interplay between intra-landscape disorder (ruggedness) and inter-landscape fitness correlations impact fitness. By formulating the evolutionary dynamics as a simple Markov chain (Durrett and Durrett 1999; Nichol et al. 2015), we are able to efficiently calculate time-dependent genotype distributions and investigate adaptation to ensembles of landscape pairs with various levels of epistasis and fitness correlations–results that would be more difficult to achieve from stochastic simulations alone. We find that rapid switching can either increase or decrease the steady state fitness of the population, depending on both the correlation between landscapes and level of intra-landscape ruggedness (i.e. epistasis). On short timescales, mean fitness is generally highest in static landscapes, but rapid switching between correlated environments can produce fitness gains for sufficiently rugged landscapes on longer timescales. Surprisingly, longer periods of rapid switching can also produce a genotype distribution whose fitness is, on average, larger than that of the ancestor population in both environments, even when the landscapes themselves are anti-correlated. To intuitively understand these results, we visualized genotype distributions and inter-genotype transitions as network diagrams, revealing that rapid switching in highly correlated environments frequently shepherds the population to genotypes that are locally optimal in both landscapes and, in doing so, fosters escape from the locally optimal but globally suboptimal fitness peaks that limit adaptation in static environments. The dynamics arise, in part, from the fact that rugged landscape pairs are increasingly likely to exhibit shared maxima as they become more positively correlated, and in turn, for landscapes with positive correlations, the mean fitness of these shared peaks is higher than that of non-shared peaks. By contrast, evolution in anti-correlated landscape pairs sample large regions of genotype space, exhibiting ergodic-like steady-state behavior that results in decreased average fitness.

FIG. 1: Adaptation to alternating landscapes may depend on inter-landscape correlations.

FIG. 1:

A. Schematic fitness landscape, with fitness varying from less fit (blue) to more fit (red) over the two dimensional genotype space. Starting from a single genotype (lower right hand corner), adaptation follows a biased random walk (arrows) toward local fitness maxima (in this case, in the upper left side of the landscape). B and C. Fitness landscapes A and B are positively (B) or negatively (C) correlated and do not share a global fitness maximum. Adaptation under rapid alternation of landscapes A and B leads to an altered evolutionary trajectory (represented as arrows, with solid arrows indicating steps in A and dashed arrows steps in B). In this example, the final fitness achieved in both correlated (panel B) and anti-correlated (panel C) landscapes is lower than that of static landscape evolution (panel A). Adaptation to anti-correlated landscapes leads to a particularly significant decrease in final fitness, as each step in B effectively reverses the progress made the previous step in A.

II. RESULTS

A. Markov chain model of evolution in alternating landscape pairs with tunable correlations

We consider evolution of an asexual haploid genome with N mutational sites. Each mutational site can have one of two alleles (labeled 0 or 1), and a single genotype can therefore be represented by one of the 2N possible binary sequences of length N. The fitness of each genotype depends on the specific environment in which evolution takes place. We consider two different environments (“A” and “B”), and in each environment, every genotype is assigned a fixed fitness value, which defines the corresponding fitness landscapes (landscape A and landscape B) in each environment. Each fitness landscape is therefore defined on an N-dimensional hypercubic graph, with the nodes corresponding to specific genotypes.

To construct the landscape for a given environment, we use a many-peaked “rough Mt. Fuji” landscape (Aita and Husimi 1998; Neidhart et al. 2014; Tan and Gore 2012). Specifically, we assume that the Malthusian fitness of the ancestor genotype (0,0,0…0) is zero and that the fitness fi associated with a single mutation at mutational site i is drawn from a uniform distribution on the interval [−1,1]. Single mutations can therefore lead to increases (fi > 0) or decreases (fi < 0) in fitness. To fully specify the base landscape (i.e. the smooth landscape in the absence of epistasis), we then assume fitness associated with multiple mutations is additive. Finally, landscape ruggedness is incorporated by adding to the fitness of each genotype j a fixed, random variable ξj drawn from a zero-mean normal distribution with variance σ2. The variable σ–the amplitude of the noise–determines the level of ruggedness of the landscape, which simulates epistasis (Anderson et al. 2015; Phillips 2008; Ritchie et al. 2001; da Silva et al. 2010; Tsai et al. 2007; Weinreich et al. 2006; Xu et al. 2005). In what follows, we focus on landscapes of size N = 7 (128 total genotypes) for computational convenience and limit ourselves primarily to σ = 0 (smooth landscapes) or σ=1 (rugged landscapes).

Our goal is to investigate evolution in rapidly changing environments that correspond to landscape pairs with correlated fitness peaks. To do so, we generate for each landscape A a “paired” landscape B with similar statistical properties (identical fitness mean and variance) but fitness peaks that are, on average, correlated with those of landscape A in a tunable way. To do so, we represent each landscape A as a vector A¯ of length 2N and use simple matrix algebra to generate a random vector A¯ orthogonal to A¯; by construction, then, this vector corresponds to a landscape whose fitness values are, on average, uncorrelated with those of landscape A. It is then straightforward to generate a vector B¯, a linear combination of A¯ and A¯, such that the fitness values of landscapes A and B are correlated to a tunable degree −1 ≤ ρ ≤ 1, where ρ is the Pearson correlation coefficient between the two vectors A¯ and B¯ (see Methods).

With the landscapes specified, we then model adaptation in the well-characterized Strong Selection Weak Mutation (SSWM) limit (Gillespie 1983a,b, 1984), which can be formally described by a Markov chain (Durrett and Durrett 1999; Nichol et al. 2015). During each time step, the population transitions with uniform probability to one of the neighboring genotypes with a higher fitness in the current environment. We compare adaptation on a single landscape (single landscape evolution, SLE) with adaptation to rapid alternation of the two correlated landscapes A and B, which we refer to as paired landscape evolution (PLE). We focus here on the limit of rapid environmental switching, where the fitness landscape changes (A-B-A-B…) at each time step. This corresponds loosely to the rapid environmental switching seen in many laboratory experiments (Burch and Chao 1999; Crill et al. 2000; Kim et al. 2014; Lenski 1988).

We are primarily interested in comparing the (average) steady-state fitness of populations undergoing SLE to that of populations undergoing PLE. The average fitness, F¯X(p¯), in environment X can be calculated at any time step t using F¯X(p¯)=X¯p¯(t), where p¯(t) is the vector whose ith component is the probability to be in genotype i at time t and X¯ is the landscape vector for environment X. Because the process can be described by a Markov chain, the vector p¯(t) is given by p¯(t)=TMp¯(0), where the matrix TM describes the sequence of environments over time (e.g. TM=TAM for M steps in environment A, or TM = (TBTA)M/2 for M consecutive A-B cycles, with TA and TB the transition matrices corresponding to single steps in environment A and B, respectively). In what follows, we focus primarily on the mean fitness difference between the SLE and PLE adaptation, which is given by F¯ΔAF¯A(p¯A)F¯A(p¯AB), where p¯A is the steady state genotype distribution following adaptation to environment A, and p¯AB is the steady state genotype distribution following adaptation to alternating A-B environments. Note that we define this fitness difference, F¯ΔA, with respect to landscape A¯ (noted by superscript), which allows us to compare adaptation in environment A with adaptation in the alternating A-B environments. In the drug cycling analogy, we are measuring the average fitness in the drug A environment–essentially a measure of resistance to that drug. In all calculations, we consider an ensemble of 1000 landscapes pairs–with each pair sharing the same mean and variance in fitness and the same inter-landscape correlations–and we average the results over this ensemble.

B. Adaptation in rugged landscapes frequently ends in local, sub-optimal fitness maxima

While adaptation to static, rugged landscapes is well-understood, we first briefly discuss the effects of landscape ruggedness in the context of the current model. In static landscapes, steady state is reached when the genotype corresponds to a local fitness maximum. In the case of smooth, purely additive landscapes (σ = 0), there is a single fitness peak that corresponds to the global maximum, which we call gMax. However, as the landscape becomes more rugged (σ > 0), the average number of local maxima increases. For small σ ≪ 1, the average number of local maxima is Nmax ≈ 1 + 1/2N(N + 1)σ2, while for large σ it approaches the theoretical maximum of 2N/(N + 1) (Fig 2A); in the SI, we provide a semianalytical approximation for intermediate values of σ. In turn, the fraction of adaptation trajectories that reach the global maximum decreases, reflecting the propensity of rugged landscapes to trap evolution in globally sub-optimal genotypes. To visualize these results, we represented the steady state genotype distributions and inter-genotype transitions as a network diagram (Fig 2B), with each node (circle) representing a genotype. The shading of each circle represents the relative fitness of that genotype (ranging from less fit, white, to more fit, black) and the size of the circle indicates occupation probability in the steady state. Arrows connecting different genotypes indicate nonzero transition probabilities, with the thickness of the arrow corresponding to its magnitude. We show only those transitions that can occur when adaptation starts in the ancestor genotype (top of diagram). In the case of evolution on a smooth landscape (σ = 0, Fig 2B, left panel), all trajectories lead to the single global maximum (indicated by red “+”). However, in the rugged landscape (σ = 1, Fig 2B, right panel), there is a nonzero probability of settling in each of three local maxima, and the population frequently ends in a non-optimal genotype. Increasing ruggedness would therefore be expected to lower the average fitness achieved in an ensemble of landscapes.

FIG. 2: Rugged landscapes trap populations in non-optimal fitness maxima.

FIG. 2:

A. Left panel: average number of local fitness maxima per landscape as a function of increasing ruggedness (epistasis, σ). Circles are estimates from simulations, solid curve is semi-analytical approximation (see SI), and dotted red line is the theoretical maximum (2N/(N + 1) = 16). Right panel: fraction of adapted populations that reach the global fitness maximum value as a function of ruggedness. Error bars are ± standard error of the mean in the ensemble of landscapes. B. Sample adaptive trajectories for small landscapes (N = 4) and σ = 0 (left) or σ = 1 (right). Each circle represents a genotype, with the ancestral genotype at the top. The shading of the circle represents the relative fitness of that genotype (ranging from less fit, white, to more fit, black) and the size of the circle indicates occupation probability in the steady state. Red + symbols mark genotypes corresponding to local fitness maxima. Arrows represent transitions between genotypes that occur with nonzero probability given that adaptation begins in the ancestral genotype. The width of the arrow represents the magnitude of the transition probability.

C. Switching between positively correlated landscapes can produce higher average fitness than adaptation to a static environment

Next, we set out to compare adaptation to landscape A with adaptation to alternating landscapes (A, B) with a tunable level of correlation, ρ, in the absence of epistasis (σ = 0, Fig 3A, blue). On these smooth landscapes, the fitness is single-peaked (Tan and Gore 2012), and in the absence of switching, the population always reaches this global maximum. In alternating environments, adaptation approaches the same average fitness as in static environments (i.e. F¯ΔA0)–implying that it finds the global fitness maximum–for all but the most negatively correlated landscapes (ρ < −0.85), where switching leads to steep decreases in fitness. By contrast, when landscapes are rugged (σ = 1), we find a range of correlations for which switching (PLE) increases the mean fitness (F¯ΔA<0, Fig 3A, orange). Furthermore, as ruggedness increases, the range of correlations leading to increased fitness grows (Fig 3B).

FIG. 3: Modulated fitness in alternating landscapes depends on intra-landscape ruggedness and inter-landscape correlations.

FIG. 3:

A. Difference in average fitness (at steady state) between populations adapted to a single static landscape (A) or rapidly alternating landscape pairs (A-B) as a function of correlation between landscapes A and B. Average fitness is defined as the mean fitness of the steady state genotypte distribution (which arises following adaptation to either static or switching protocols) measured in landscape A. Blue curve: σ = 0 (no epistasis; smooth); Orange curve: σ = 1 (orange; rugged). Dotted vertical line (corresponding to zero fitness difference) indicates critical value of correlation; above this critical value, switching between rugged landscape pairs (σ = 1) leads to larger fitness gains than evolution in a static landscape. B. Heatmap showing regions of parameter space (ruggedness σ, inter-landscape correlation) where switching leads to higher (black) or lower (white) fitness than evolution in a static landscape. C. Identical to panel A, but curves are shown for 5 (blue), 11 (red) and 501 (black) total evolutionary steps. σ=1 for all curves. D. Collateral fitness change, ranging from blue (less fit) to red (more fit), for populations adapted to alternating environments A and B as a function of ruggedness (σ) and inter-landscape correlation. Collateral fitness change is defined as the increase in average fitness in landscape B (relative to ancestor) associated with the steady state genotype distribution arising from adaptation to alternating A-B landscapes. N = 7 in all panels, but see also Figure S1. Error bars in panels A and C are ± standard error of the mean in the ensemble of landscapes.

D. Fitness can be maximally increased in either static or alternating environments depending on the timescale

We find that adaptation to static environments typically occurs on a faster timescale than adaptation to alternating environments (Fig S3). As a result, the protocol yielding the highest average fitness may differ depending on the timescale over which the comparison is made. For example, on short timescales (5 total evolutionary steps; Fig 3C, blue), adaptation to static environments always leads to greater fitness gain, regardless of the correlation between landscapes. On moderate (11 total evolutionary steps; Fig 3C, red) to long (Fig 3C, black) timescales, however, we again see a range of positive correlations for which switching improves fitness–first only for highly correlated landscapes, and then eventually for a wider range of positively correlated landscapes. This result indicates that the optimal protocol for increasing fitness may depend on the chosen timescale; notably, recent results indicate that these timescales can also be tuned to maintain generalists successful in different environments (Sachdeva et al. 2020).

E. Adaptation to alternating landscapes can lead to increased mean fitness even in anti-correlated landscapes

While we have so far focused on mean fitness defined in landscape A, either due to static (F¯A(p¯A)) or alternating (F¯A(p¯A)) environments, we also asked how fitness in landscape B was modulated during adaptation. If adaptation occurs to a static landscape (A), the results are simple: the genotype adapted to A will on average exhibit increased (decreased) fitness in B when landscape B is positively (negatively) correlated with A. This scenario is reminiscent of collateral effects between different drugs, where increased resistance to one drug may be associated with either increased (cross resistance) or decreased (collateral sensitivity) resistance to a different (unseen) drug. In the case of alternating environments, however, the outcome is less clear a priori.

For smooth landscapes (σ = 0), we find that adaptation to the alternating landscapes leads to increased fitness in B (F¯B(p¯AB)>0) when the landscapes are positively correlated and decreased fitness when they are negatively correlated (Fig 3D). Nonzero epistasis shifts the boundary separating increased and decreased fitness toward negative correlations. As a result, switching leads to increased fitness in both landscapes for a wider range of correlations–even, counterintuitively, in cases where the landscapes are (weakly) anti-correlated. In the context of drug cycling, this result suggests that cross resistance is likely to arise following repeated cycling of two drugs, even when their fitness landscapes are anti-correlated (i.e. drugs induce mutual collateral sensitivity).

F. Alternating between highly-correlated landscapes promotes escape from local fitness optima

To understand why switching between highly correlated landscapes can increase fitness relative to single landscape adaptation, we again represented adaptation on a simple (N = 4) network representing a particular pair of fitness landscapes (Fig S7). The choice of N=4 allows for a simpler visual interpretation of the results, and the relevant dynamics are qualitatively similar for a broad range of landscape sizes and sigma values (Fig S1, Fig S2). The landscape for environment A is characterized by multiple local maxima (Fig S7A, left panel), and in this example, the adaptation dynamics starting from the ancestral genotype are relatively simple, with only two paths possible (Fig S7A, right panel). With equal probability, the trajectory ends in one of two possible states, one of which is the global maximum.

If we now introduce rapid alternation with a second, positively correlated landscape (ρ = 0.8), the dynamics are much richer (Fig S7B). In this example, there is a single shared (local) maximum between the two landscapes (marked with red “+”), and adaptation to alternating environments eventually shepherds all trajectories to this shared maximum, which also happens to be the global maximum. As a result, alternating between landscapes leads to (on average) greater fitness increases than that achieved in static landscapes, where trajectories are split between local and global maxima. Intuitively, this example suggests that one advantage of rapid switching is that it dislodges trajectories from suboptimal local maxima–that is, switching between highly (but not perfectly) correlated landscapes provides a source of fluctuations that maximize the likelihood of finding globally optimal genotypes. This result is reminiscent of the observed ”ratchet-like” mechanism of the lac operon in Escherichia coli (de Vos et al. 2015).

G. Evolution in highly anti-correlated paired landscapes broadly samples genotype space resulting in reduced average fitness

We now return to dynamics in strongly anti-correlated landscapes, where shared maxima may be less likely to occur. To intuitively understand dynamics in this regime, we visualized the fitness landscape and evolutionary trajectories for a pair of simple (N = 4) anticorrelated landscapes (Fig S8). In this example, adaptation to the static landscape leads to considerably higher fitness than adaptation to alternating landscapes. Interestingly, we see that the genotype distribution remains broad, even for long times. In fact, the only genotypes that remain unoccupied (pi = 0) are those five that correspond to local minima in the A landscape. Including an additional step in landscape B leads to a similarly broad distribution, now with unoccupied genotypes corresponding to local minima of landscape B (Figure S5). In contrast to adaptation to single landscapes or alternating, positively correlated landscapes, the steady state distribution is not dominated by local fitness maxima but instead corresponds to broad genotype distribution and an associated decrease in average fitness.

H. Adaptation to alternating landscapes is frequently dominated by presence or absence of shared fitness maxima

We hypothesized that the increased fitness in alternating landscapes is closely linked to the expected number of shared maxima between paired landscapes. To probe this hypothesis, we first estimated two quantities: 1) the fraction of local maxima that are shared between landscapes (specifically, the fraction of A-landscape maxima that also correspond to maxima in the paired landscape B) and 2) the fraction of landscape pairs that share at least one maxima. We estimated these quantities by simulating ensembles of landscapes and also developed semi-analytical approximations that reduce to simple evaluations of the cumulative distribution function (CDF) of a multivariate normal variable (SI). As intuition suggests, the fraction of shared maxima increases with correlation, both for smooth and rugged landscapes (Fig 4A). In addition, we estimated the fraction of landscape pairs in the entire ensemble that share at least one shared maximum (Fig 4B). Again we find that this quantity increases with correlation, but it does so much more rapidly for rugged landscapes. For smooth landscapes, the latter fraction increases gradually–and the curve is identical to that in (Fig 4A), a result of the fact that smooth landscapes have only a single (global) maximum.

FIG. 4: Evolution in alternating landscapes is frequently dominated by presence or absence of shared fitness maxima.

FIG. 4:

A. Fraction of local maxima in landscape A that also correspond to a shared maxima in landscape B (σ = 0, blue; and σ = 1, red). B. Fraction of landscape pairs share at least one maximum. In panels A and B, circles corresponded to simulated landscapes and solid lines are semi-analytic approximations (see SI). C. Fraction of trajectories ending in a shared maximum as a function of correlation. D. Average fitness of shared maxima (blue) and average fitness of non-shared maxima (black). Dashed line is average fitness of all local maxima in landscape A. E. Normalized entropy of the steady state genotype distribution following adaptation to alternating landscapes. Curves correspond to the full landscape pair ensemble (blue) and a reduced ensemble consisting only of landscapes that contain a shared maximum (red), bottom, and a reduced ensemble consisting only of landscapes with no shared maxima (red, top). The relative entropy is defined as S(p)/Smax(ipilnpi)/Smax, where pi is the steady state probability of being in genotype i and Smax is the entropy of a uniform distribution. F. Fraction of genotypes that have a nonzero probability of occupation in either the last A step or last B step at steady-state. Curves represent the paired landscape ensemble with no shared maxima (blue), the ensemble where every pair has at least one shared maximum (red), and the full ensemble (black). G. Difference in average fitness achieved in static and switching landscapes. Curves correspond to the full ensemble of paired landscapes (black) or a restricted ensemble that includes on those pairs that share a fitness maximum (red). H. Similar to panel F, with curves corresponding to the full ensemble (black) or a restricted ensemble that includes only those pairs with no shared fitness maxima (red). Error bars are ± standard error of the mean in the ensemble of landscapes. Error bars are ± standard error of the mean in the ensemble of landscapes. N = 7 for all curves, and σ = 1 for all curves in panels D-H.

To link these architectural properties of the landscapes with dynamics, we calculated adaptation trajectories under rapid switching of all paired landscapes in these ensembles (Fig 4C). For both smooth landscapes and negatively correlated rugged landscapes, the fraction of trajectories ending in a shared maximum closely mirrors the fraction of landscapes pairs that share a maximum. This correspondence suggests that under these conditions, when landscapes share a local maximum, the adapting system is likely to settle there. On the other hand, for positively correlated rugged landscapes, the likelihood of finding a shared maximum is relatively insensitive to correlation until ρ becomes quite large (> .80), when it rapidly increases (Fig 4C).

To further clarify the connection between fitness and shared maxima, we divided the local fitness maxima from landscape A into one of two categories: those that also correspond to a local maximum in landscape B, and those that do not. We found, somewhat counter-intuitively, that the mean fitness differs for the two categories (Fig 4D). For negatively correlated landscape pairs, the fitness of shared maxima is less than that of non-shared maxima. By contrast, shared maxima in highly (positively) correlated landscapes have a higher mean fitness than non-shared maxima. In addition, there is a range of positive ρ where the fitness of shared maxima is also greater than the average fitness of maxima in a single A landscape (which corresponds to the ρ → 1 limit of the curve), offering an explanation for the fitness increase induced by alternating between highly correlated landscapes. Specifically, evolutionary trajectories typically settle into a single local maxima for adaptation to both static and positively correlated, alternating environments; however, for a range of highly (but not perfectly) correlated landscape pairs, the mean fitness of those shared maxima is greater than the mean fitness of local maxima in a single A landscape.

I. Steady-state genotype distributions transition from narrow to broad as correlation is decreased

To further characterize steady state dynamics, we calculated the entropy of the steady state genotype distribution, defined as S(p)/Smax(ipilnpi)/Smax, where pi is the steady state probability of being in genotype i and the expression is normalized by Smax = N ln(2), the entropy of a uniform distribution (Fig 4E)–that is, a state where every genotype is equally probable. To capture dynamics associated with potential non-fixed point behavior, for this analysis we slightly modify the definition of steady state to be pi = (pA+pB)/2, where pA is the steady state fitness following a step in landscape A (the previously used definition) and pB the fitness in the same steady state regime but following a step in landscape B (in words, we average over a full A-B cycle in the steady state). We find that as correlation (ρ) increases, the entropy of the system decreases, indicating that the dynamics are confined to an ever smaller set of genotypes–presumably those corresponding to shared maxima. Indeed, if we restrict the ensemble to only those landscape pairs that share a maximum, the entropy of the distribution is unchanged for highly correlated landscapes, suggesting that shared maxima dominate the steady state dynamics. By contrast, when landscape pairs are anticorrelated, restricting the ensemble to pairs without shared maxima closely approximates the results of the full ensemble, suggesting that dynamics in this regime are dominated by qualitatively different behavior. Consistent with changes in the entropy of the genotype distribution, we also find that correlation dramatically changes the fraction of genotype space occupied (with nonzero probability) in the steady state (Fig 4F). For highly correlated landscapes, only a small fraction of the total genotype space is occupied. By contrast, highly anti-correlated landscapes produce steady state distributions wherein all states are occupied with non-zero probability, suggesting ergodic-like behavior, consistent with the example in Fig S8. The fact that relative entropy remains less than 1 in this regime does indicate, however, that the distribution is not fully uniform.

Finally, in Fig 4G, we plot the difference in steady state fitness achieved in static vs alternating environments for both the full landscape pair ensemble (black) and for a reduced ensemble consisting only of landscapes with shared maxima (red). We find that the curves are nearly identical over a wide range of correlations σ > −0.4. Similarly, when the environments are strongly anticorrelated, fitness differences are similar between the full ensemble and the reduced ensemble with no shared maxima (Fig 4H). Taken together, these results provide evidence that adaptation in this model is frequently dominated by the presence or absence of shared fitness maxima, which in turn depends on the correlation between landscapes and landscape ruggedness.

J. Clonal interference and slow switching reduce the impact of alternating between anticorrelated landscapes

Our idealized model neglects clonal interference, which could potentially impact the evolutionary dynamics (Gerrish and Lenski 1998). To investigate its potential impacts, we implement a phenomenological model previously used to estimate the effects of clonal interference (Tan and Gore 2012). Briefly, in the absence of clonal interference, the population can be treated as a random walker that steps to any nearby more fit genotype with equal probability. In order to simulate clonal interference, the population can be treated as a greedy walker, where the fixation probability of advantageous mutations is assumed to be proportional to sx, where s is the selective advantage and x is the phenomenological parameter. As x increases, the probability of stepping to more fit mutants continues to grow, simulating larger population sizes.

We find that small and moderate levels of clonal interference (x ∼ 5) reduce the observed fitness differences between static and alternating protocols but lead to similar qualitative dynamics (Fig 5). However, as the population size gets large (x > 5) the fitness difference, genetic diversity and collateral effects due to switching become quite small; the impact of clonal interference is particularly large when landscape pairs are strongly anticorrelated.

FIG. 5: Clonal interference reduces the effects of alternating landscape evolution.

FIG. 5:

A. Difference in average fitness achieved in static and switching landscapes. Curves correspond to different strengths of clonal interference (blue: random walker, x = 0, red: proportional walker, x = 1, green: x = 2, black: x = 5, magenta: x = 10, orange: x infinite, always steps to largest fitness neighbor). B. Normalized entropy of the steady state genotype distribution following adaption to alternating landscapes with different clonal interference. C. Fraction of trajectories ending in a shared maximum as a function of correlation with different clonal interference. D. Collateral fitness change, ranging from blue (less fit) to red (more fit), for populations adapted to alternating environments A and B as a function of clonal interference (x).

We next asked how the period of switching impacts the evolutionary dynamics. To do so, we varied the period of the switching (specifically, the number of consecutive steps taken in one landscape before switching) over approximately an order of magnitude (Fig 6). We find that small changes in the period–for example, doubling it from 1 step to 2– reduces the observed fitness differences and the normalized entropy, particularly for anticorrelated landscapes, but does not dramatically impact the likelihood of ending in a shared maximum or the collateral fitness changes (Fig 6).

FIG. 6: Consecutive steps in the same landscape before switching lessens the effects of alternating landscape evolution.

FIG. 6:

A. Difference in average fitness achieved in static and switching landscapes. Curves correspond to different evolutionary steps taken in a landscape before switching (blue: 1 step, red: 2 steps, green: 4 steps, magenta: 8 steps, black: 20 steps). B. Normalized entropy of the steady state genotype distribution following adaption to alternating in landscapes with different switching periods. C. Fraction of trajectories ending in a shared maximum as a function of correlation with different switching periods. D. Collateral fitness change, ranging from blue (less fit) to red (more fit), for populations adapted to alternating environments A and B as a function of switching period.

III. DISCUSSION

Our results indicate that both intra-landscape disorder (ruggedness) and inter-landscape fitness correlations impact fitness in rapidly alternating fitness landscapes. Compared with static adaptation, rapid switching can lead to increased or decreased fitness, depending on both the correlation between landscapes and level of intra-landscape ruggedness (i.e. epistasis). Perhaps most strikingly, switching between highly, but not perfectly, correlated rugged landscapes can increase fitness by promoting escape from local fitness maxima, increasing the likelihood of finding global fitness optima. Furthermore, rapid switching can also produce a genotype distribution whose fitness is, on average, larger than that of the ancestor population in both environments, even when the landscapes themselves are anti-correlated. Adaptation dynamics are often dominated by the presence or absence of shared maxima between landscapes. Rugged landscape pairs are increasingly likely to exhibit shared maxima as they become more positively correlated, and in turn, for landscapes with positive correlations, the mean fitness of these shared peaks is higher than that of non-shared peaks. By contrast, evolution in anti-correlated landscape pairs samples large regions of genotype space, exhibiting ergodic-like steady-state behavior that results in decreased average fitness. A simple phenomenological model suggests these results are robust to competition due to small and moderate clonal interference, however they disappear as population sizes grow excessively large. In addition, while prolonging the period of switching can alter the dynamics in anti-correlated landscape evolution, the fitness advantage conferred by alternating evolution in correlated landscape pairs is robust to the period of switching.

While our results are loosely inspired by antibiotic cycling, the model is highly idealized and certainly cannot make predictions that apply directly to clinical scenarios. At the same time, the simplicity and relative generality of the model means that it may be relevant for understanding the qualitative behavior of a wide range of systems, including evolution in antibodies (Burton et al. 2012), viruses (Rhee et al. 2010), and bacteria, where ratchet-like mechanisms for rapid adaptation have been observed experimentally (de Vos et al. 2015). Our model relies on the Strong Selection Weak Mutation (SSWM) limit and neglects potentially relevant dynamics that could arise due to horizontal gene transfer or population heterogeneity, which could potentially accelerate adaptation, particularly when switching between anticorrelated landscapes. While we also investigated an adapted model that accounts for clonal interference (Tan and Gore 2012), the model still assumes a homogeneous population, thus ignoring the genetic diversity necessary of clonal interference, and it neglects the possibility for deleterious or multiple simultaneous mutations to fix. In addition, we focus on small (typically N = 7) landscapes for tractability, and dynamics could differ for much larger landscapes.

It is important to note that we focus on paired landscapes characterized by a prescribed ”global” correlation coefficient, but we do not investigate how smaller sub-regions may differ from that global characterization. In addition, the paired landscapes in our ensembles are constructed to share certain global features–like mean fitness–and are related by a prescribed inter-landscape correlation, but they are not statistically identical. For example, the average number of local maxima can differ between landscape A and B, leading to different levels of evolved fitness for each landscape individually (Figure S6). This indicates that landscapes A and B have effectively different levels of epistasis, depending on the value of ρ, though these differences are most pronounced when A landscapes are very smooth (σ ≈ 0). These differences do not seem to be appreciably impacting fitness dynamics, as removing them by choosing a reduced ensemble (keeping only the B landscapes that exhibit similar fitness gains as A under static adaptation) does not appreciably modify the results (Figure S6). Nevertheless, it is possible that some of these results are specific to the exact manner in which correlated landscapes were produced. It may be interesting to investigate switching dynamics using landscapes with different types of statistical similarities–for example, those that differ only in higher-order moments, or those that fully decouple landscape ruggedness and correlation (Wang and Dai 2019)). In fact, the results presented here are complementary to recent findings showing that environmental switching can enhance the basin of attraction for generalists, which are genotypes that are fit in multiple environments (Sachdeva et al. 2020; Wang and Dai 2019). While the focus of the work is different–and the timescale of environmental switching and the statistical relationships between landscape pairs differ in their model–our results similarly highlight the importance of shared landscape maxima in determining adaptation dynamics. Future work may aim to further elucidate the evolutionary impacts of varying timescale, ordering, and temporal correlations in landscape dynamics. In the long run, we hope results from idealized models like these offer increased conceptual clarity to complement the rapidly evolving experimental approaches for mapping landscape dynamics in living organisms.

IV. METHODS

A. Construction of the landscapes

We use the “rough Mt. Fiji” landscape model (Aita and Husimi 1998; Neidhart et al. 2014; Tan and Gore 2012) where each genotype is represented by a binary sequences of length N. The fitness of the ancestor genotype (0,0,0…0) is set to zero and the Malthusian fitness fi associated with a single mutation at mutational site i is drawn from a uniform distribution on the interval [−1,1]. The fitness associated with multiple mutations is additive, and landscape ruggedness is incorporated by adding to the fitness of each genotype j a fixed, random variable ξj drawn from a zero-mean normal distribution with variance σ2.

To create paired fitness landscapes, we represent each landscape A as a vector A¯ of length 2N, which we center and rescale to achieve a zero mean, unit variance vector. Then, we generate a Gaussian random vector A¯ (also with zero mean and unit variance) and subtract from A¯ its projection onto A¯, making A¯ orthogonal to A¯; by construction, this vector corresponds to a landscape whose fitness values are, on average, uncorrelated with those of landscape A. It is then straightforward to generate a vector B¯, a linear combination of A¯ and A¯, such that the fitness values of landscapes A and B are correlated to a tunable degree −1 ≤ ρ ≤ 1, where ρ is the Pearson correlation coefficient between the two vectors A¯ and B¯. At the end of this procedure, we rescale A¯ and B¯ so that both have mean and variance equal to that of the original A landscape.

B. Evolution on the landscapes

The SSWM assumption allows the evolutionary trajectories to be modeled as a Markov chain (Durrett and Durrett 1999; Nichol et al. 2015). We follow the “random move SSWM model”, which says that the probability of transitioning between adjacent genotypes ij is given by Tij = 1/m, with m the total number of i-adjacent genotypes with fitnes greater than that of i in the given environment. Each environment (A or B) has its own transition matrix, which we designate as TA and TB. Evolution in environment A is then given by

p¯(t)=(TA)tp¯(0) (1)

with p¯(t) the vector whose ith component is the probability to be in genotype i at time step t. We refer to the steady state (t → ∞) limit of this process as p¯A. Similarly, we can describe rapidly alternating landscapes (A-B-A-B…) with

p¯(t)=(TBTA)t/2p¯(0) (2)

with t′ ≡ 2t an even time step. We refer to the steady state (t → ∞) limit of this process as p¯AB. In practice, we define steady state using the condition (p¯(2t+1)p¯(2t1))<ϵ=0.001. In words, we require the change in p¯ between consecutive steps in environment A to be sufficiently small. To facilitate comparison with static evolution in landscape A, we always end the process after a step in landscape A, meaning there are always an odd number of steps. Ending instead in landscape B results in qualitatively similar behavior, though the fitness is often shifted, indicating that a single step in A or B–even in steady state–can lead to significant changes in fitness S4.

V. DATA ARCHIVING

The data used in this article have been uploaded to Dryad (https://doi.org/10.5061/dryad.2v6wwpzkj)

Supplementary Material

1

Acknowledgements:

This work is supported, in part, by the National Science Foundation (NSF No. 1553028 to KW), the National Institutes of Health (NIH No. 1R35GM124875-01 to KW), and the Hartwell Foundation for Biomedical Research (to KW).

Footnotes

Data Accessibility Statement: All code used to produce the simulations has been uploaded to GitHub: https://github.com/jamaltas/LandscapeEvolution

All raw data can be found at DRYAD: https://doi.org/10.5061/dryad.2v6wwpzkj

References

  1. Acar M, Mettetal JT, and van Oudenaarden A, 2008. Stochastic switching as a survival strategy in fluctuating environments. Nature Genetics 40:471 EP –. URL 10.1038/ng.110. [DOI] [PubMed] [Google Scholar]
  2. Agarwala A and Fisher DS, 2019. Adaptive walks on high-dimensional fitness landscapes and seascapes with distance-dependent statistics. Theoretical Population Biology 130:13–49. [DOI] [PubMed] [Google Scholar]
  3. Aita T and Husimi Y, 1998. Adaptive walks by the fittest among finite random mutants on a mt. fuji-type fitness landscape. Journal of Theoretical Biology 193:383–405. URL http://www.sciencedirect.com/science/article/pii/S0022519398907093. [DOI] [PubMed] [Google Scholar]
  4. Anderson DW, McKeown AN, and Thornton JW, 2015. Intermolecular epistasis shaped the function and evolution of an ancient transcription factor and its dna binding sites. eLife 4:e07864. URL 10.7554/eLife.07864. [DOI] [PMC free article] [PubMed] [Google Scholar]
  5. Barbosa C, Beardmore R, Schulenburg H, and Jansen G, 2018. Antibiotic combination efficacy (ace) networks for a pseudomonas aeruginosa model. PLoS biology 16:e2004356. [DOI] [PMC free article] [PubMed] [Google Scholar]
  6. Baym M, Lieberman TD, Kelsic ED, Chait R, Gross R, Yelin I, and Kishony R, 2016. Spatiotemporal microbial evolution on antibiotic landscapes. Science 353:1147–1151. [DOI] [PMC free article] [PubMed] [Google Scholar]
  7. Bergstrom CT, Lo M, and Lipsitch M, 2004. Ecological theory suggests that antimicrobial cycling will not reduce antimicrobial resistance in hospitals. Proc. Natl. Acad. Sci. USA 101:13285–13290. [DOI] [PMC free article] [PubMed] [Google Scholar]
  8. Brown EM and Nathwani D, 2005. Antibiotic cycling or rotation: a systemic review of the evidence of efficacy. Journal of Antimicrobial Chemotherapy 55:6–9. [DOI] [PubMed] [Google Scholar]
  9. Burch CL and Chao L, 1999. Evolution by small steps and rugged landscapes in the rna virus phi-6. Genetics 151:921–927. URL https://www.genetics.org/content/151/3/921. [DOI] [PMC free article] [PubMed] [Google Scholar]
  10. Burton DR, Poignard P, Stanfield RL, and Wilson IA, 2012. Broadly neutralizing antibodies present new prospects to counter highly antigenically diverse viruses. Science 337:183–186. [DOI] [PMC free article] [PubMed] [Google Scholar]
  11. Canino-Koning R, Wiser MJ, and Ofria C, 2019. Fluctuating environments select for short-term phenotypic variation leading to long-term exploration. PLOS Computational Biology 15:1–32. URL 10.1371/journal.pcbi.1006445. [DOI] [PMC free article] [PubMed] [Google Scholar]
  12. Constable GW and McKane AJ, 2014a. Fast-mode elimination in stochastic metapopulation models. Physical Review E 89:032141. [DOI] [PubMed] [Google Scholar]
  13. Constable GW and McKane AJ, 2014b. Population genetics on islands connected by an arbitrary network: An analytic approach. Journal of theoretical biology 358:149–165. [DOI] [PubMed] [Google Scholar]
  14. Cook RD and Hartl DL, 1974. Uncorrelated random environments and their effects on gene frequency. Evolution 28:265–274. URL http://www.jstor.org/stable/2407328. [DOI] [PubMed] [Google Scholar]
  15. Cooper TF and Lenski RE, 2010. Experimental evolution with e. coli in diverse resource environments. i. fluctuating environments promote divergence of replicate populations. BMC evolutionary biology 10:11. [DOI] [PMC free article] [PubMed] [Google Scholar]
  16. Crill WD, Wichman HA, and Bull JJ, 2000. Evolutionary reversals during viral adaptation to alternating hosts. Genetics 154:27–37. URL https://www.genetics.org/content/154/1/27. [DOI] [PMC free article] [PubMed] [Google Scholar]
  17. Cvijović I, Good BH, Jerison ER, and Desai MM, 2015. Fate of a mutation in a fluctuating environment. Proceedings of the National Academy of Sciences 112:E5021–E5028. URL https://www.pnas.org/content/112/36/E5021. [DOI] [PMC free article] [PubMed] [Google Scholar]
  18. David HA and Nagaraja HN, 2004. Order statistics. Encyclopedia of Statistical Sciences. [Google Scholar]
  19. De Jong MG and Wood KB, 2018. Tuning spatial profiles of selection pressure to modulate the evolution of drug resistance. Physical review letters 120:238102. [DOI] [PMC free article] [PubMed] [Google Scholar]
  20. Desai MM and Fisher DS, 2007. Beneficial mutation–selection balance and the effect of linkage on positive selection. Genetics 176:1759–1798. URL https://www.genetics.org/content/176/3/1759. [DOI] [PMC free article] [PubMed] [Google Scholar]
  21. Desai MM, Fisher DS, and Murray AW, 2007. The speed of evolution and maintenance of variation in asexual populations. Current Biology 17:385–394. URL 10.1016/j.cub.2007.01.072. [DOI] [PMC free article] [PubMed] [Google Scholar]
  22. Dhawan A, Nichol D, Kinose F, Abazeed ME, Marusyk A, Haura EB, and Scott JG, 2017. Collateral sensitivity networks reveal evolutionary instability and novel treatment strategies in alk mutated non-small cell lung cancer. Scientific Reports 7. [DOI] [PMC free article] [PubMed] [Google Scholar]
  23. Durrett R and Durrett R, 1999. Essentials of stochastic processes, vol. 1. Springer. [Google Scholar]
  24. de Evgrafov MR, Gumpert H, Munck C, Thomsen TT, and Sommer MOA, 2015. Collateral resistance and sensitivity modulate evolution in high-level resistance to drug combination treatment in staphylococcus aureus. Mol. Biol. Evol. 32:1175–1185. [DOI] [PubMed] [Google Scholar]
  25. Farhang-Sardroodi S, Darooneh A, Nikbakht M, Komarova N, and Kohandel M, 2017. The effect of spatial randomness on the average fixation time of mutants. PLoS computational biology 13:e1005864. [DOI] [PMC free article] [PubMed] [Google Scholar]
  26. Fu F, Nowak MA, and Bonhoeffer S, 2015. Spatial heterogeneity in drug concentrations can facilitate the emergence of resistance to cancer therapy. PLoS Comput Biol 11:e1004142. [DOI] [PMC free article] [PubMed] [Google Scholar]
  27. Fuentes-Hernandez A, Plucain J, Gori F, Pena-Miller R, Reding C, Jansen G, Schulenburg H, Gudelj I, and Beardmore R, 2015. Using a sequential regimen to eliminate bacteria at sublethal antibiotic dosages. PLoS biology 13:e1002104. [DOI] [PMC free article] [PubMed] [Google Scholar]
  28. Gaál B, Pitchford JW, and Wood AJ, 2010. Exact results for the evolution of stochastic switching in variable asymmetric environments. Genetics 184:1113–1119. [DOI] [PMC free article] [PubMed] [Google Scholar]
  29. Gerhart J and Kirschner M, 2007. The theory of facilitated variation. Proceedings of the National Academy of Sciences 104:8582–8589. [DOI] [PMC free article] [PubMed] [Google Scholar]
  30. Gerrish PJ and Lenski RE, 1998. The fate of competing beneficial mutations in an asexual population. Genetica 102:127. URL 10.1023/A:1017067816551. [DOI] [PubMed] [Google Scholar]
  31. Gillespie JH, 1983a. A simple stochastic gene substitution model. Theoretical Population Biology 23:202–215. URL http://www.sciencedirect.com/science/article/pii/004058098390014X. [DOI] [PubMed] [Google Scholar]
  32. Gillespie JH, 1983b. Some properties of finite populations experiencing strong selection and weak mutation. The American Naturalist 121:691–708. [Google Scholar]
  33. Gillespie JH, 1984. Molecular evolution over the mutational landscape. Evolution 38:1116–1129. [DOI] [PubMed] [Google Scholar]
  34. Gillespie JH and Guess HA, 1978. The effects of environmental autocorrelations on the progress of selection in a random environment. The American Naturalist 112:897–909. URL 10.1086/283330. [DOI] [Google Scholar]
  35. Greulich P, Waclaw B, and Allen RJ, 2012. Mutational pathway determines whether drug gradients accelerate evolution of drug-resistant cells. Physical Review Letters 109:088101. [DOI] [PubMed] [Google Scholar]
  36. Gupta PB, Fillmore CM, Kiang G, Shapira SD, Tao K, Kuperwasser C, and Lander ES, 2011. Stochastic state transitions give rise to phenotypic equilibrium in populations of cancer cells. Cell 146:633–644. [DOI] [PubMed] [Google Scholar]
  37. Habets MG, Rozen DE, Hoekstra RF, and de Visser JAG, 2006. The effect of population structure on the adaptive radiation of microbial populations evolving in spatially structured environments. Ecology letters 9:1041–1048. [DOI] [PubMed] [Google Scholar]
  38. Hart Y, Sheftel H, Hausser J, Szekely P, Ben-Moshe NB, Korem Y, Tendler A, Mayo AE, and Alon U, 2015. Inferring biological tasks using pareto analysis of high-dimensional data. Nature methods 12:233–235. [DOI] [PubMed] [Google Scholar]
  39. Hartl DL and Cook RD, 1974. Autocorrelated random environments and their effects on gene frequency. Evolution 28:275–280. URL http://www.jstor.org/stable/2407329. [DOI] [PubMed] [Google Scholar]
  40. Hermsen R, Deris JB, and Hwa T, 2012. On the rapidity of antibiotic resistance evolution facilitated by a concentration gradient. Proceedings of the National Academy of Sciences 109:10775–10780. [DOI] [PMC free article] [PubMed] [Google Scholar]
  41. Hermsen R and Hwa T, 2010. Sources and sinks: a stochastic model of evolution in heterogeneous environments. Physical review letters 105:248104. [DOI] [PMC free article] [PubMed] [Google Scholar]
  42. Imamovic L, Ellabaan M, Machado A, Molin S, Johansen H, and Sommer M, 2018. Drug-driven phenotypic convergence supports rational treatment strategies of chronic infections. Cell 172:P121–134. [DOI] [PMC free article] [PubMed] [Google Scholar]
  43. Imamovic L and Sommer MOA, 2013. Use of collateral sensitivity networks to design drug cycling protocols that avoid resistance development. Sci. Transl. Med 5:204ra132. [DOI] [PubMed] [Google Scholar]
  44. Kashtan N, Noor E, and Alon U, 2007. Varying environments can speed up evolution. Proceedings of the National Academy of Sciences 104:13711–13716. URL https://www.pnas.org/content/104/34/13711. [DOI] [PMC free article] [PubMed] [Google Scholar]
  45. Kim S, Lieberman TD, and Kishony R, 2014. Alternating antibiotic treatments constrain evolutionary paths to multidrug resistance. Proceedings of the National Academy of Sciences 111:14494–14499. [DOI] [PMC free article] [PubMed] [Google Scholar]
  46. Korona R, Nakatsu CH, Forney LJ, and Lenski RE, 1994. Evidence for multiple adaptive peaks from populations of bacteria evolving in a structured habitat. Proceedings of the National Academy of Sciences 91:9037–9041. [DOI] [PMC free article] [PubMed] [Google Scholar]
  47. Kussell E and Leibler S, 2005. Phenotypic diversity, population growth, and information in fluctuating environments. Science 309:2075–2078. URL https://science.sciencemag.org/content/309/5743/2075. [DOI] [PubMed] [Google Scholar]
  48. Lazar V, Martins A, Spohn R, Daruka L, Grezal G, Fekete G, Szamel M, Jangir P, Kintses B, Csorgo B, Nyerges A, Gyorkei A, Kincses A, Der A, Walter F, Deli M, Urban E, Hegedus Z, Olajos G, Mehi O, Balint B, Nagy I, Martinek T, Papp B, and Pal C, 2018. Antibiotic-resistant bacteria show widespread collateral sensitivity to antimicrobial peptides. Nature Microbiology 3:718–731. [DOI] [PMC free article] [PubMed] [Google Scholar]
  49. Lazar V, Nagy I, Spohn R, Csorgo B, Gyorkei A, Nyerges A, Horvath B, Voros A, Busa-Fekete R, Hrtyan M, Bogos B, Mehi O, Fekete G, Szappanos B, Kegl B, Papp B, and Pal C, 2014. Genome-wide analysis captures the determinants of the antibiotic cross-resistance interaction network. Nat. Commun 5. [DOI] [PMC free article] [PubMed] [Google Scholar]
  50. Lazar V, Singh GP, Spohn R, Nagy I, Horvath B, Hrtyan M, Busa-Fekete R, Bogos B, Mehi O, Csorgo B, Posfai G, Fekete G, Szappanos B, Kegl B, Papp B, and Pal C, 2013. Bacterial evolution and antibiotic hypersensitivity. Mol. Syst. Biol 9. [DOI] [PMC free article] [PubMed] [Google Scholar]
  51. Lenski RE, 1988. Experimental studies of pleiotropy and epistasis in escherichia coli. ii. compensation for maldaptive effects associated with resistance to virus t4. Evolution 42:433–440. URL http://www.jstor.org/stable/2409029. [DOI] [PubMed] [Google Scholar]
  52. Lewontin RC and Cohen D, 1969. On population growth in a randomly varying environment. Proceedings of the National Academy of Sciences 62:1056–1060. URL https://www.pnas.org/content/62/4/1056. [DOI] [PMC free article] [PubMed] [Google Scholar]
  53. Lin YT, Kim H, and Doering CR, 2015. Demographic stochasticity and evolution of dispersion ii: Spatially inhomogeneous environments. Journal of Mathematical Biology 70:679–707. URL 10.1007/s00285-014-0756-0. [DOI] [PubMed] [Google Scholar]
  54. Maltas J, Krasnick B, and Wood KB, 2019. Using Selection by Nonantibiotic Stressors to Sensitize Bacteria to Antibiotics. Molecular Biology and Evolution URL 10.1093/molbev/msz303.Msz303. [DOI] [PMC free article] [PubMed] [Google Scholar]
  55. Maltas J and Wood KB, 2019. Pervasive and diverse collateral sensitivity profiles inform optimal strategies to limit antibiotic resistance. PLoS biology 17. [DOI] [PMC free article] [PubMed] [Google Scholar]
  56. Moreno-Gamez S, Hill AL, Rosenbloom DI, Petrov DA, Nowak MA, and Pennings PS, 2015. Imperfect drug penetration leads to spatial monotherapy and rapid evolution of multidrug resistance. Proceedings of the National Academy of Sciences 112:E2874–E2883. [DOI] [PMC free article] [PubMed] [Google Scholar]
  57. Munck C, Gumpert HK, Wallin AIN, Wang HH, and Sommer MOA, 2014. Prediction of resistance development against drug components by collateral responses to component drugs. Sci. Transl. Med 6:262ra156. [DOI] [PMC free article] [PubMed] [Google Scholar]
  58. Mustonen V and Lässig M, 2008. Molecular evolution under fitness fluctuations. Phys. Rev. Lett. 100:108101. URL 10.1103/PhysRevLett.100.108101. [DOI] [PubMed] [Google Scholar]
  59. Mustonen V and Lässig M, 2009. From fitness landscapes to seascapes: non-equilibrium dynamics of selection and adaptation. Trends in genetics 25:111–119. [DOI] [PubMed] [Google Scholar]
  60. Neidhart J, Szendro IG, and Krug J, 2014. Adaptation in tunably rugged fitness landscapes: the rough mount fuji model. Genetics 198:699–721. URL https://www.ncbi.nlm.nih.gov/pubmed/25123507.25123507[pmid]. [DOI] [PMC free article] [PubMed] [Google Scholar]
  61. Nichol D, Jeavons P, Fletcher AG, Bonomo RA, Maini PK, Paul JL, Gatenby RA, Anderson AR, and Scott JG, 2015. Steering evolution with sequential therapy to prevent the emergence of bacterial antibiotic resistance. PLOS Computational Biology 11:1–19. URL 10.1371/journal.pcbi.1004493. [DOI] [PMC free article] [PubMed] [Google Scholar]
  62. Nichol D, Rutter J, Bryant C, Hujer AM, Lek S, Adams MD, Jeavons P, Anderson AR, Bonomo RA, and Scott JG, 2019. Antibiotic collateral sensitivity is contingent on the repeatability of evolution. Nature communications 10:334. [DOI] [PMC free article] [PubMed] [Google Scholar]
  63. ONeill M, Vanneschi L, Gustafson S, and Banzhaf W, 2010. Open issues in genetic programming. Genetic Programming and Evolvable Machines 11:339–363. [Google Scholar]
  64. Parter M, Kashtan N, and Alon U, 2008. Facilitated variation: how evolution learns from past environments to generalize to new environments. PLoS computational biology 4:e1000206. [DOI] [PMC free article] [PubMed] [Google Scholar]
  65. Patra P and Klumpp S, 2015. Emergence of phenotype switching through continuous and discontinuous evolutionary transitions. Physical biology 12:046004. [DOI] [PubMed] [Google Scholar]
  66. Phillips PC, 2008. Epistasisthe essential role of gene interactions in the structure and evolution of genetic systems. Nature Reviews Genetics 9:855. [DOI] [PMC free article] [PubMed] [Google Scholar]
  67. Rhee S-Y, Taylor J, Fessel WJ, Kaufman D, Towner W, Troia P, Ruane P, Hellinger J, Shirvani V, Zolopa A, et al. , 2010. Hiv-1 protease mutations and protease inhibitor cross-resistance. Antimicrobial agents and chemotherapy 54:4253–4261. [DOI] [PMC free article] [PubMed] [Google Scholar]
  68. Ritchie MD, Hahn LW, Roodi N, Bailey LR, Dupont WD, Parl FF, and Moore JH, 2001. Multifactor-dimensionality reduction reveals high-order interactions among estrogen-metabolism genes in sporadic breast cancer. The American Journal of Human Genetics 69:138–147. URL 10.1086/321276. [DOI] [PMC free article] [PubMed] [Google Scholar]
  69. Roemhild R, Barbosa C, Beardmore RE, Jansen G, and Schulenburg H, 2015. Temporal variation in antibiotic environments slows down resistance evolution in pathogenic pseudomonas aeruginosa. Evolutionary applications 8:945–955. [DOI] [PMC free article] [PubMed] [Google Scholar]
  70. Roemhild R, Gokhale CS, Dirksen P, Blake C, Rosenstiel P, Traulsen A, Andersson DI, and Schulenburg H, 2018. Cellular hysteresis as a principle to maximize the efficacy of antibiotic therapy. Proceedings of the National Academy of Sciences 115:9767–9772. [DOI] [PMC free article] [PubMed] [Google Scholar]
  71. Royston J, 1982. Algorithm as 177: Expected normal order statistics (exact and approximate). Journal of the royal statistical society. Series C (Applied statistics) 31:161–165. [Google Scholar]
  72. Sachdeva V, Husain K, Sheng J, Wang S, and Murugan A, 2020. Tuning environmental timescales to evolve and maintain generalists. Proceedings of the National Academy of Sciences 117:12693–12699. [DOI] [PMC free article] [PubMed] [Google Scholar]
  73. Shahrezaei V, Ollivier JF, and Swain PS, 2008. Colored extrinsic fluctuations and stochastic gene expression. Molecular Systems Biology 4:196. URL 10.1038/msb.2008.31. [DOI] [PMC free article] [PubMed] [Google Scholar]
  74. Shoval O, Sheftel H, Shinar G, Hart Y, Ramote O, Mayo A, Dekel E, Kavanagh K, and Alon U, 2012. Evolutionary trade-offs, pareto optimality, and the geometry of phenotype space. Science 336:1157–1160. [DOI] [PubMed] [Google Scholar]
  75. da Silva J, Coetzer M, Nedellec R, Pastore C, and Mosier DE, 2010. Fitness epistasis and constraints on adaptation in a human immunodeficiency virus type 1 protein region. Genetics 185:293–303. URL https://www.genetics.org/content/185/1/293. [DOI] [PMC free article] [PubMed] [Google Scholar]
  76. Skanata A and Kussell E, 2016. Evolutionary phase transitions in random environments. Physical review letters 117:038104. [DOI] [PMC free article] [PubMed] [Google Scholar]
  77. Steinberg B and Ostermeier M, 2016. Environmental changes bridge evolutionary valleys. Science advances 2:e1500921. [DOI] [PMC free article] [PubMed] [Google Scholar]
  78. Tan L and Gore J, 2012. Slowly switching between environments facilitates reverse evolution in small populations. Evolution 66:3144–3154. URL 10.1111/j.1558-5646.2012.01680.x. [DOI] [PubMed] [Google Scholar]
  79. Tan L, Serene S, Chao HX, and Gore J, 2011. Hidden randomness between fitness landscapes limits reverse evolution. Phys. Rev. Lett 106:198102. URL 10.1103/PhysRevLett.106.198102. [DOI] [PubMed] [Google Scholar]
  80. Tsai C-T, Hwang J-J, Ritchie MD, Moore JH, Chiang F-T, Lai L-P, Hsu K-L, Tseng C-D, Lin J-L, and Tseng Y-Z, 2007. Renin–angiotensin system gene polymorphisms and coronary artery disease in a large angiographic cohort: Detection of high order gene–gene interaction. Atherosclerosis 195:172–180. URL 10.1016/j.atherosclerosis.2006.09.014. [DOI] [PubMed] [Google Scholar]
  81. de Vos MGJ, Dawid A, Sunderlikova V, and Tans SJ, 2015. Breaking evolutionary constraint with a tradeoff ratchet. Proceedings of the National Academy of Sciences 112:14906–14911. URL https://www.pnas.org/content/112/48/14906. [DOI] [PMC free article] [PubMed] [Google Scholar]
  82. Waddell JN, Sander LM, and Doering CR, 2010. Demographic stochasticity versus spatial variation in the competition between fast and slow dispersers. Theoretical population biology 77:279–286. [DOI] [PubMed] [Google Scholar]
  83. Wang S and Dai L, 2019. Evolving generalists in switching rugged landscapes. PLOS Computational Biology 15:e1007320. [DOI] [PMC free article] [PubMed] [Google Scholar]
  84. Weinreich DM, Delaney NF, DePristo MA, and Hartl DL, 2006. Darwinian evolution can follow only very few mutational paths to fitter proteins. Science 312:111–114. URL https://science.sciencemag.org/content/312/5770/111. [DOI] [PubMed] [Google Scholar]
  85. Whitlock MC and Gomulkiewicz R, 2005. Probability of fixation in a heterogeneous environment. Genetics 171:1407–1417. [DOI] [PMC free article] [PubMed] [Google Scholar]
  86. Xu J, Lowey J, Wiklund F, Sun J, Lindmark F, Hsu F-C, Dimitrov L, Chang B, Turner AR, Liu W, Adami H-O, Suh E, Moore JH, Zheng SL, Isaacs WB, Trent JM, and Grönberg H, 2005. The interaction of four genes in the inflammation pathway significantly predicts prostate cancer risk. Cancer Epidemiology and Prevention Biomarkers 14:2563–2568. URL https://cebp.aacrjournals.org/content/14/11/2563. [DOI] [PubMed] [Google Scholar]
  87. Yoshida M, Reyes SG, Tsudo S, Horinouchi T, Furusawa C, and Cronin L, 2017. Time-programmable dosing allows the manipulation, suppression and reversal of antibiotic drug resistance in vitro. Nat. Commun 8. [DOI] [PMC free article] [PubMed] [Google Scholar]
  88. Zhang Q, Lambert G, Liao D, Kim H, Robin K, Tung C.-k., Pourmand N, and Austin RH, 2011. Acceleration of emergence of bacterial antibiotic resistance in connected microenvironments. Science 333:1764–1767. [DOI] [PubMed] [Google Scholar]

Associated Data

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

Supplementary Materials

1

Data Availability Statement

The data used in this article have been uploaded to Dryad (https://doi.org/10.5061/dryad.2v6wwpzkj)

RESOURCES