Global epistasis emerges from a generic model of a complex trait
Abstract
Epistasis between mutations can make adaptation contingent on evolutionary history. Yet despite widespread ‘microscopic’ epistasis between the mutations involved, microbial evolution experiments show consistent patterns of fitness increase between replicate lines. Recent work shows that this consistency is driven in part by global patterns of diminishing-returns and increasing-costs epistasis, which make mutations systematically less beneficial (or more deleterious) on fitter genetic backgrounds. However, the origin of this ‘global’ epistasis remains unknown. Here, we show that diminishing-returns and increasing-costs epistasis emerge generically as a consequence of pervasive microscopic epistasis. Our model predicts a specific quantitative relationship between the magnitude of global epistasis and the stochastic effects of microscopic epistasis, which we confirm by reanalyzing existing data. We further show that the distribution of fitness effects takes on a universal form when epistasis is widespread and introduce a novel fitness landscape model to show how phenotypic evolution can be repeatable despite sequence-level stochasticity.
Introduction
Despite the idiosyncrasies of epistasis, a number of laboratory microbial evolution experiments show systematic patterns of convergent phenotypic evolution and declining adaptability. A striking example is provided by the Escherichia coli long-term evolution experiment (LTEE) (Figure 1a): 12 replicate populations that adapt in parallel show remarkably similar trajectories of fitness increase over time (Wiser et al., 2013; Lenski et al., 2015), despite stochasticity in the identity of fixed mutations and the underlying dynamics of molecular evolution (Tenaillon et al., 2016; Good et al., 2017). Similar consistent patterns of fitness evolution characterized by declining adaptability over time have also been observed in parallel yeast populations evolved from different genetic backgrounds and initial fitnesses (Kryazhimskiy et al., 2014; Figure 1b) and in other organisms (Elena and Lenski, 2003; Perfeito et al., 2014; Wünsche et al., 2017; Sanjuán et al., 2005; Couce and Tenaillon, 2015; Jerison et al., 2017; Schenk et al., 2013). Declining adaptability is thought to arise from diminishing-returns epistasis (Khan et al., 2011; Chou et al., 2011; Kryazhimskiy et al., 2014), where a global coupling induced by epistatic interactions systematically reduces the effect size of individual beneficial mutations on fitter backgrounds. Diminishing-returns manifests as a striking linear dependence of the fitness effect of a mutation on background fitness (Figure 1c). While diminishing-returns can be rationalized as the saturation of a trait close to a fitness peak, recent work shows a similar dependence on background fitness even for deleterious mutations, which become more costly on higher fitness backgrounds (Johnson et al., 2019). This suggests that fitter backgrounds are also less robust to deleterious effects (Figure 1d), a phenomenon that has been termed increasing-costs epistasis. The origin of the global coupling that results in these effects is unknown.
Put together, these empirical observations suggest that the contributions to the fitness effect, si, of a mutation at a locus in a given genetic background can be written as
where is the additive effect of the mutation, is its genotype-dependent epistatic contribution independent of the background fitness (i.e., idiosyncratic epistasis), and ci quantifies the magnitude of global epistasis for locus . Equation (1) reflects the observation that the strength of global epistasis depends on the specific mutation and applies independently of whether its additive effect is deleterious (increasing-costs) or beneficial (diminishing-returns). Over the course of adaptation in a fixed environment, global epistatic feedback on mutational effects can lead to a long-term decrease in adaptability. If this feedback dominates, Equation (1) suggests that the dependence of the fitness effect on evolutionary history is summarized entirely by the current fitness, and therefore results in predictable fitness evolution.
Here, we show that diminishing-returns and increasing-costs epistasis are a simple consequence of widespread epistasis (WE). This is consistent with recent work (Lyons et al., 2020) that proposes a similar argument to explain these phenomena. However, while the core idea is similar, we present here an alternative framework based on the Fourier analysis of fitness landscapes, which leads to new insights and quantitative predictions. In particular, our framework leads to novel predictions for the relationship between the magnitude of global epistasis and the stochastic effects of microscopic epistasis, which we confirm by reanalyzing existing data. Extending this framework, we further quantify how the distribution of fitness effects (DFEs) shifts as the organism adapts and how the fitness effect of a mutation depends on the sequence of mutations that have fixed over the course of adaptation (i.e., historical contingency). While specific historical relationships depend on the genetic architecture, we introduce a novel fitness landscape model with an intuitive architecture for which the entire history is summarized by the current fitness. Using this fitness landscape model, we investigate the long-term dynamics of adaptation and elucidate the architectural features that lead to predictable fitness evolution.
Results
Diminishing-returns and increasing-costs epistasis
We begin by examining the most general way to express the relationship between genotype and fitness (i.e., to describe the fitness landscape). A map between a quantitative trait (such as fitness), , and the underlying genotype can be expressed as a sum of combinations of biallelic loci that take on values (Hordijk and Stadler, 1998; Neher and Shraiman, 2011; Weinberger, 1991; Szendro et al., 2013; Weinreich et al., 2013):
where is a constant that sets the overall scale of fitness. The symmetric convention for the two allelic variants is less often used than , but it is an equivalent formulation, which we employ here because it will prove more convenient for our purposes (see Poelwijk et al., 2016 for a discussion). The coefficients of terms linear in xi represent the additive contribution of each locus to the fitness (i.e., its fitness effect averaged across genotypes at all other loci), the higher-order terms quantify epistatic interactions of all orders, and is the average fitness across all possible genotypes. Importantly, Equation (2) makes apparent the idiosyncrasies induced by epistasis: a mutation at a locus with interacting partners has an effect composed of contributions.
To explicitly compute the fitness effect of a mutation at locus on a particular genetic background, we simply flip the sign of xi, keeping all other xj constant, and write down the difference in fitness that results. This fitness effect will generally involve a sum over a large number of terms involving the ’s in Equation (2). While this may suggest that an analysis of fitness effects via Equation (2) is intractable, the analysis in fact simplifies considerably if the locus has a significant number of independent interactions that contribute to the fitness (i.e., provided that the number of independent, nonzero epistatic terms associated to the locus is large). In this case, we show that the fitness effects of individual mutations decrease linearly with background fitness and the fluctuations around this linear trend are normally distributed. In other words, widespread independent idiosyncratic epistatic interactions lead to the observed patterns of diminishing-returns and increasing-costs epistasis.
We present a derivation of this result in the SI. Here, we explain the key intuition using a heuristic argument. The argument is based on a simple idea: for a well-adapted organism () with complex epistatic interactions, a mutation is more likely to disrupt rather than enhance fitness. To be quantitative, consider a highly simplified scenario where some number of the ’s in Equation (2) are ±1 at random and the others are 0. In this case, the fitness of a given genotype is a sum of and interactions that contribute positively and negatively to the trait, respectively, each with unit magnitude, so that . When positive and negative interactions balance, the organism is in a ‘neutrally adapted’ state (). By selecting for positive interactions, adaptation generates a bias so that and . If locus involved in a fraction vi of all of interactions is mutated, the effect of the mutation, on average, is to flip the sign of positive interactions and negative interactions. The new fitness is then and thus . The negative linear relation between the background fitness, , and the fitness effect of the mutation, si, is immediately apparent and emerges as a systematic trend simply due to a sampling bias towards positive interactions. Of course, while this relation is true on average, it is possible that locus affects more or less positive interactions due to sampling fluctuations. Provided only that is large and the interactions are independent, these fluctuations are approximately Gaussian with magnitude .
This basic argument holds beyond the simple model with unit interactions. In the more general case, if the mutation is directed from , we show in the SI that its fitness effect, si, on a background of fitness can be written as
where,
and is a genotype and locus-dependent term that is distributed across genotypes with mean zero and variance expressed in terms of the ’s from Equation (2) (see SI for details). In the following equation and similar ones henceforth, a summation such as is meant to denote a sum over pairs , where each pair appears only once and no pair that includes index appears. Symmetry of the ’s w.r.t. interchanged indices is also assumed (e.g., ). The numerator of in Equation (4) is proportional to the covariance of fitness effects and background fitness, and the denominator is the variance of background fitness across genotypes. A similar equation for the case can be derived. The choice of or is simply a matter of convention. If the convention is reversed, the coefficients of odd-order in Equation (2), that is, , should also switch signs. It can be easily checked that reversing the signs of these quantities in the expression for above leads to the expression for when .
Note that in general is not guaranteed to be positive and is arbitrary and determined by the genotype-fitness map. However, consistent patterns emerge when locus has a large number of independent, nonzero epistatic terms and the additive effects of its interacting partners are not much larger than the epistatic terms (defined further below), which we call the WE limit. In the WE limit, is normally distributed across genotypes with variance proportional to . This follows from the same reasoning as in our heuristic argument with unit interactions above (see SI for details). In addition, is typically positive, giving rise to a negative linear trend (i.e., diminishing-returns and increasing-costs). We can see this by taking the third- and higher-order terms in Equation (4) to be zero, in which case is positive if . This will typically be true in the WE limit because we expect to scale with the number of interacting partners , while each term in can be positive or negative and thus the sum scales as if the terms are independent. Thus when locus has a large number of interacting partners, is typically positive unless the magnitude of the additive terms () is much larger than the magnitude of the epistatic terms (), . This argument is easily extended to the case when the third- and higher-order terms are nonzero (see SI); the upshot is that the bias towards positive gets stronger with increasing epistasis.
The conditions for the WE limit are more likely to hold when the number of loci, , that affect the trait is large. Therefore, we expect to generically observe patterns of diminishing-returns and increasing-costs epistasis for a complex trait involving many loci. Importantly, whether we observe a negative linear trend does not depend on the magnitude of a locus’ epistatic interactions relative to its own additive effect, but rather relative to the additive effects of its interacting partners. If we are not in the WE limit, and instead the additive effects dominate (i.e., ), then Equation (4) suggests that the slope of the linear trend can be either positive or negative. We will show further below that recent experimental data demonstrates that both scenarios can be relevant: some loci have while others have , with the former creating a bias towards the observed negative linear trends that characterize diminishing-returns and increasing-costs epistasis.
We note that Equation (3) immediately leads to testable quantitative predictions: in the WE limit, the distribution of the residuals, , obtained from regressing si and is entirely determined by the slope of the regression, . Specifically, we predict that these residuals (the deviations of individual genotype fitnesses from the overall diminishing-returns or increasing-costs trend) should be normally distributed with a variance proportional to . However, this condition only applies if diminishing-returns arises from the WE limit. It does not hold if epistasis is negligible, if locus interacts significantly with only a few other dominant loci, or if the epistatic terms are interrelated (e.g., when global epistasis arises from a nonlinearity applied to an unobserved additive trait; Starr and Thornton, 2016; Sailer and Harms, 2017; Otwinowski et al., 2018). The latter case may still lead to a negative linear trend, but the statistics of the residuals will differ from Equation (3) (see SI for a discussion).
It is convenient to subsequently work with the symmetric version of Equation (3), where the fitness effects of both and its reversion (whose fitness effect is negative of the former) are included in the regression against their respective background fitness. In this case, the additive term is averaged out, and we show (SI) that in the WE limit,
where depends on the genetic background and the locus, and is normally distributed with zero mean and variance , and
Here, is the total genetic variance due to all loci (i.e., the variance in fitness across all possible genotypes) while is the contribution to the total variance by the ’s involving locus . We therefore refer to vi as the variance fraction (VF) of locus . We show further below that for certain fitness landscapes vi can also be interpreted as the fraction of pathways affected by a locus. For these reasons, we focus on vi, which is half of the negative slope, rather than the slope. Note that the vi’s do not sum to one unless there is no epistasis (with epistasis, , reflecting the fact that the variance contributed by different loci overlap). While the directed mutation case discussed previously is the relevant one when presenting experimental data (e.g., Figure 1c, d), it is conceptually simpler to work with the symmetric case. These two cases coincide and in the WE limit if the additive effect of a locus is small (i.e., ).
Our results show that the VF vi plays an important role. It determines the slope of the negative relationship between the fitness effect and background fitness. At the same time, it determines the magnitude of the idiosyncratic fluctuations away from this trend. We also note that this slope can be used to experimentally probe the contribution of a locus to the trait (i.e., its VF) taking into account all orders of epistasis, which circumvents the estimation of the individual ’s in Equation (2). The theory additionally predicts that the slope obtained by regressing the sum of fitness effects of two mutations at loci against background fitness is proportional to , where quantifies the magnitude of epistatic interactions of all orders between and (SI).
Importantly, while the fitness effects of individual mutations (and hence the DFEs) may change over the course of evolution due to epistasis, the distribution of variance fractions (DVF) across loci, , is an invariant measure of the range of effect sizes available to the organism during adaptation. As we will see, this means that the DVF plays an important role in determining long-term adaptability.
Numerical results and experimental tests
To illustrate our analytical results, we first demonstrate that the effects described above are reproduced in numerical simulations. To do so, we numerically generated a genotype-phenotype map of the form in Equation (2), with loci and an exponential DVF, , where (Materials and methods). This DVF is shown in Figure 2a. Note that corresponds to an epistatic landscape; chosen here thus corresponds to a model within the WE limit (note that in this parameter range). Using this numerical landscape, we measured the fitness effect of mutations at 30 loci across 640 background genotypes with a range of fitnesses (Figure 2b). Our results recapitulate the predicted linear dependence on background fitness (Figure 1c, d), with a negative slope equal to twice the VF predicted from Equation (5). We further simulated the evolution of randomly generated genotypes similar to the experimental procedure used in Kryazhimskiy et al., 2014 (Figure 2c), finding that our results reproduce the patterns of declining adaptability observed in experiments (Figure 1b). Note that ∼10 mutations are fixed during this simulated evolution; declining adaptability here is not due to a finite-sites effect.
As described previously, Equation (5) implies a proportional relationship between the magnitude of global epistasis (quantified by the slope of the relationship between the fitness effect of a mutation and the background fitness) and the magnitude of microscopic epistasis (quantified by the residual variance around this linear trend); see also Figure 3a. We verify this relationship in simulations (Figure 2d). We predict that the slope obtained by regressing the sum of fitness effects of two mutations at loci against background fitness is proportional to . We further assume that (specifically, for the genotype-phenotype map used for numerics). Since vi and vj are typically small for a complex trait, we expect near-additivity and that any deviations are sub-additive, which is confirmed in simulations (Figure 2e, f).
While testing the latter prediction on double mutants requires further experiments, we can immediately test the relationship between the slope and the distribution of residuals from existing experimental data. To do so, we reanalyzed the data from Johnson et al., 2019, which measured the fitness effect of 91 insertion mutants on about 145 backgrounds. These background strains were obtained by crossing two yeast strains that differed by single-nucleotide polymorphisms (SNPs). Of these 40,000 loci, have been identified as causal loci with currently available mapping resolution (Bloom et al., 2015). In Figure 3, we show the estimated (negative one-half of the slope of the best-fit line) and the VF vi for each of the 91 mutations. These mutations were selected after screening for nonzero effect, and thus the DVF is biased upwards. The mean VF is . The wide range of vi observed in the data implies that the epistatic influence of loci varies greatly across loci, and we will show further below that this is crucial for maintaining a supply of beneficial mutations even when the organism is well-adapted to the environment.
Our theoretical results imply that we expect the linear relationship between background fitness and fitness effect to be negative if the additive effects of a locus’ interacting partners are not much larger than the epistatic terms. Specifically, we define the additivity of interacting loci (AoIL) for locus as
which we show can be estimated from data (Materials and methods and SI). If the AoIL is less than half, Equation (4) implies that the linear trend is guaranteed to be negative. If instead the AoIL is greater than 0.5, the trend can be either positive or negative. The data shows a range of AoIL between 0 and 1 across loci. As predicted by our theory, we find that the loci with AoIL lt0.5 always show negative trends and the ones with AoIL gt0.5 show both negative and positive trends (Figure 3c). Importantly, the sign of the trend is determined by the AoIL and not by the additivity of the mutated locus, which we define as
The additivity across loci also has a wide range. However, small additivity does not necessarily imply a negative trend (Figure 3d).
We next used the data from Johnson et al., 2019 to analyze the relationship between the slope of the linear trend and the residual variance around this trend. We find that the experimental data confirms our theoretical prediction that the residual variance is proportional to ) if the AoIL is small (Figure 3e, for loci with AoIL ¡ 0.5 and for all loci). The Gaussian-distributed term in Equation (3) also predicts the shape of the distribution of the residuals given the VFs, which aligns well with the empirical distribution of the residuals (Figure 3f).
Together, these theoretical results and our reanalysis of experimental data show that linear patterns of global diminishing-returns and increasing-costs epistasis are a simple consequence of widespread epistatic interactions. The DVFs observed in data (Figure 3b) further imply that the epistatic influence of different loci on fitness can vary across a wide range. In what follows, we show that these two observations can be put together to make general predictions about the DFEes, and consequently the long-term dynamics of adaptation. The key ingredient that enables this analysis (including Equation (5)) is that in the WE limit fitness and fitness effects are jointly normal (with respect to a uniform distribution over all possible genotypes), which allows us to quantify complex dependencies between these variables in terms of pairwise covariances.
The distribution of fitness effects
Long-term adaptation is determined by the DFEs of possible mutations and the stochastic dynamical processes that lead to fixation. While Equation (5) represents the distribution of the fitness effects of a specific mutation at locus over all genotypes in the population that have fitness , we are instead interested in the DFE, where fitness effects are measured for all the mutations arising in the background of a particular genotype that has fitness . For now we ignore the influence of evolutionary history on the DFE; we expand on that complication in the following section.
Examining the DFE over loci for a randomly chosen genotype of fitness can be thought of as sampling the fitness effects from the conditional joint distribution , which generally depends on epistasis. If the number of independent, nonzero epistatic terms is large, then is a multivariate normal distribution defined by the means and covariances of the variables , which in turn can be computed in terms of the ’s from Equation (2). In particular, the conditional means and covariances are , , where is the epistatic VF between loci and and . This implies that the conditional correlation between fitness effects is .
The DFE simplifies considerably if we make certain additional assumptions on the magnitude of epistatic interactions. If we assume the typical VF is small (i.e., ) and also that is , then correlations are and thus negligible. Then, in a particular sample , we can think of each si as being drawn independently with mean and variance . To compute the DFE, , we first sample the VF from the DVF, , and then sample a Gaussian random variable with the aforementioned mean and variance. This leads to the DFE
where is the standard normal pdf. Curiously, the correlations between si’s vanish when , in which case the above equation is exact and the DFE is determined entirely by the DVF. Further below, we introduce a specific fitness landscape model for which this relation does hold. Diminishing-returns is naturally incorporated in Equation (9): the mean of is , that is, the DFE shifts progressively towards deleterious values with increasing fitness.
Historical contingency in adaptive trajectories
A key unresolved question is the extent to which evolutionary history influences the DFE and the dynamics of adaptation (Agarwala and Fisher, 2019). That is, what does our theory say about historical contingency?
Suppose a clonal population of fitness y0 accumulates successive mutations resulting in fitnesses . By virtue of arising on the same ancestral background, the fitness gain of a new mutation, , is in general correlated with the full sequence of past fitnesses and the identity of the mutations through its epistatic interactions with them. Based on these correlations, we use well-known properties of conditional normal distributions (Eaton, 1983) to write
where the weights depend on the VF () of the new mutation and its epistatic interactions with past mutations. Here, is the normally distributed residual that depends on the initial genotype and the weights (SI). Equation (10) is a generalization to a sequence of mutations of Equation (5), which we can think of as the special case where .
To gain intuition, it is useful to first analyze Equation (10) when (i.e., to compute the effect of a second mutation conditional on the first). In this case, we show in the SI that
where is the fitness effect due to mutation 1. The first term on the right-hand side is the dependence on the fitness of the immediate ancestor, similar to the corresponding term in Equation (5). The second term quantifies the influence of epistasis between loci 1 and 2 on s2. When , dependence on s1 vanishes entirely and s2 depends only on y1. In contrast, if loci 1 and 2 do not interact, , and s2 is, on average, larger if the mutation at 1 is beneficial compared to when it is deleterious. This has an intuitive interpretation: diminishing-returns applies to the overall fitness and the mechanism through which it acts is epistasis. However, if mutations 1 and 2 do not interact, then the increase in fitness corresponding to mutation 1 does not actually reduce the effect of mutation 2 (as expected by diminishing-returns) so the expected effect of mutation 2 is larger. This analysis suggests that during adaptation, since selection favors mutations with stronger fitness effects on the current background, a mutation that interacts less with previous mutations is more likely to be selected.
To identify the conditions under which history plays a minimal role, we would like to examine when depends only on the current fitness, yk, and is independent of both the past fitnesses and idiosyncratic epistasis. If this were true, then Equation (5) would apply for new mutations that arise through the course of a single evolutionary path (i.e., the fitness effect of a new mutation is ‘memoryless’ and depends only on its VF and the current fitness). Surprisingly, such a condition does exist. We show that this occurs when the magnitude of epistatic interactions between the new mutation and the previous mutations, , satisfies a specific relation: , where is the combined VF of the previous mutations (SI). In general, this condition is not satisfied, implying that there will be historical contingency that can be analyzed using the framework above. Remarkably, it turns out that a fitness landscape model for which the condition is satisfied does exist and arises from certain intuitive assumptions on the organization of biological pathways and cellular processes. This fitness landscape model additionally serves as an example of a landscape where global epistasis can vary substantially across loci. We describe this model below.
The connectedness model
We introduce the ‘connectedness’ model (CN model, for short). In this model, each locus is involved in a fraction of independent ‘pathways,’ where each pathway has epistatic interactions between all loci involved in that pathway (Figure 4a). The probability of an epistatic interaction between three loci () is then proportional to since this is the probability that these loci are involved in the same pathway. When the number of loci is large, we show that in this model , and when is small, , where is the average over all loci (SI). The CN model therefore has a specific interpretation: the outsized contribution to the fitness from certain loci (large vi) is due to their involvement in many different complex pathways (large ) and not from an unusually large perturbative effect on a few pathways. The distribution, , across loci determines the DVF.
Statistical fitness landscapes such as the NK model and the Rough Mt. Fuji model (Neidhart et al., 2013; Agarwala and Fisher, 2019; Kauffman and Weinberger, 1989; Stadler and Happel, 1999; Aita et al., 2000; Altenberg, 1997) are related to the CN model. Specifically, the CN model is a subclass of the broader class of generalized NK models (see Hwang et al., 2018 for a review). However, often-studied fitness landscape models have one important difference that distinguishes them and gives qualitatively different dynamics of adaptation (shown further below): in contrast to the CN model, classical fitness landscapes are typically ‘regular.’ That is, the VF of every locus is assumed to be the same (except the star neighborhood model, which has a bimodal DVF; Hwang et al., 2018).
The CN model is equivalent to a Gaussian fitness landscape with exponentially decaying correlations (SI). The CN model has tunable ruggedness, where the landscape transitions from additivity to maximal epistasis with increasing . Maximal epistasis corresponds to (and hence ) for all . From Equation (5), this implies that the new fitness after a mutation occurs is independent of the previous fitness, consistent with the expectation from a House-of-Cards (HoC) model (Kauffman and Levin, 1987) (where genotypes have uncorrelated fitness). Regular fitness landscape models with exponentially decaying correlations have memoryless fitness effects under the restrictive assumption that every locus is equivalent (Agarwala and Fisher, 2019). We show that the dynamics of adaptation of the more general CN model are also memoryless, that is, the condition detailed in the previous section holds true (SI). Yet, as we show below, the predicted dynamics for the CN model are very different to those from a regular fitness landscape model.
We emphasize that the well-connectedness assumed for the CN model is not a requirement for Equation (5) to hold. However, how diminishing-returns influences the long-term dynamics of adaptation depends on the specific genetic architecture and the corresponding fitness landscape. Consider, for example, an alternative model of genetic networks organized in a modular structure (Figure 4b). In this model, each locus is part of a single module and interacts epistatically with other loci in that module to determine the fitness of that module; overall fitness is then determined as a function of the module fitnesses. In this case, the variance contributed by a locus is due to its additive contribution and from epistasis between loci restricted to its module. While the argument for diminishing-returns still applies to the fitness as a whole, it follows from the same argument that diminishing-returns should also apply to each module separately. Consequently, the dynamics of adaptation for the modular model are different from the CN model. For simplicity, we analyze the dynamics of adaptation for the CN model and postpone a discussion of how the dynamics differ for different models to subsequent work.
The dynamics of adaptation
We now examine the DFE that follows from Equation (5) and what that implies for long-term adaptation under the conditions for memoryless fitness effects. We henceforth assume a large number of loci with sparse epistasis (though the total number of nonzero epistatic terms is still large). This implies that , and ; for simplicity, we also assume strong-selection-weak-mutation (SSWM) selection dynamics and , where are fitness effects and is the population size. Under these conditions, a mutation sweeps and fixes in a population before another one arises. The probability of fixation of a beneficial mutation, , is then proportional to its fitness effect (Haldane, 1927).
It is convenient to rescale fitnesses based on the total variance in fitness across all possible genotypes by defining . Note that is normally distributed with zero mean and unit variance. Here, has an intuitive interpretation as the ‘adaptedness’ of the organism. When the organism is neutrally adapted (), positive and negative epistatic contributions to the fitness are balanced and diminishing-returns is negligible. Diminishing-returns is relevant when the organism is well-adapted (). Below, we give the intuition behind our analysis, which is presented in full detail in the SI.
In the neutrally adapted regime, the linear negative feedback in Equation (5) is negligible and the DFE is determined by the distribution of . Loci with large can lead to a DFE with a long tail. If is the typical VF of a locus, the fitness increases as , where ns is the number of substitutions. Since is a measure of overall epistasis, this implies that epistasis speeds adaptation in the neutrally adapted regime by allowing access to more influential beneficial mutations.
Fitness increases until the effect of the negative feedback cannot be neglected. From Equation (5), this happens when (i.e., when ). Intuitively, fitness begins to plateau when its accumulated benefit from substitutions is comparable to the scale of the total genetic variance () and further improvements are due to rare positive fluctuations. In this well-adapted regime, diminishing-returns and increasing-costs epistasis strongly constrain the availability of beneficial mutations, whose effects can be quantified in this model: for a mutation to have a fitness effect , we require from Equation (5) that , which has probability . Beneficial effects of large arise when has a large positive deviation. The most likely that leads to a particular is when is smallest (i.e., at ), in which case , yielding a tail probability . Remarkably, the beneficial DFE in the well-adapted regime is quite generally an exponential distribution independent of the precise form of the DVF (unless it is singular). In particular, we show in the SI that for the DFE, ,
which depends solely on the adaptedness of the organism. The exponential form arises because of the Gaussianity of , but the argument can be easily extended to with non-Gaussian tails.
An exponential beneficial DFE has been previously proposed by Orr, 2003 but arises here due to a qualitatively different argument. Orr’s result instead follows from extreme value theory: suppose the fitness effects of loci () are sampled from a DFE and . Then, the probability that a beneficial mutation has at least a certain effect size is , where the latter approximation holds when beneficial mutations are rare (i.e., is small). A well-known result from extreme value theory (Gumbel, 2004; Majumdar et al., 2020) implies that for a large family of distributions and for , we have (for some constant ) and therefore . This argument is consistent with our results, but does not yield the dependence of on adaptedness and the rate of beneficial mutations without additional information about .
Under SSWM assumptions, from Equation (12), the typical effect size of a fixed mutation is , which typically has a VF,
The above relation makes precise the effects of increasing-costs epistasis on adaptation. As adaptation proceeds, the delicate balance of high fitness configurations constrains fixed beneficial mutations to have moderate VFs. A mutation of small VF is likely to confer small benefit and is lost to genetic drift, while one with a large VF is more likely to disrupt an established high fitness configuration.
This intuition is not captured in regular fitness landscape models, which assume statistically equivalent loci, that is, for all and is singular. From Equation (9), we see that this leads to a Gaussian DFE whose mean decreases linearly with increasing fitness, in contrast to the exponential DFE in our theory. The key difference is the lack of loci with intermediate effect, which drive adaptation in the well-adapted regime. As a consequence, the rate of beneficial mutations declines exponentially () and the fitness thus sharply plateaus at . In contrast, our theory predicts a much slower depletion of beneficial mutations, (SI). The rate of adaptation is (since ), which leads to a slow but steady power-law gain in fitness, . The rate of fixation of beneficial mutations is , which gives .
We verify our analytical results using numerics. As before, we generated a genotype-phenotype map using the CN model with an exponential DVF, and loci. The DFE can be calculated exactly by plugging in this in Equation (9):
We simulated the evolution of randomly generated genotypes from to and , and the DFE across all loci was measured (we chose so that ). The theoretical prediction for the DFE, Equation (14), closely aligns with the numerical results (Figure 4c).
Due to computational constraints, it is difficult to simulate evolution deep into the well-adapted regime. To compute the shape of adaptive trajectories and their variability, we instead simulated SSWM dynamics using the DFE directly from Equation (14), beginning from a neutrally adapted fitness (). Typical trajectories (Figure 4d) show rapid adaptation to the well-adapted regime beyond which the fitness grows slowly as , as predicted from theory. The predictions for the number of fixed beneficial mutation are also recapitulated (Figure 4e).
Discussion
Recent empirical studies have observed consistent patterns of diminishing-returns and increasing-costs epistasis. Our model gives a simple explanation for these observations. In particular, we showed that these patterns are generic consequences of widespread microscopic epistatic interactions. The intuition underlying this result is that a random mutation typically has a larger disruptive effect on the delicate balance of microscopic epistasis that underpins a fitter background. Our model predicts a quantitative relationship between the magnitudes of global epistasis (i.e., the negative slope of diminishing-returns and increasing-costs epistasis) and microscopic epistasis, which we confirmed using existing data (Figure 3).
A similar explanation for diminishing-returns and increasing-costs epistasis has been recently proposed by Lyons et al., 2020. While our core argument for diminishing-returns and increasing-costs epistasis is the same as in that work, our Fourier analysis framework dissects the features of the fitness landscape necessary to observe these phenomena in terms of experimentally measurable average effects (i.e., the ’s in Equation (2)). In particular, we show that the additivity of a locus’ interacting partners critically determines whether the trend is negative or unbiased. In addition, the Fourier analysis framework yields predictions for the DFEs, the historical influence of past mutations on the fitness effect of a newly mutated site, and motivates the proposed ‘connectedness’ fitness landscape model. The analysis of experimental data presented in Lyons et al. complements the experimental data considered here, lending further empirical support for the prevalence of epistasis and its importance in determining long-term adaptability.
Our model leads to other experimentally testable predictions. The most direct and accessible test of the theory is to measure the fitness for all possible combinations of mutations at 10–15 significant loci and compare (using Equation (6)) the magnitude of global epistasis to the measured fitness coefficients (the ’s). Additionally, we predict that the magnitude of global epistasis of a double mutant should be nearly the sum of magnitudes of the corresponding single mutants, and any deviations should be biased towards sub-additivity. Since the predictions involve measuring residual variance, experimental noise can be an important confounding factor.
The observation that diminishing-returns occurs as a ‘regression to the mean’ effect on certain fitness landscapes has been noted previously (Draghi and Plotkin, 2013; Greene and Crona, 2014). The theory developed here quantifies precisely when we should expect to observe these patterns. We emphasize that our key result, Equation (5), is a general statistical relation that holds if epistasis is widespread, irrespective of the specific genetic architecture and the corresponding fitness landscape. Weak epistasis with many loci is sufficient to observe noticeable patterns of global epistasis. However, the argument fails if the contribution of a locus is purely additive or when epistasis is limited to one or a handful of other loci. In the latter case, we expect the fitness effect of a mutation to be dominated by the allelic states of its partner loci, and thus take on a few discrete values. A few examples from Johnson et al., 2019 indeed exhibit this pattern (e.g., cases where the fitness effect of a specific mutation depends primarily on the allelic state at a single other locus).
We highlight a distinction between global epistasis discussed in this work and another form of global epistasis (also known as ‘nonspecific’ epistasis) typically used in protein evolution to describe nonspecific epistatic interactions due to a nearly additive trait transformed by a nonlinear function (Starr and Thornton, 2016; Otwinowski et al., 2018; Otwinowski, 2018; Sailer and Harms, 2017; Husain and Murugan, 2020). This nonlinear function creates systematic relationships between epistasis terms and breaks the condition of independent epistatic terms required for our arguments to apply. Specific nonlinearities such as an exponential function may indeed lead to a negative linear trend on average, but the structure of the residuals differs from the one in Equation (5) and observed in data.
A surprising empirical observation is that the negative linear relationship between fitness effect and ancestral fitness characteristic of global epistasis has different slopes for different loci. Our model identifies the negative slope as twice the fraction of variance contributed by a locus to the trait. To explain the wide range of VFs observed in data, we developed the CN model, a framework to think about the organization of cellular processes that can lead to loci of widely varying VFs. In the CN model, loci have a large VF due to their involvement in many different pathways rather than due to a large effect on a single pathway. The CN model can be viewed as a statistical fitness landscape where loci can have a range of VFs, specified by the DVFs. In the special case of every locus having the same VF, the CN model corresponds to a fitness landscape with tunable ruggedness and exponentially decaying correlations.
Extending our framework to incorporate adaptation, we showed that the DFE depends only on the current fitness, rather than the entire evolutionary history, under the intuitive assumptions behind the CN model. The theory therefore gives a simple explanation for why phenotypic evolution can be predictable, even while the specific mutations that underlie this evolution are highly stochastic.
Our framework has an implicit notion of ‘adaptedness’ without referencing a Gaussian-shaped phenotypic optimum, often assumed in models of adaptation (e.g., Fisher’s geometric model) (Fisher, 1930; Orr, 2005; Martin and Lenormand, 2006). Over the course of adaptation, the DFE shifts towards deleterious values, reflecting diminishing-returns, which naturally arises from our basic arguments. For a well-adapted organism, we show that the DFE for beneficial mutations takes on an exponential form and leads to universal adaptive dynamics. While an exponential DFE for beneficial mutations has been proposed previously based on extreme value theory (Orr, 2003), our result arises due to an entirely different argument: the tail of the beneficial DFE is determined by loci of intermediate size whose disruptive effect due to increasing-costs is small, yet whose effect size is large enough not to be lost due to genetic drift.
Our theory further predicts declining adaptability, with rapid adaptation in a neutrally adapted regime followed by much slower increases in fitness, resulting in power-law adaptive trajectories when the organism is well-adapted. This is consistent with observations from the E. coli LTEE (Wiser et al., 2013; Lenski et al., 2015). Our model predicts a quicker decline in the number of substitutions () compared to the near linear trend observed in the LTEE data (Good et al., 2017). However, the dynamics of fixation in the LTEE deviate strongly from SSWM assumptions. This may explain the discrepancy, although we note that existing theory has only analyzed the effects of clonal interference and other breakdowns in SSWM assumptions for a constant DFE and weak epistasis (Good et al., 2012; Schiffels et al., 2011). Further work will be required to understand how these effects interact with global epistasis. For example, we may expect that the effect of a highly beneficial mutation at a segregating locus is more likely to be attenuated due to interference from subsequent deleterious mutations, while a less-fit lineage has a larger pool of beneficial mutations and is thus more likely to ‘leapfrog’ over more-fit lineages.
Materials and methods
The code and data to generate the figures are available at Reddy, 2020.
Simulations
Request a detailed protocolWe use a fitness landscape model with loci to generate the genotype-fitness map. Each locus is assigned a sparsity µ from , which is an exponential distribution with mean . Each of independent pathways sample loci with each locus having probability of being selected to a pathway. We choose so that ensures significant epistasis. All loci in a pathway interact with each other, where additive and higher-order coefficient terms of all orders were drawn independently from a standard normal distribution. The total fitness is the sum of contributions from the pathways. We normalize the coefficients so that the sum of squares of all coefficients is 1, that is, the total variance across genotypes is 1. The mean, , is close to zero from our sampling procedure. The above procedure is a simple and efficient way to generate epistatic terms to order 20, beyond which the computational requirements are limited by the exponentially increasing demand. Note that the effects described in the paper were also observed with only pairwise and cubic epistatic terms.
The VFs shown in Figure 2a can be calculated numerically from the definition. From the theory, given our choice of , these should follow an exponential distribution with mean . There may be deviations since is finite whereas the calculations assume . To generate Figure 2b, in order to get a range of background fitnesses, we first sample 128 random genotypes. These have fitnesses close to zero; in order to obtain a range of fitness values, we simulated the evolution of these 128 genotypes up to under SSWM assumptions to get genotypes at roughly five fitness values. The fitness effect of applying a mutation (i.e., flipping its sign) is measured for 30 randomly chosen loci (which are kept fixed) over each of the 640 genotypes. This is shown for 5 of the 30 and for the mean over the 30 loci in Figure 2b.
To generate Figure 2c, we sampled 64 random genotypes and 12 replicates of each. The evolution of these 768 genotypes was simulated for a total of 50 generations with a mutation rate of 1 per generation. The mean fitness gain over the 12 replicates is plotted for each of the 64 founders against their initial fitness.
To generate Figure 2d, the residuals are measured using the same procedure as for the experimental data analysis described below for the initial 128 genotypes at and the 30 loci with the largest VF.
Double mutants were created by mutating all pairs of the 30 randomly chosen loci on the 640 evolved genotypes. Their mean fitness effect was computed and plotted along with the mean fitness effect for single mutants, shown in Figure 2e. The VF of the pair of loci for the double mutant was estimated as before and compared to the sum of the estimated VFs of the corresponding single mutants. This is shown in Figure 2f.
To generate the plots in Figure 4c, we simulated the evolution of 128 randomly sampled genotypes to and . The fitness effect of 200 randomly sampled loci was measured and the distribution is plotted.
Analysis of the data from Johnson et al.
Request a detailed protocolThe data from Johnson et al., 2019 consists of the fitness after the addition of 91 insertion mutations on each of 145 background genotypes. The fitness of a particular mutation at locus can be modeled as
where are the mutant and background fitnesses, respectively, are constants for each locus, and the residual depends on the background genotype .
We estimate the VF , where the Pearson correlation , where the symbol ⊕ denotes that the mutant and background fitness datasets are concatenated. is estimated as the negative one-half of the slope of the best linear fit of and . The residuals for each of the 145 genotypes for each of the 91 mutations are simply
where the overline represents an average over the 145 genotypes, which is used as an estimate of the constant term and . In Figure 3b, we plot the distribution of estimated vi and . In Figure 3c, we compute the AoIL for each locus using Equation (7), which we show in the SI to be . In Figure 3d, we compute the additivity using Equation (8). The additive effect is , and gives the sum of squares of the epistatic terms (SI). In Figure 3e, we compute the variance of the residuals across the 145 genotypes for each locus and plot it against the locus’ estimated . In Figure 3f, we plot the distribution of residuals over all genotypes and loci. The prediction is that in the WE limit the distribution of residuals is determined by , where is a Gaussian random variable. We multiply for each locus with 10,000 i.i.d. standard normal random variables, pool the resulting numbers for all loci, and plot the predicted distribution in Figure 3f. The distributions are variance-matched. While Figure 3e shows that the variance of the residuals aligns with the theoretical prediction of being proportional to slope, Figure 3f shows that the data is also consistent with the predicted Gaussianity of the background-genotype-dependent contribution.
Appendix 1
Diminishing-returns and increasing-costs epistasis in a model of a complex trait
In the main text, we propose that the fitness effect after a mutation at locus can be written as
Here, is a genotype and locus-dependent contribution, which is distributed as a mean-zero Gaussian with variance equal to the total genetic variance, is a constant, and vi is the variance fraction, which is defined further below. Equation (17) corresponds to the symmetric case where the fitness effects of the mutations and are simultaneously regressed against their respective background fitness. The directed case when the mutation is specified to change from (or ) will be considered in the directed mutation section below.
We show that Equation (17) arises under certain conditions in a generic model of a complex trait with biallelic loci. Essentially, we would like to compute the distribution of the new fitness, yi, across genotypes after a mutation at locus given the current fitness and the set of all parameters of the model (i.e., , with ). Using the chain rule of probability, we can write
where the sum is over all possible genotypes. While is determined by the genotype-fitness map, is the crucial factor that gives weight only to the genotypes that yield the current fitness . If the fitness is much larger than the mean fitness over all possible genotypes, Equation (18) implicitly ensures that weight is given to only those genotypic configurations that lead to such an unusually large fitness. We will analyze the case of a ‘microcanonical ensemble’ where every genotypic configuration that leads to a particular fitness is equally likely (with no linkage), that is, the prior across genotypes is uniform (see the section 'Maximum entropy interpretation' for a discussion).
It is difficult to directly evaluate the sum in Equation (18). In the following sections, we give a simple derivation but elaborated to highlight the key assumption that leads to Equation (17). In short, the negative correlation between and implied by Equation (17) is a trivial consequence of yi and having the same distribution w.r.t. . is in general arbitrary and determined by the genotype-fitness map. However, is normally distributed if we make certain assumptions about the structure of epistasis in the genotype-fitness map. The emergence of the negative linear relationship for a directed mutation is subtler.
Fourier representation of the fitness function
The fitness for a genotype of length , , where , can be generally written as Poelwijk et al., 2016; Neher and Shraiman, 2011
The symmetric choice of is chosen for mathematical convenience. In this form, the total variance contribution from the qth-order epistatic terms is , and the total genetic variance, defined as
is the sum of variance contributions from orders to , that is, the sum of squares of all the ’s. The sum over the genotypes is an expectation value assuming all genotypes are equally likely; we will denote this expectation using an overline hereafter. We use this expectation value as a proxy for empirical averages over the ‘background’ genotypes in a population. With a sufficient number of background genotypes, the empirical average should converge to this expectation value.
The representation in Equation (19) is a Fourier representation of the fitness function on the -dimensional hypercube and makes calculations much simpler. For instance, to get the terms from each order, we have
It is useful to define the variance contribution due to a particular locus as (symmetry w.r.t. interchanging indices is used for each term throughout)
We also define the variance fraction of locus ,
which plays a key role in the model.
Derivation of Equation (17)
We would like to relate the fitness before and after locus is flipped (i.e., ), denoted by and yi, respectively. We have from Equation (19),
where and respectively contain all the terms not containing and containing locus , that is,
We have and . Since and contain all the genotype dependence, we can write
From the properties of the Fourier representation in Equation (21), it is easy to see that the means are , the variances are , , and the covariance is .
The calculations so far have been exact. We now make the key assumption that and are both normal-distributed across genotypes. This assumption is similar to that of Fisher’s infinitesimal model, where the distribution of trait values across strains for a complex trait is argued to be normal-distributed since the trait value is due to infinitesimal independent contributions from many loci. While is easily seen to be normal-distributed for large , an argument can be made for only if locus has a large number of independent, nonzero epistatic terms and the additive term fi is smaller in magnitude than the epistatic terms; specifically, we require that . If instead , then is bimodal, where the two modes correspond to at . For loci with pairwise and third-order epistasis, the number of pairwise and third-order epistatic terms scale and , respectively, which justifies the normality assumption for large even if individual epistatic terms are smaller in magnitude than the additive terms.
Under these assumptions and since and are linearly independent, we have
where is the standard normal pdf. Therefore, yi is normal-distributed across genotypes and from the above equation can be written as
where the VF was defined previously and . This leads to the form in Equation (17),
The above derivation was presented to clarify the basic assumptions. Simply computing the covariance between and yi in Equations (24) and (25), we get . The correlation is then . Equation (32) follows if additionally are jointly Gaussian, which is true if locus has many independent, nonzero epistatic terms.
Directed mutation
Previously, we considered the symmetric flip and averaged over all loci including . Here, we consider the case when the mutation is specified to change either from or . In this case, we should average over all loci except .
We consider (the opposite case is similar). The fitness before the mutation is
and the fitness after the mutation is
so that
The tilde and hat are used here to distinguish the fitness from the yi defined previously for the symmetric case corresponding to the flip . We can easily compute averages over genotypes using the Fourier orthogonality relations. To compute the expectation value of products of two quantities, say si and , we simply compute a dot product where the components of the vectors are the coefficients of terms in the expansion above. For example, is . We have for the means, variances, and covariances,
The slope when si is regressed against is . We can define a ‘modified’ VF as half the negative slope,
Writing the linear form based on this correlation, we get
where is again normally distributed (in the WE limit) with zero mean and variance and . Note that, unlike vi, can be negative.
However, we argue that is typically positive in the WE limit, which leads to a negative linear trend. The second term in the numerator on the right-hand side of Equation (42) has the same number of terms as , but these terms appear as products of Fourier coefficients that may have opposing signs. In particular, if , , and so on, then is guaranteed to be positive. If we denote the typical magnitude of qth-order epistasis terms as eq (e1 corresponds to additive effects), each of this relationships has the form when , that is, . If the number of loci is sufficiently large, then these relationships will hold even if the typical magnitude of individual higher-order epistasis terms is smaller than the lower-order terms. We therefore expect that the second term in the numerator on the right-hand side of Equation (42) is smaller than when . A similar argument can be made for the cross terms once the squares in the denominator of the right-hand side of Equation (42) are expanded.
When , we can then write
Further, in the WE limit, so that the variance of is .
To estimate the ratio of the magnitudes of the second and first terms in the numerator on the right-hand side of Equation (42) from data, we use the expression for the covariance,
to get
Comments on the result
Fitness as a nonlinear function of an additive trait
The negative linear trend observed in data may arise due to the measured fitness being a nonlinear function of an unobserved additive trait. In this case, the epistasis terms are systematically related to each other and the independence assumptions used to derive Equation (32) break down. In short, we show that specific nonlinearities can indeed lead to a negative linear trend, but the statistics of the residuals observed in data make this possibility unlikely.
Suppose the fitness is , where is a nonlinear function, is the unobserved additive trait, f0 is a constant, and fi are additive coefficients. For a linear trend, we require , where for the flip . For small fi relative to the other coefficients, we can Taylor expand and show that we require to get a linear trend. This nonlinearity creates a linear trend with slope . For a negative linear trend, we require . However, even if this condition is true, the relation is exact and there are no residuals.
To introduce residuals, suppose instead that , where is a HoC term, that is, it is an independent Gaussian random variable (mean 0, variance ) across genotypes and repeatable across measurements. introduces epistasis in the unobserved trait. We have , where hi is the HoC term after the mutation, so that the average fitness effect conditional on is . The conditional variance of the residuals is . Note that the residual variance is no longer proportional to the slope and this variance increases as , which are both inconsistent with the data.
Maximum entropy interpretation
The expectation values are averages over all the genotypes assuming that every genotype of a particular fitness is equally likely, that is, the distribution over genotypes is uniform. This assumption is analogous to ensemble averages over a microcanonical ensemble in statistical physics, where one assumes that all the particle configurations that have a particular energy are equally likely. The experimental setting in Johnson et al., 2019 is similar. The background genotypes are generated from a cross between two strains, which due to recombination makes each locus have equal probability of being one of the two alleles. Closely linked loci may be considered together as blocks. Some of the loci are partially linked, which may lead to deviations from the predictions. The expressions derived above can be easily extended to the case with different background genotype statistics.
The uniform distribution has an information-theoretic interpretation as the distribution that has the maximum entropy (MaxEnt) given no additional knowledge of how the genotype was generated. Equation (32) can therefore be viewed as the MaxEnt prediction of the fitness effect if locus is mutated conditioned on the current observed fitness . A key idea that will be used throughout the paper is that when each locus has a significant number of independent, nonzero epistatic terms, the distribution of fitness and fitness effects is jointly normal with respect to the uniform prior over genotypes. From well-known properties of multivariate normal distributions, the MaxEnt predictions of unobserved variables are multilinear forms of the observed variables. For example, the MaxEnt prediction for si given an observed sequence of past fitness is an autoregressive Gaussian process defined by the covariance between the unobserved and observed variables (see section 'History dependence' below).
Varying a subset of loci
In addition, the sums in Equation (19) are over loci involved in a trait. In reality, we may vary a subset of all loci and take averages over only this subset. The derivation still follows through in this case; we can simply write the fitness in terms of effective parameters as
Here, we are abusing notation — it is to be assumed that a coefficient with a particular combination of indices appears only once in the sums. The results from the previous section still apply w.r.t. these new effective parameters. For instance, the total variance and the variance due to locus are
and the effective VF is .
Relationship to the fluctuation-dissipation relation
Equation (32) is analogous to the fluctuation-dissipation theorem in statistical physics (Kubo, 1966), which relates the response of a thermodynamic system to a perturbation. The relationship between the magnitude of macroscopic epistasis (the slope in Equation (32)) and the variance due to the background genotypes is analogous to the relationship between viscous drag and Brownian motion (Kubo, 1966). For Brownian motion, the normality arises due to numerous independent collisions of a particle with neighboring particles. In our case, natural selection acts as an external perturbation that pushes the system away from equilibrium (here ). Diminishing-returns naturally arises as the tendency of the system to revert to its entropically favored equilibrium state.
Variance fraction of double mutants
Using the arguments from the previous section, it is easy to show that the variance of a double mutant at loci and , , is necessarily sub-additive. In particular, we have
is the total epistatic variance between loci and . The correlation between the new fitness after a double mutation and the previous fitness is , where is the epistatic variance fraction between and .
Appendix 2
Connectedness model
We introduce a ‘connectedness’ model (the CN model, for short), where each locus has a probability of being involved in any particular interaction. We can interpret as the fraction of independent pathways that involve locus , where each pathway has epistatic interactions between all loci involved in that pathway. The number of independent pathways, , is assumed to be very large. The probability of an epistatic interaction between, say loci , is proportional to since this is the probability that these loci are involved in the same pathway. The magnitude of the interaction term is , where the proportionality is the magnitude of the perturbative effect of the mutations, which is assumed to be constant for all orders of interaction. We set this quantity to unity since it simply scales the fitness coefficients and does not affect subsequent results. The CN model leads to a specific interpretation (and hence its name): the outsized contribution to the variance from a particular locus is due to its involvement in many different complex pathways and not from an unusually large perturbative effect on a few pathways. For large , the CN model is specified by the distribution, , across loci. In particular, given , we can calculate the total genetic variance, , and the variance due to locus , . We define .
We calculate the expected total variance across statistical ensembles. Note that here the expectations are averages over ensembles where the parameters of the model are resampled, in contrast to the derivations presented in sections above, which were ensemble averages over equally likely genotypes. Since each pathway is independently sampled, expectations approximate the values in a single realization as . All expectations are denoted . We calculate the expected variance contribution from one pathway: since all pathways are statistically identical, the total variance from pathways is simply times the expected contribution from a single pathway. The contribution from the qth-order interaction between loci is . The expected total variance is
The variance due to terms involving locus is
Therefore, we have
There are two qualitatively different regimes, and . When , each pathway typically contains a single locus and should lead to an additive model. In this limit, we can write from Equation (61),
which is consistent with the expectation that for an additive model. In the opposite limit, , we have
The CN model therefore leads to an intuitive interpretation of the VF as being determined by the sparsity of interactions of a locus. Equation (63) yields an upper bound at , at . From Equation (31), we see that this case is equivalent to the HoC model of maximal epistasis where the new fitness after a mutation is independent of the previous fitness. The DVF is directly determined by ; the CN model can therefore be used as a generative model to generate fitness landscapes with arbitrary DVFs.
We can further calculate the epistatic variance between two loci in the CN model. The total epistatic variance between loci and is
In the limit , the epistatic VF after dividing by is then simply . Using Equation (53), we have
If vi’s are small, the CN model predicts near-additivity between the effects of two loci. This is not inconsistent with the strong epistasis assumption implicit in the limit : though the total contribution of epistatic interactions to the genetic variance may be large, the epistatic variance between two specific loci can still be negligible. This is because the majority of epistatic variance is due to the combinatorially large number of higher-order epistatic terms whose individual effects themselves can be weak.
Relationship to statistical fitness landscapes
Statistical fitness landscapes such as the NK model and the Rough Mt. Fuji model are closely related to the CN model described above. The CN model falls under the broad class of generalized NK models (Hwang et al., 2018). In generalized NK models, epistasis is due to modules (or ‘pathways’) of loci that interact epistatically with each other. The different NK models differ in how the loci are assigned to the modules and the interaction structure within the module. In the CN model, each locus has a locus-specific probability of being part of any module and the interaction structure within a module is all-to-all. The locus-specific probability gives rise to a highly non-regular model, that is, loci can have a wide range of contributions to the total variance. This feature gives rise to qualitatively different adaptation properties. We will show this further below in addition to showing that the CN model has a special memoryless property.
Well-studied fitness landscapes such as Kauffman’s NK model and the Rough Mt. Fuji landscape are regular, that is, every locus contributes equally to the variance. In other words, the DFE, which is determined by the DVF in our picture, instead comes from a single constant value . The fluctuations of the fitness effects are solely due to the genotype-dependent term , which is a Gaussian. In a later section, we show that the DFE in this case corresponds to a Gaussian with mean . As adaptation proceeds and increases, the DFE shifts to the deleterious side but retains its Gaussian shape. The adaptation properties that result from this DFE are quite different from those arising from our theory. Further, while the regular fitness landscape picture may lead to a good approximation of our results when the number of mutations is large, it does not capture the different magnitudes of diminishing-returns for different loci observed in experiments.
The landscape of the regular CN model
The CN model for the special case of homogeneous loci, for all , is similar to the NK model but with one major difference: the number of loci in each pathway in the NK model is fixed at loci, whereas in the CN model the typical pathway size is controlled by a continuous parameter . This introduces contributions at every epistatic order while effectively imposing sparsity on the contributions from higher-order interactions. We now show that the regular CN model has tunable ruggedness, that is, it transitions from an additive model to a model with maximal epistasis with increasing and has exponentially decaying correlations for .
The regular fitness landscapes often discussed are stationary Gaussian processes on a -dimensional hypercube. The regular CN model (i.e., for all ) also falls into this class as . The key quantity that defines such a fitness landscape is the covariance function between the fitnesses of genotypes and , , where is the Hamming distance between two genotypes. We now compute the covariance for the regular CN model. Each order term in each pathway is independent and the covariances for each order add up over all pathways. We first calculate the expectation of the first-order term in a single pathway, which is
Here, we have used , where the comes from the probability of locus being selected for the module as argued previously. The covariance is linear in the distance between genotypes, as one would expect from an additive model. Directly calculating the higher-order terms is more complicated because of the ordering restriction for the second-order term and for higher orders. As noted previously (Stadler and Happel, 1999; Neidhart et al., 2013; Agarwala and Fisher, 2019), these can instead be calculated using combinatorics, which we will demonstrate with the second-order term. We have for the second-order covariance
where the element-wise product is 1 if match and −1 otherwise. If is the distance between and , then the element-wise product has terms and 1 terms. The term in the summation above is 1 if both and are chosen from the subset or both are chosen from subset. This term is −1 if one of the two is chosen from the subset and the other from the subset. The number of terms that are 1 s are therefore and the number of terms that are −1 s are . This argument is easily extended to higher orders. The general qth-order contribution to the covariance is
It is easily verified that the first-order term matches. When , we recover the binomial coefficients, as expected. The summation above is precisely the Krawtchouk polynomial (Olver et al., 2010), which we will denote by . We therefore have
The generating function of the Krawtchouk polynomials yields
The above expression is consistent with intuition: when , the covariance is linear in , as expected for an additive model. In the opposite limit of and , the constant term 1 can be ignored, and we see that the covariance is proportional to , where . Epistasis is maximal when , in which case and the covariance rapidly goes to zero with . This is the HoC model of maximal epistasis.
The landscape of the general CN model
The landscape of the general CN model, where loci can have different , is no longer stationary but the correlation structure can still be calculated. The qth-order contribution to the covariance between genotypes and in the general case is
It is easy to see that when the contributions from all orders are added up, the covariance has a rather simple product form
The correlation is
The above relation is exact. When , , then and the 1’s in the numerator and denominator above can be ignored. We get
When ’s are equal, we recover the homogeneous case with exponentially decaying correlations.
Appendix 3
Adaptation
The distribution of fitness effects
Long-term adaptation is determined by the DFEs and the stochastic dynamical processes that lead to fixation. Before analyzing the properties of adaptive walks, we clarify what our previous analysis, which ultimately led to Equation (32), means for the DFE.
Equation (32) represents the distribution of the fitness effect of a specific mutation at locus over all genotypes in the population that have fitness . We are instead interested in the DFE, where fitness effects are measured for all the mutations of a particular genotype that has fitness . The DFE for a particular genotype generally depends on idiosyncratic epistatic interactions between loci. In order to make this explicit, we turn to our analysis framework described previously. For notational convenience, we will assume and in this subsection and the next.
The DFE over loci for a particular genotype of a fitness can be thought of as a sample, , from the conditional joint distribution . From our assumption of numerous, independent epistatic terms for each locus, this joint distribution is defined entirely in terms of the means and covariances of the variables . Recall that the fitness effect of a mutation at locus is as defined in Equation (26). As shown previously, we have . We also have with . The means of all the variables are zero. Based on this covariance structure, we can compute using the properties of the conditional distribution of a multivariate normal distribution. It is straightforward to show that conditional on the fitness , the conditional means are given by and the conditional covariances are . This relation makes clear that in general the DFE from a sample depends on the epistatic interactions between all pairs of loci via . Note that , which leads to Equation (32) for the marginal distribution of a particular locus.
The DFE simplifies considerably if we make certain additional assumptions on the nature of epistatic interactions. In particular, the conditional correlation between fitness effects is
If we assume the typical VF, is small (i.e., ) and also that is , then correlations are and thus negligible. Then, in a particular sample , we can think of each si as being drawn independently with mean and variance . If is large, then this leads to a DFE
where is the DVFs across the loci and is the standard normal pdf. Surprisingly, this relation becomes exact for the CN model, where we have shown that (Equation (66)) and therefore the correlations between si’s vanish. In this case, the DFE is thus determined entirely by the DVF, but we will show later that it has certain universal properties independent of even the DVF. Note that we derive the DFE starting from rather general assumptions on the organization of the genotype-phenotype map in contrast to past models that assume the DFE as a starting point.
Above, we have measured the DFE for the subset of genotypes that have fitness without regard to their evolutionary history. Over the course of adaptation, mutations are fixed and certain fitness changes are observed. We would then like to measure the DFE for those genotypes that have undergone a particular adaptive trajectory. As we show below, the DFE again simplifies considerably if certain relations hold.
History dependence
Using an analysis similar to the one in the previous section, we quantify history dependence by calculating the correlations between the new fitness and the adaptive history conditional on the genotypes that have undergone a specific sequence of events in the past.
To be precise, suppose an initial clonal population of fitness y0 gains successive mutations and the corresponding sequence of fitnesses is . We would like to quantify how the fitness of a new mutation at locus , , depends on past fitnesses and the idiosyncratic epistatic interactions between the previous mutations and the new mutation. The correlation between any two fitnesses yi and yj () is given by , where is the VF of the loci (the subscript notation will be used throughout). In general, accounts for the epistatic interactions of all orders between these loci and is expressible in terms of the coefficients of our original complex trait model in Equation (19). One can then write the covariance matrix between . In block form, this is
The mean of conditional on is a linear weighted sum of the past fitnesses:
where is a vector with elements . In other words, can be written as
where is a mean-zero stochastic term that depends on the genotype of the initial population and whose variance can be calculated from . To gain intuition, it is useful to explicitly calculate the case of . In this case, the covariance matrix is
We have
We therefore have
The dependence on the past has complex dependencies on epistasis between loci 1 and 2 even in this highly simplified case. To identify what contributes to history dependence beyond just the most recent fitness, we rewrite Equation (87) as
From here, we observe that the dependence on v1 and y0 vanishes precisely when . This is not true for all landscapes. However, as noted previously, this is in fact true for the CN model (Equation (66)) when . In this case, we get the simple relation
where the pre-factor in the second term comes from normalization and is a Gaussian random variable.
From Equation (53), we have the general relation , where e12 is the epistatic VF between loci 1 and 2. We can then rewrite Equation (88) as
for and . An intuitive interpretation of this result is presented in the main text.
Sufficient condition for memoryless fitness gains
The case suggests that the relation for memoryless fitness gains () could in fact be true for all under the CN model, which indeed turns out to be the case, as we show below. Motivated by the case, we would like to have in Equation (83) and the rest of the weights equal to zero. If this is the case,
Multiplying both sides by yj and computing the correlations, we get the condition for all . Therefore, a sufficient condition for memoryless fitness gain is
for all and for all . We will now show that this is true for the CN model for , that is, ; the rest trivially follows. Let us first analyze what terms contribute towards (dividing by gives ). When loci 1 through are mutated, their effect is to flip the signs of their coefficients in Equation (19). The ones that have changed sign contribute to the de-correlation between the fitnesses before and after the set of mutations, but the epistatic terms that have an even number of flips do not change and therefore their contribution has to be subtracted. therefore is the sum of squares of all the coefficients in Equation (19) whose loci have flipped an odd number of times. To keep track of indices, suppose are used to denote the indices of the loci (which take values from 1 to ) and for the rest. Then,
and so on. Now, when the locus is also flipped, to compute , we can add up the two variances and except for the cross terms that have an even number of sign flips and that include both the locus and the other loci. These have to be subtracted twice because they appear both in and . These terms are
where the are defined in a similar fashion as in Equation (93) except the sums over run from to instead of to . We get the general relation
For the CN model specifically, we have . This implies
Performing a similar calculation for , we find
which gives
for since . Dividing Equation (95) by throughout concludes the derivation.
Adaptedness
Under the conditions of memoryless fitness gains from the previous section, we can write
where variables have been rescaled as . This equation suggests various forms for the DFE, , depending on the DVF, .
is an intuitive measure of ‘adaptedness’: (1) when is negative, the organism is in the unlikely situation of being ‘negatively adapted’ to the environment. Beneficial mutations are much more likely than deleterious mutations and adaptation is dominated by loci that have a large . (2) When , the organism is ‘neutrally adapted’. The number of beneficial and deleterious mutations is balanced. (3) When , the organism is ‘well-adapted,’ where the DFE is strongly skewed towards deleterious mutations.
We will analyze adaptation in the neutrally adapted and the well-adapted regimes. When the organism is negatively adapted, Equation (99) predicts that a few substitutions are sufficient to quickly reach the neutrally adapted state. In addition, we assume the VF of each locus is small, that is, but the number of loci is large enough so that overall epistasis ( is the mean VF). We can then ignore the factor and rewrite Equation (99) as
The intuition behind the analytical results is discussed in the main text. We present the formal calculations here.
Analytical results for an exponential DVF
We begin by calculating the DFE, , for the specific case when the DVF is an exponential,
where is the mean VF across loci. The true DVF likely has a large fraction of loci that have no effect; accounting for these loci simply scales the mutation rate and will be ignored in this analysis. The exponential DVF leads to analytical predictions for the shape of the average fitness trajectories under certain simplifying assumptions about the underlying selective forces.
From Equation (100), we have
Here, is a standard normal random variable, which we integrate out, giving
where is the normal pdf. For given in Equation (101), this integral can be calculated exactly:
The resulting DFE is a double exponential with scale . For small, the DFE is symmetric around the origin, as expected, with a scale determined by the DVF. As increases, the DFE skews towards deleterious effects. The typical magnitudes of beneficial and deleterious effects are not independent from the overall ratio of beneficial to deleterious mutations. The well-adapted regime is reached when is comparable to . To clearly delineate the two regimes, it is useful to define new variables and . In the new variables, the DFE is
The neutrally adapted and well-adapted regimes then correspond to and , respectively. The mean rate of adaptation in units of generations on the scale is , where the expectation is taken over fixation probabilities and the DFE. We assume SSWM so that or for positive and 0 otherwise. We find
where is population size, and is the effective mutation rate for loci with nonzero effect. Integrating over , we get
Integrating over starting from an initial x0, we obtain an approximation to the mean fitness trajectory
Note that this is only an approximation for small since the typical fixed beneficial effect is a discrete jump. We show the result from Equation (109) in Appendix 1—figure 1a, where the dependencies on the equilibrium fitness and genetic variance are highlighted. There are two independent parameters that determine the scale () and location () of the fitness, and one parameter () that determines the time scale. From Equation (109), the and scalings in the neutrally adapted () and well-adapted regime () respectively are apparent.
The number of substitutions, ns, as a function of can also be calculated under the SSWM assumption. We get
which can be mapped onto time using Equation (109). The scalings are in the neutrally adapted regime and in the well-adapted regime.
Asymptotics and general scaling results
We now derive the asymptotic properties of the DFE in the well-adapted regime (). Writing out the Gaussian pdf in Equation (80), we have
where the change of variables is used. When , Laplace’s method can be used. The exponent is minimized when , which gives
The contribution towards a fitness effect at large comes largely from loci with VF . The exponential form of the beneficial DFE is determined entirely by the Gaussian tails of the genotype-dependent term. The argument can be easily generalized to non-Gaussian tail probabilities using a similar calculation. Equation (116) implies that the ratio of the probabilities of beneficial and deleterious mutations is independent of the DVF as long as it has sufficient mass at :
Such a relationship has been hypothesized previously based on simulations of an additive finite-sites model and the form of close to the high-interference limit that could result in a fitness plateau (Rice et al., 2015). Using our theory, we have shown that this result is indeed true independent of the DVF and under our core hypotheses of normality and memoryless fitness gains. If in the high-interference limit, where is the coalescent time, fitness should plateau when , which is at
The appears to account for the rescaling .
We get Equation (116) only if has probability mass at . This is not the case in the exponentially correlated fitness landscape model with homogeneous loci, that is, if, for instance, , we instead get from Equation (80)
The DFE in this case is therefore a Gaussian with mean shifting towards the deleterious side. The ratio of beneficial to deleterious mutations goes rapidly to zero as and adaptation sharply plateaus beyond .
From Equation (116), various scaling results can be derived that apply independent of and the Gaussian assumption on . We retain the exponential form for convenience. The rate of beneficial mutations is
The integral has an effective upper cutoff at and can be approximated as under certain assumptions for for small . The pre-factor suggests that the number of beneficial mutations depends on the number of small-effect loci. While strong epistatic loci drive adaptation in the neutrally adapted regime, adaptation in the well-adapted regime is instead driven by weakly epistatic loci.
From Equation (116), the typical size of a beneficial mutation is . Under SSWM, . As argued previously, since , we get and therefore we obtain the two scaling relations
which apply independently of the form of the DVF in the well-adapted regime.
Data availability
The code and data used to generate the figures are available at https://github.com/greddy992/global_epistasis (copy archived at https://archive.softwareheritage.org/swh:1:rev:ab20956034094e5789a5e0b74fb015d7f5341c31/).
-
DryadData from: Long-term dynamics of adaptation in asexual populations.https://doi.org/10.5061/dryad.0hc2m
References
-
Adaptive walks on high-dimensional fitness landscapes and seascapes with distance-dependent statisticsTheoretical Population Biology 130:13–49.https://doi.org/10.1016/j.tpb.2019.09.011
-
BookNk Fitness Landscapes, in “The Handbook of Evolutionary Computation”Browse Books.
-
BookMultivariate Statistics: A Vector Space ApproachJOHN WILEY & SONS, INC.https://doi.org/10.2307/2347710
-
Evolution experiments with microorganisms: the dynamics and genetic bases of adaptationNature Reviews Genetics 4:457–469.https://doi.org/10.1038/nrg1088
-
The changing geometry of a fitness landscape along an adaptive walkPLOS Computational Biology 10:e1003520.https://doi.org/10.1371/journal.pcbi.1003520
-
BookA mathematical theory of natural and artificial selection, part v: selection and mutationIn: Haldane J. B. S, editors. Mathematical Proceedings of the Cambridge Philosophical Society. Cambridge University Press. pp. 838–844.https://doi.org/10.1111/j.1469-185X.1924.tb00546.x
-
Amplitude spectra of fitness landscapesAdvances in Complex Systems 01:39–66.https://doi.org/10.1142/S0219525998000041
-
Physical constraints on epistasisMolecular Biology and Evolution 37:2865–2874.https://doi.org/10.1093/molbev/msaa124
-
Universality classes of interaction structures for NK fitness landscapesJournal of Statistical Physics 172:226–278.https://doi.org/10.1007/s10955-018-1979-z
-
Towards a general theory of adaptive walks on rugged landscapesJournal of Theoretical Biology 128:11–45.https://doi.org/10.1016/S0022-5193(87)80029-2
-
The NK model of rugged fitness landscapes and its application to maturation of the immune responseJournal of Theoretical Biology 141:211–245.https://doi.org/10.1016/S0022-5193(89)80019-0
-
The fluctuation-dissipation theoremReports on Progress in Physics 29:255–284.https://doi.org/10.1088/0034-4885/29/1/306
-
Sustained fitness gains and variability in fitness trajectories in the long-term evolution experiment with Escherichia coliProceedings of the Royal Society B: Biological Sciences 282:20152292.https://doi.org/10.1098/rspb.2015.2292
-
Idiosyncratic epistasis creates universals in mutational effects and evolutionary trajectoriesNature Ecology & Evolution 4:1685–1693.https://doi.org/10.1038/s41559-020-01286-y
-
Statistical genetics and evolution of quantitative traitsReviews of Modern Physics 83:1283–1300.https://doi.org/10.1103/RevModPhys.83.1283
-
Exact results for amplitude spectra of fitness landscapesJournal of Theoretical Biology 332:218–227.https://doi.org/10.1016/j.jtbi.2013.05.002
-
BookNIST Handbook of Mathematical Functions Hardback and CD-ROMCambridge university press.
-
The distribution of fitness effects among beneficial mutationsGenetics 163:1519–1526.
-
The genetic theory of adaptation: a brief historyNature Reviews Genetics 6:119–127.https://doi.org/10.1038/nrg1523
-
Biophysical inference of epistasis and the effects of mutations on protein stability and functionMolecular Biology and Evolution 35:2345–2354.https://doi.org/10.1093/molbev/msy141
-
Inferring the shape of global epistasisPNAS 115:E7550–E7558.https://doi.org/10.1073/pnas.1804015115
-
The Context-Dependence of mutations: a linkage of formalismsPLOS Computational Biology 12:e1004771.https://doi.org/10.1371/journal.pcbi.1004771
-
Patterns of epistasis between beneficial mutations in an antibiotic resistance geneMolecular Biology and Evolution 30:1779–1787.https://doi.org/10.1093/molbev/mst096
-
Random field models for fitness landscapesJournal of Mathematical Biology 38:435–478.https://doi.org/10.1007/s002850050156
-
Quantitative analyses of empirical fitness landscapesJournal of Statistical Mechanics: Theory and Experiment 2013:P01005.https://doi.org/10.1088/1742-5468/2013/01/P01005
-
Fourier and Taylor series on fitness landscapesBiological Cybernetics 65:321–330.https://doi.org/10.1007/BF00216965
-
Should evolutionary geneticists worry about higher-order epistasis?Current Opinion in Genetics & Development 23:700–707.https://doi.org/10.1016/j.gde.2013.10.007
-
Diminishing-returns epistasis decreases adaptability along an evolutionary trajectoryNature Ecology & Evolution 1:61.https://doi.org/10.1038/s41559-016-0061
Article and author information
Author details
Funding
Simons Foundation (NSF-Simons Center at Harvard #1764269)
- Gautam Reddy
Simons Foundation (376196)
- Michael M Desai
National Science Foundation (PHY-1914916)
- Michael M Desai
National Institutes of Health (R01GM104239)
- Michael M Desai
The funders had no role in study design, data collection and interpretation, or the decision to submit the work for publication.
Acknowledgements
We thank Sergey Kryazhimskiy, Andrew Murray, Milo Johnson, and members of the Desai lab for comments on the manuscript. GR was supported by the NSF-Simons Center for Mathematical and Statistical Analysis of Biology at Harvard (award number #1764269) and the Harvard FAS Quantitative Biology Initiative. MMD acknowledges support from the Simons Foundation (grant 376196), NSF Grant PHY-1914916, and NIH grant R01GM104239.
Copyright
© 2021, Reddy and Desai
This article is distributed under the terms of the Creative Commons Attribution License, which permits unrestricted use and redistribution provided that the original author and source are credited.
Metrics
-
- 3,361
- views
-
- 539
- downloads
-
- 85
- citations
Views, downloads and citations are aggregated across all versions of this paper published by eLife.
Download links
Downloads (link to download the article as PDF)
Open citations (links to open the citations from this article in various online reference manager services)
Cite this article (links to download the citations from this article in formats compatible with various reference manager tools)
Further reading
-
- Evolutionary Biology
The rise of angiosperms to ecological dominance and the breakup of Gondwana during the Mesozoic marked major transitions in the evolutionary history of insect-plant interactions. To elucidate how contemporary trophic interactions were influenced by host plant shifts and palaeogeographical events, we integrated molecular data with information from the fossil record to construct a time tree for ancient phytophagous weevils of the beetle family Belidae. Our analyses indicate that crown-group Belidae originated approximately 138 Ma ago in Gondwana, associated with Pinopsida (conifer) host plants, with larvae likely developing in dead/decaying branches. Belids tracked their host plants as major plate movements occurred during Gondwana’s breakup, surviving on distant, disjunct landmasses. Some belids shifted to Angiospermae and Cycadopsida when and where conifers declined, evolving new trophic interactions, including brood-pollination mutualisms with cycads and associations with achlorophyllous parasitic angiosperms. Extant radiations of belids in the genera Rhinotia (Australian region) and Proterhinus (Hawaiian Islands) have relatively recent origins.
-
- Evolutionary Biology
Studying the fecal microbiota of wild baboons helps provide new insight into the factors that influence biological aging.