Skip to main content
NIHPA Author Manuscripts logoLink to NIHPA Author Manuscripts
. Author manuscript; available in PMC: 2016 Apr 1.
Published in final edited form as: Phys Biol. 2015 Mar 19;12(2):025001. doi: 10.1088/1478-3975/12/2/025001

Modularity Enhances the Rate of Evolution in a Rugged Fitness Landscape

Jeong-Man Park 1,2, Man Chen 1, Dong Wang 1, Michael W Deem 1,3
PMCID: PMC4384690  NIHMSID: NIHMS675003  PMID: 25786859

Abstract

Biological systems are modular, and this modularity affects the evolution of biological systems over time and in different environments. We here develop a theory for the dynamics of evolution in a rugged, modular fitness landscape. We show analytically how horizontal gene transfer couples to the modularity in the system and leads to more rapid rates of evolution at short times. The model, in general, analytically demonstrates a selective pressure for the prevalence of modularity in biology. We use this model to show how the evolution of the influenza virus is affected by the modularity of the proteins that are recognized by the human immune system. Approximately 25% of the observed rate of fitness increase of the virus could be ascribed to a modular viral landscape.

1 Introduction

Biological systems are modular, and the organization of their genetic material reflects this modularity [1-4]. Complementary to this modularity is a set of evolutionary dynamics that evolves the genetic material of biological systems. In particular, horizontal gene transfer (HGT) is an important mechanism of evolution, in which genes, pieces of genes, or multiple genes are transferred from one individual to another [5-7]. Additionally, multi-body contributions to the fitness function in biology are increasingly thought to be an important factor in evolution [8], leading to a rugged fitness landscape and glassy evolutionary dynamics. The combination of modularity and horizontal gene transfer provide an effective mechanism for evolution upon a rugged fitness landscape [9]. The organization of biology into modules simultaneously restricts the possibilities for function, because the modular organization is a subset of all possible organizations, and may lead to more rapid evolution, because the evolution occurs in a vastly restricted modular subspace of all possibilities [9, 10]. Our results explicitly demonstrate this trade off, with t* serving as the crossover time from the latter to the former regime.

Thus, the fitness function in biology is increasingly realized to be rugged, yet modular. Nonetheless, nearly all analytical theoretical treatments assume a smooth fitness landscape with a dependence only on Hamming distance from a most-fit sequence [11], a linear or multiplicative fitness landscape for dynamical analysis of horizontal gene transfer [12, 13], or an uncorrelated random energy model [14, 15]. Horizontal gene transfer processes on more general, but still smooth, landscapes have been analyzed [16-20]. Here we provide, to our knowledge, the first analytical treatment of a finite-population Markov model of evolution showing how horizontal gene transfer couples to modularity in the fitness landscape. We prove analytically that modularity can enhance the rate of evolution for rugged fitness landscapes in the presence of horizontal gene transfer. This foundational result in the physics of biological evolution offers a clue to why biology is so modular. We demonstrate this theory with an application to evolution of the influenza virus.

We introduce and solve a model of individuals evolving on a modular, rugged fitness landscape. The model is constructed to represent several fundamental aspects of biological evolution: a finite population, mutation and horizontal gene transfer, and a rugged fitness landscape. For this model, we will show that the evolved fitness is greater for a modular landscape than for a non-modular landscape. This result holds for t < t* where t* is a crossover time, larger than typical biological timescales. The dependence of the evolved fitness on modularity is multiplicative with the horizontal gene transfer rate, and the advantage of modularity disappears when horizontal gene transfer is not allowed. Our results describe the response of the system to environmental change. In particular, we show that modularity allows the system to recover more rapidly from change, and fitness values attained during the evolved response to change increase with modularity for large or rapid environmental change.

2 Theory of the Rate of Evolution in a Rugged Fitness Landscape

We use a Markov model to describe the evolutionary process. There are N individuals. Each individual α replicates at a rate fα. The average fitness in the population is defined as f=1Nα=1Nfα. Each individual has a sequence Sα that is composed of L loci, siα. For simplicity, we take siα=±1. Each of the loci can mutate to the opposite state with rate μ. Each sequence is composed of K modules of length l = L/K. A horizontal gene transfer process randomly replaces the kth module in the sequence of individual α, e.g. the sequence loci s(k1)l+1αsklα, with the corresponding sequences from a randomly chosen individual β at rate ν. The a priori rate of sequence change in a population is, therefore, N μL + NνL/2. Since the fitness landscape in biology is rugged, we use a spin glass to represent the fitness:

f[S]=2L+H[S]H[S]=ijsisjJijΔij (1)

Jij is a quenched, Gaussian random matrix, with variance 1/C. As discussed in Appendix A, the offset value 2L is chosen by Wigner’s semicircle law so that the minimum eigenvalue of f is non-negative. The entries in the matrix Δ are zero or one, with probability C/L per entry, so that the average number of connections per row is C. We introduce modularity by an excess of interactions in Δ along the l × l block diagonals of the L × L connection matrix. There are K of these block diagonals. Thus, the probability of a connection is C0/L when ⌊i/l⌋ ≠ ⌊j/l⌋ and C1/L when ⌊i/l⌋ = ⌊j/l⌋. The number of connections is C = C0 + (C1C0)/K. Modularity is defined by M = (C1C0)/(KC) and obeys −1/(K − 1) ≤ M ≤ 1.

The Markov process describing these evolutionary dynamics includes terms for replication (f), mutation (μ), and horizontal gene transfer (ν):

dP({na};t)dt={a}[f(Sa)(na1){ba}nb+1NP(na1,nb+1;t)f(Sa)na{ba}nbNP(na,nb;t)]+μ{a}{b=a}[(nb+1)P(na1,nb+1;t)nbP(na,nb;t)]+ν{a}k=1K{b,bkak}[(nabk+1)nbakNP(na1,nabk+1;t)][nabknbakNP(na,nabk;t)] (2)

Here na is the number of individuals with sequence Sa, with the vector index a used to label the 2L sequences. This process conserves N = Σa na. The notation a means the L sequences created by a single mutation from sequence Sa. The notation a/bk means the sequence created by horizontally gene transferring module k from sequence Sb into sequence Sa.

We consider how a population of initially random sequences adapts to a given environment, averaged over the distribution of potential environments. For example, in the context of influenza evolution, these sequences arise, essentially randomly, by transmission from swine. As discussed in Appendix B, a short-time expansion for the average fitness can be derived by recursive application of this master equation:

f(t)=2L+at+bt2a=2L(11N)b=4L2N(11N)4μL(11N)2νL[(11K)(1M)(14N)+1N](11N) (3)

Result (3) is exact for all finite N. Note that the effect of modularity enters at the quadratic level and requires a non-zero rate of horizontal gene transfer, ν > 0. We see that ⟨fM>0(t)⟩ > ⟨f0(t)⟩ for short times.

From the master equation, we also calculate the sequence divergence, defined as D=1Nα=1NLSα(t)Sα(0)2. As discussed in Appendix C, recursive application of Eq. (2) gives

D=αt+βt2α=L2(11N)+μL+νL2(11N)β=L3(112L+32LN)(11N)2μL2(11N)νL2(11N)μ2LμνL(11N)14ν2L(11N) (4)

The sequence divergence does not depend on modularity at second order in time. Note the terms at order tn not proportional μmνnm are due to discontinuous changes in sequence resulting from the fixed population size constraint.

Introduction of a new sequence into an empty niche corresponds to an initial condition of identical, rather than random, sequences. The population dynamics again follows Eq. (2). To see an effect of modularity, an expansion to 4th order in time is required. As discussed in Appendix B, we find

f(t)=2L+bt2+ct3+dt4 (5)

with

(2!)b=16μL(11N)(3!)c=64μL2(11N)N192μ2L(11N)32μνL(11N)N(4!)d=128μ2νLM(11K)(11N)(14N)+64μL(11N)[2(6+14μ2μν)+2μν(14N)K2(3610μL9μν)N+(4L2+2L+92+4νL+ν2)N2] (6)

Interestingly, the fitness function initially increases quadratically. The modularity dependence enters at fourth order, and ⟨fM>0(t)⟩ > ⟨f0(t)⟩ for short times.

3 Comparison of Theory to Simulation Results

The response function of the modular and non-modular system can be computed numerically as well. We start the system off with random initial sequences, so that the average initial ⟨f(0)⟩ − 2L is zero, and compute the evolution of the average fitness, ⟨f(t)⟩. In Fig. 1 we show the results from a Lebowitz-Gillespie simulation. We see that ⟨fM(t)⟩ > ⟨f0(t)⟩ for t < t* for M = 1. That is, the modular system evolves more quickly to improve the average fitness, for times less than a crossover time, t*. For t > t*, the constraint that modularity imposes on the connections leads to the non-modular system dominating, ⟨f0(t)⟩ > ⟨fM(t)⟩.

Figure 1.

Figure 1

Shown is the population average fitness for the modular (M = 1, solid) and non-modular (M = 0, dashed) systems. Fitness is normalized by L and the offset 2L is subtracted. The modular system evolves to a greater fitness value for times t < t*. Here t* ≈ 182. Here Eq. (1) has been scaled by = 0.1, and L = 100, N = 10000, μ = 0.05, ν = 0.6, K = 5, and C = L/K − 1, motivated by application to evolution of influenza to be discussed below. In inset is shown the fit of the data to the form of Eq. (7).

Eq. (3) shows these results analytically, and we have checked Eq. (3) by numerical simulation as well. For the parameter values of Fig. 1 and M = 0, theory predicts a/L = 0.019998, b/L = −0.011636, and simulation results give a/L = 0.020529 ± 0.000173, b/L = −0.011306 ± 0.000406. For M = 1, theory predicts a/L = 0.019998, b/L = −0.002041, and simulation results give a/L − 0.019822 ± 0.000200, b/L = −0.0019084 ± 0.000177

Since the landscape is rugged, we expect the time it takes the system to reach a given fitness value, ⟨f(t)⟩, starting from random sequences to grow in a stretched exponential way at large times. Moreover, since the combination of horizontal gene transfer and modularity improves the response function at short times, we expect that the difference in times required to reach ⟨f(t)⟩ of a non-modular and modular system also increases in a stretched exponential way, by analogy with statistical mechanics, in which we expect the spin glass energy response function to converge as

f(t)~fcln2νtt0 (7)

with ν = 1 [21]. Figure 1 shows the fit of the data to this functional form, with f = 0.958, c = 0.067, t0 = 3.168 for M = 0 and f = 0.922, c = 0.004, t0 = 7.619 for M = 1. Figure 2 shows the stretched exponential speedup in the rate of evolution that modularity provides.

Figure 2.

Figure 2

Shown is the difference in time required, Δt, for the modular (M = 1) and non-modular (M = 0) system to reach a specified average fitness value for times t < t*, starting from random initial sequences. Parameter values are as in Fig. 1.

The prediction for evolution of a population of identical sequences in a new niche is shown in Eq. (6). Analytically, the effect of modularity shows up at 4th order rather than 2nd order when all sequences are initially identical. Qualitatively, however, at all but the very shortest times, the results for random and identical sequences are similar, as shown in Figs. 1 and 3.

Figure 3.

Figure 3

Shown is the population average fitness for the modular (M = 1, solid) and non-modular (M = 0, dashed) systems when all individuals initially have the same sequence. Fitness is normalized by L and the offset 2L is subtracted. The modular system evolves to a greater fitness value for times t < t*. Here t* ≈ 230. Parameter values are as in Fig. 1.

4 Average Fitness in a Changing Environment

We show how to use these results to calculate the average fitness in a changing environment. We consider that every T time steps, the environment randomly changes. During such an environmental change, each Jij in the fitness, Eq. (1), is randomly redrawn from the Gaussian distribution with probability p. That is, on average, a fraction p of the fitness is randomized. Due to this randomization, the fitness immediately after the environmental change will be 1 − p times the value immediately before the change, on average. This condition allows us to calculate the average time-dependent fitness during evolution in one environment as a function of p and T, given only the average fitness starting from random initial conditions, ⟨f(t⟩ [22]. We denote the average fitness reached during evolution in one environment as fp,T (M). This is related to the average fitness with random initial conditions by fp,T (M) = ⟨f(M)⟩(t), where t is chosen to satisfy ⟨f(M)⟩(tT) = (1 − p)⟨f(M)⟩(t) due to the above condition. Thus, for high rates or large magnitudes of environmental change, Eq. (3) can be directly used along with these two conditions to predict the steady-state average population fitness.

Figure 4 shows how the average fitness depends on the rate and magnitude of environmental change. The average fitness values for a given modularity are computed numerically. The figure displays a crossing of the modularity-dependent fitness curves. The curve associated with the largest modularity is greatest at short times. There is a crossing to the curve associated with the second largest modularity at intermediate times. And there is a crossing to the curve associated with the smallest modularity at somewhat longer times. In other words, the value of modularity that leads to the highest average fitness depends on time, T, decreasing with increasing time.

Figure 4.

Figure 4

Shown is the fitness, fp,T (M), in an environment that changes with characteristic time T and magnitude a) p = 0.5 or b) p = 0.9. c) The fitness is replotted as a function of T/p. For each p, the fitness is shown for three values of modularity: M = 0.6 (solid), M = 0.8 (dotted), and M = 1 (dashed). Parameters are as in Fig. 1.

Figure 4 demonstrates that larger values of modularity, greater M, lead to higher average fitness values for faster rates of environmental change, smaller T. The advantage of greater modularity persists to larger T for greater magnitudes of environmental change, larger p. In other words, modularity leads to greater average fitness values either for greater frequencies of environmental change, 1/T, or greater magnitudes of environmental change, p.

It has been argued that an approximate measure of the environmental pressure is given by the product of the magnitude and frequency of environmental change p/T [22]. If this is the case, then the curves in Fig. 4ab as a function of T for different values of p should collapse to a single curve as a function of T/p. As shown in Fig. 4c, this is approximately true for the three cases M = 0.6, M = 0.8, and M = 1.

5 Application of Theory to Influenza Evolution Data

We here apply our theory to the evolution of the influenza virus. Influenza is an RNA virus of the Orthomyxoviridae family. The 11 proteins of the virus are encoded by 8 gene segments. Reassortment of these gene segments is common [23-25]. In addition, there is a constant source of genetic diveristy, as most human influenza viruses arise from birds, mix in pigs, with a select few transmitted to humans [23-26]. We model a simplification of this complex coevolutionary dynamics with the theory presented here. We consider K ≈ 5 modules, with mutations in the genetic material encoding them leading to an effective mutation rate at the coarse-grained length scale. We do not consider individual amino acids, but rather a coarse-grained L = 100 reprsentation the viral protein material. The virus is under strong selective pressure to adapt to the human host, having most often arisn in birds and trasmitted through swine. The virus is also under strong pressure from the human immune system. The virus evolves in response to this pressure, thereby increasing its fitness. The increase in fitness was estimated by tracking the increase in frequency of each viral strain, as observed in the public sequence databases: ln[fi(t+1)fi(t)]=x^i(t+1)xi(t), where fi(t) is the fitness of clade i at time t, xi(t) is the frequency of clade i among all clades observed at time t, and x^i(t+1) is the frequency at t + 1 predicted by a model that includes a description of the mutational processes [27]. Here “clade” is a term for the quasispecies of closely-related influenza sequences at time t. We use these approximate fitness values, estimated from observed HA sequence patterns and an approximate point mutation model of evolution, for comparison to the present model.

Influenza evolves within a cluster of closely-related sequences for 3–5 years and then jumps to a new cluster [28-30]. Indeed, the fitness flux data over 17 years [27] shows a pattern of discontinuous changes every 3–5 years. Often these jumps are related to influx of genetic material from swine [23-26]. By clustering the strains, the clusters and the transitions between them can be identified: the flu strain evolved from Wuhan/359/95 to Sydney/5/97 at 1996-1997, Panama/2007/1999 to Fujian/411/2002 at 2001-2002, California/7/2004 to Wisconsin/67/2005 at 2006-2007, Brisbane/10/2007 to BritishColumbia/RV1222/09 at 2009-2010 [30]. These cluster transitions correspond to the discontinuous jumps in the fitness flux evolution and discontinuous changes in the sequences. Our theory represents the evolution within one of these clusters, considering reassortment only among human viruses. Thus, we predict the evolution of the fitness during each of these periods. There are 4 periods within the time frame 1993–2009. Figure 5 shows the measured fitness data [27], averaged over these four time periods.

Figure 5.

Figure 5

Shown is the fitness of influenza virus H3N2 in humans, estimated from the time derivative of the frequency with which sequences appear in the GenBank sequence database. Each time a new circulating strain is introduced to humans, typically from pigs infected from birds, the fitness increases as a quasispecies expands around the strain. The average fitness increase over four such antigenic shifts between 1993 and 2010 is shown. Data are from [27]. Error bars are one standard error. Theoretical results are shown for the modular (M = 1, solid) and non-modular (M = 0, dotted) model predictions. Theory was fit to the average linear fitness increase at 5 years. Parameter values are as in Fig. 1, with fitness scaled by = 0.1. Theoretical results are also shown for = 0.125 and M = 0 (dashed).

We scaled Eq. (1) by to fit the observed data. The predictions from Eq. (3) are shown in Fig. 5. We find = 0.1 and M = 1 fit the observed data well. We assume the overall rate of evolution is equally contributed to by mutation and horizontal gene transfer. The average observed substitution rate in the 100aa epitope region of the HA protein is 5 amino acids per year [27, 30]. We interpret this result in our coarse-grained model to imply μ = .05 and ν = 0.6.

The value of required to fit the non-modular model to the data is 25% greater than the value required to fit the modular model to the data. That is, approximately 25% of the observed rate of fitness increase of the virus could be ascribed to a modular viral fitness landscape. Thus, to achieve the observed rate of evolution, the virus may either have evolved modularity M = 1, or the virus may have evolved a 25% increase in its replication rate by other evolutionary mechanisms. Given the modular structure of the epitopes on the haemagglutinin protein of the virus, the modular nature of the viral segments, and the modular nature of naive, B cell, and T cell immune responses we suggest that influenza has likely evolved a modular fitness landscape.

6 Generalization to Investigate the E ect of Landscape Ruggedness

We here generalize Eq. (1) to p-spin interactions, q letters in the alphabet from which the sequences are constructed, and what is known as the GNK random matrix form of interactions [31]. These generalizations allow us to investigate the effect of landscape ruggedness on the rate of evolution.

6.1 Generalization to the p-spin SK Model

We first generalize the SK model to interactions among p spins, which we term the pSK model. The pSK landscape is more rugged for increasing p. Thus, we might expect modularity to play a more important role for the models with larger p. The generalized fitness is written as

f=i1i2ipJi1i2ipΔi1i2ipsi1si2sip+2L (8)

The J and Δ tensors are symmetric, that is, Ji1i2ip = J[i1i2ip] and Δi1i2ip = Δ[i1i2ip], where [i1i2ip] is any permutation of i1i2ip. The probability of a connection is C1/Lp−1 inside the block, ⌊i1/l⌋ = ⌊i2/l⌋ = … = ⌊ip/l⌋, and C0/Lp−1 outside the blocks. The connections are defined as

i2ipΔi1i2ip=C (9)

Since C=C0[1(1K)p1]+C1(1K)p1, it follows that C1 = C[MKp−1 + (1 − M)], and C0 = C(1 − M).

Increasing the value of p makes the landscape more rugged, and so it is more difficult for system to reach a given value of the fitness in a finite time. Thus, modularity is expected to play a more significant role in giving the system an evolutionary advantage. Specifically we expect that the effect of modularity will show up at shorter times for larger p. As shown in Appendix B, we find

a=2L(11N)2b=8L2N(11N)4μpL(11N)+2νL[(2Np+3pN)(1M)(11Kp1)2N](11N) (10)

The modular terms increase faster with p than the non-modular terms, so the dependence on modularity of evolution is more significant with bigger p. Figure 6 shows the average fitness curves for the p-spin interaction. Due to the normalization of the J values, all fitness curves have the same slope at t = 0, i.e. the same values of a. However, increasing p leads to slower rates of fitness increase at finite time, especially for the M = 0 case. At finite time, for large values of p, the evolutionary advantage of larger M is more pronounced. That is, modularity help the sequences to evolve more efficiently.

Figure 6.

Figure 6

Results for 2-spin, 12-spin and 30-spin SK interaction fitness when initial sequences are random. The fitness is given by Eq. (8). The parameters are as in Fig. 1.

We also calculated the average fitness for the initial condition of all sequences identical. As discussed above, many-spin effects make the landscape more rugged for larger p. We seek to understand this effect quantitatively for the case of same initial sequences as well. As shown in Appendix B, the Taylor expansion results are

(2!)b=8μpL(11N)(3!)c=32μpL2(11N)N16μ2p2L(11N)64μ2pL(11N)16μνpL(11N)N(4!)d=64μ2νp(p1)LM(11K)(11N)(14N)+32μpL(11N)[(6p+7μ2p22μν(p1))+2μν(14N)K(36p10μpL5μνp8μν(p1))N+(4L2+2L+46p+4νL+ν2)N2] (11)

6.2 Generalization to the Planar Potts Model

We here generalize the alphabet from two-states, si = ±1, to q states, with a planar Potts model [32] of the fitness. The q = 2 model is often justified as a projection of the q = 4 nucleic acid alphabet onto purines and pyrimidines. Thus, q = 4 is a relevant generalization. Additional q = 20 corresponds to the amino acid alphabet. The alphabet size can affect the evolutionary phase diagram [33], so q is a relevant order parameter. In the planar Potts model, each vector spin takes on q equidistant angles, and the angle between two is defined by si · sj = cos θij. The fitness is

f=ijJijΔijcosθij+2L (12)

The directions of a spin are evenly spaced in the plane, so when the spin points to q directions, the angle between two spins is 2/q, where k can be 0, 1, …, q − 1.

The evolutionary dynamics in the planar Potts model is distinct from that in the pSK model. As shown in Appendix B,

a=L(11N)(1+δq,2)2b=4L2(11N)(1+δq,2)N2μL(11N)qq1(1+δq,2)2νL[(11K)(1M)(14N)+1N](11N)(1+δq,2) (13)

Figure 7 displays results for two values of q. Increasing q does increase the landscape ruggedness in the planar Potts model. There is an evolutionary speedup provided by modularity. The q dependence, however, is not as dramatic as in the pSK model.

Figure 7.

Figure 7

Average fitness in the planar Potts model for alphabet sizes of q = 2 or q = 20. Sequences are initially random. The fitness Eq. (12). Other parameters are same as in Fig. 1.

6.3 Generalization to the GNK Model

A model related to the SK form is the GNK model, a simple form of which is

f=H+2L=ijσij(si,sj)Δij+2L (14)

where the σ matrix is a symmetric matrix with random Gaussian entries, and the Δ matrix is the same as that in Eq. (1). Other than the condition of symmetry, the entries in the σ matrices are independently drawn from a Gaussian distribution of zero mean and unit variance in each matrix and for different i, j. Thus, other than the condition σij = σji, the values are independent for different i, j, si, or sj. This form is generalized to a p-spin, q-state form as

f=i1i2ipσi1i2ip(si1,si2,,sip)Δi1i2ip+2L (15)

where si can take one of the q values.

For the GNK model, as shown in Appendix B, p-spin q-state result is

a=2L(11N)(11qp)lnq2b=8L2N(11N)(11qp)lnq2μpL(11N)q(q1)lnq2νKL(11N)(1M)[(13N)(1+1qp(11K+qKq)p(q(11K)+1Kq)p)2(11K+qKq)pN+2NK+2(11K)Nqp]lnq+4νL(11N)(1+(K1)qp)(Nlnq) (16)

As with previous models, modularity increases the rate of evolution.

7 Conclusion

The modular spin glass model captures several important aspects of biological evolution: finite population, rugged fitness landscape, modular correlations in the interactions, and horizontal gene transfer. We showed in both numerical simulation and analytical calculations that a modular landscape allows the system to evolve higher fitness values for times t < t*. Using this theory to analyze fitness data extracted from influenza virus evolution, we find that approximately 25% of the observed rate of fitness increase of the virus could be ascribed to a modular viral landscape. This result is consistent with the success of the modular theory of viral immune recognition, termed the pepitope theory, over the non-modular theory, termed psequence [29]. The former correlates with human influenza vaccine effectiveness with R2 = 0.81, whereas the latter correlates with R2 = 0.59. The model, in general, analytically demonstrates a selective pressure for the prevalence of modularity in biology. The present model may be useful for understanding the influence of modularity on other evolving biological systems, for example the HIV virus or immune system cells.

Acknowledgments

This research was supported by the US National Institutes of Health under grant 1 R01 GM 100468–01. JMP was also supported by the National Research Foundation of Korea Grant (NRF-2013R1A1A2006983).

8 Appendix A: The Requirement that Fitness be Non-Negative

8.1 The pSK Model

The normalization of the coupling in Eq. (1), the Jij, affects the maximum and minimum possible values of the H term. We require that the average energy per site of the sequence be finite when L → ∞, i.e. that H is on the order of L. For the 2-spin, 2-state interaction, the Wigner semicircle law [34] shows that a rank-L random symmetric matrix with ΣjJij2Δij2=1i has a minimum eigenvalue −2. Thus, if we consider the si in Eq. (1) to be normalized as Σisi2=L, the 2L shift in Eq. (1) guarantees that H + 2L ≥ 0. So after considering the connection matrix Δ, we choose Jii = 0 and ⟨JijJkl⟩ = (δikδjl + δilδjk)/C.

For the pSK case, we first assume that Ji1ip is not symmetric, i.e. Ji1ip with permutations of the same labels are drawn independently. We will consider the symmetrization afterward. We define

Ki1i2=i3ipJi1i2ipΔi1i2ip (17)

And for any i1

i2Ki1i22=i2ipJi1i2ip2Δi1i2ip=CJ2 (18)

So,

H=i1i2ipsi1si2sipJi1i2ipΔi1i2ip=i1i2si1si2(i3ipsi3sipJi1i2ipΔi1i2ip)=si1si2Ki1i2=si1si2Ki1i2+Ki2i12 (19)

In the last step we symmetrize the K matrix so that we can apply the Wigner semicircle law. From the semicircle law, if we want the minimum of the p-spin interaction to be −2L, we need Σi2⟨(Ki1i2 + Ki2i1)/2⟩2 = 1 for every i1. We, thus, find

i2Ki1i2+Ki2i122=14i2Ki1i22+Ki2i12=C2J2=1 (20)

So Ji1ip2=2C for asymmetric Ji1ip. We symmetrize the Ji1ip

Ji1i2ip=1p!permutationsJi1i2ip (21)

to find

Ji1i2ip2=p!p!2Ji1i2ip2=2p!C (22)

The Wigner approach to calculate the minimal possible value of H is overly conservative, because in this approach all possible real vectors, si are considered, whereas in our application si = ±1. We here use extreme value theory to take this constraint into account. We use the 2-spin interaction to exemplify the method. As the J matrix is symmetric, its elements are not independent, so the terms in H are not independent. We rewrite H, noting the diagonal terms are zero, as

H=ijJijsisjΔij=2i<jJijsisjΔij=2H (23)

The terms in H′ are independent. After taking into account the connection matrix, there are LC/2 non-zero independent elements. As si is either +1 or −1, multiplying them does not change the distribution of each element, so the H′ is the sum of LC/2 Gaussian variables. We choose the variance of each element as 1/C, so H′ ~ N(0, L/2), and H is twice of this, so

H~N(0,2L) (24)

There are 2L different sequences, so there are 2L different H, which differ by a few terms instead of all terms, so they are not independent. We seek the smallest H. Slepian’s lemma [35] shows that for Gaussian variables Xi and Yi with average 0, if Xi2=Yi2, and ⟨XiXj⟩ ≤ ⟨YiYj⟩ for all i and j, then for any x,

P(max1inXix)P(max1inYix) (25)

Thus, since Xi and Yi have zero mean, the minimum of the less correlated variables is smaller than that of the more correlated ones. Thus, we still use extreme value theory to determine the minimum for the same number of independent variables with the same distribution, and we use this number as an estimate of a lower bound. When we add this estimated value to H, Slepian’s lemma guarantees the non-negativity of the fitness. We will show shortly that this estimated value is quite near the true value. The extreme value theory calculation proceeds as follows:

HminP(H)dH=12L (26)

where 2L is the sample space size when the spin has 2 directions. From the symmetry of Gaussian distribution and Hmax = −Hmin, we find

12π2LHmaxex24Ldx=0.5+1π0Hmax2Lex2dx=0.5+0.5erf(Hmax2L)1eHmax24LπHmax2L=112L (27)

where erf() is the error function. Since L is large, we find

eHmax24LπHmax2LeHmax24L=eHmin24L=2L (28)

So

Hmin=2Lln22×0.832L (29)

Numerical results show that the exact value is −2 × 0.763L [36], quite close to the value in Eq. (29). In this way, for the pSK interaction, a normalization of

Ji1,i2,,ip2=2Cp! (30)

gives a minimum 2Lln2. This bound becomes exact as p → ∞ [37]. As p becomes bigger, the landscape becomes more rugged, and the sequences becomes more uncorrelated. The correlation of general p falls between that of p = 2 and p → ∞, so according to Slepian’s lemma, the exact minimum of any p will fall between that of p = 2 and that of p → ∞. As 0.832 ≈ 1 and 0.763 ≈ 1, we will neglect this factor, and set the shift to 2L when ⟨J2⟩ = 2/p!C, which guarantees f > 0.

Here we also calculate ⟨H2⟨, which is used to obtain the Taylor expansion results in section 9. For a two-spin interaction we find

H2=ijklJijJklΔijΔklsisjsksl=ijkl(δikδjlC+δilδjkC)ΔijΔklsisjsksl=2ijΔijC=2L (31)

We similarly calculate p-spin results. We find that ⟨H2⟩ is always 2L for all p under this normalization scheme.

8.2 The Planar Potts Model

For the planar Potts model, we consider that q is even, so the configuration space of q = 2 is a subset of that of q > 2, and the minimum of q > 2 is no bigger than that of q = 2 Potts model, which is −0.763 × 2L [36]. We consider two limiting cases to obtain the lower bound of the minimum. First, when q → ∞, the planar Potts model becomes the XY model, which is defined in this case as H = Σij Jijsi · sj = Σij Jij cos θij, where θij is the angle between vector si and sj, and these vectors si can point to any direction in a two dimensional space. So the configuration space of the planar Potts model is a subset of that of the XY model, and the minimum of planar Potts model is no smaller than that of the XY model. Numerical results show that the ground state energy for the XY model is roughly 0.90 × 2L [38].

Second, the vectors in the XY model are restricted in a two dimensional space. If we generalize it to an n dimensional space, with si = (x1, x2, …, xn), and x12+x22++xn2=1, we obtain the n vector model. When n → ∞, the model becomes the spherical model, the exact minimum of H can be calculated analytically as −2L when Jij2=1L [39]. Similarly, we see that the configuration space of the XY model is a subset of the spherical model, and the minimum of the XY model is no smaller than the spherical model. So considering the above two limiting cases, the minimum of the planar Potts model is no smaller than −2L when Jij2=1L. Thus, we set the shift as 2L to guarantee that f > 0.

We still need to consider the effect of the connection matrix. We use extreme value theory. We consider that the matrix elements of J are randomly chosen, so that H becomes sum of LC Gaussian-like variables instead of L2 variables, so the minimum is CL times that of the minimum without the connection matrix. To normalize the minimum back to −2L, we finally choose Jij2=1C.

We calculate ⟨H2⟩ for the planar Potts model. When q = 2, the average value of cos2 θij is 1, while when q > 2, the value is 1/2. Thus,

H2=ijJijΔijcosθijklJklΔklcosθkl=2ijJij2Δklcos2θij=ijJij2(1+δq,2)Δkl=L(1+δq,2) (32)

8.3 The GNK Model

We use extreme value theory to discuss the minimum and normalization of the GNK model. When ⟨σ2⟩ = 2p!/C,

H~p!N(0,σ2LCp!)~N(0,2L) (33)

so the distribution of the H for the GNK model is the same as that of the pSK model. The correlation induced by the dependence of H on the si is, however, different in these two models. Here we follow the method of [40]. We have two sets of variables with the same set size, one is the p spin interaction GNK H, denoted as Xi, and normalized so that Xi2=1, and the other is a set of Gaussian variables Yi, and Yi2=1, ⟨YiYj⟩ = c < 1. There are qL variables in each set, and we that ⟨Ymax⟩ is 1c times the maximum of the same number of uncorrelated Gaussian variables with the-same variance and average [41], so from Eq. (29) Ymax=2L(1c)lnq. We define a new variable, Zi=1tXi+tYi, where 0 ≤ t ≤ 1, and we define r(t) = P(Z1(t) ≤ a, …, ZqL(t) ≤ a). So r(t = 0) is the probability that the maximum of Xi is smaller than a, while r(t = 1) is the probability that the maximum of Yi is smaller than a. We seek to make r(0) ≤ r(1), so that XmaxYmax, so we seek dr(t)/dt ≥ 0 for 0 ≤ t ≤ 1. It is shown that on page 71 of [40]:

dr(t)dt=12ij(YiYjXiXj)aa2ϕ(t,Z1,,ZqL)ZiZjdZ1dZqL (34)

where φ is the joint distribution of Z. For example, the term corresponding to i = 1, j = 2 is (⟨Y1Y2⟩ − ⟨X1X2⟩) aaϕ(t,a,a,Z3,,ZqL)dZ3dZqL, and aaϕ(t,a,a,Z3,,ZqL)dZ3dZqLϕ(t,Z1=a,Z2=a), as the probability that all other variables is smaller than the maximum we are looking for is approximately 1. ⟨YiYj⟩ = c for all ij, and ⟨XiXj⟩ is the same for pairs with dij the same, so we group the pairs according to their Hamming distance, and rewrite Eq. (34) as

dr(t)dt=14id=1L(Ld)(q1)d(cXiXj)ϕ(t,Zi=a,Zj=a) (35)

where Xj is any sequence satisfying dij = d. As the system is totally random, it does not matter what sequence j is, and we can set it as the first sequence and rewrite it as

dr(t)dt=14qLd=1L(Ld)(q1)d(cX1Xi)ϕ(t,Z1=a,Zi=a) (36)

where Xi is any sequence satisfying d1i = d. As only the integral depends on t, we can write it as

r(1)r(0)=14qLd=1L(Ld)(q1)d(cX1Xi)01ϕ(t,Z1=a,Zi=a) (37)

when r(0) = r(1), we find

c=d=1L(Ld)(q1)d01ϕ(t,Z1=a,Zi=a)dtX1Xid=1L(Ld)(q1)d01ϕ(t,Z1=a,Zi=a)dt (38)

We first calculate ⟨XiXj⟩. The correlation is

XiXj=i1ipσ(si1sip)Δi1ipj1jpσ(sj1sjp)Δj1jp=(p!)2i1<<ipσ(si1sip)σ(si1sip)Δi1ip (39)

We initially neglect the Δ, as among the (Lp) different kinds, of σ, there are (Ldp) remaining unchanged, XiXj=Xi2(Ldp)(Lp)=(Ldp)(Lp) if dLp, otherwise it is 0. Now considering the connection matrix, if M = 0, the connections are randomly chosen, so we expect that the result does not change. If M = 1, all connections fall into small modules, and again the d changed spins are randomly distributed in each module, so out of the l spins in each module, dl/L spins have changed. Thus, in each module, out of the (lp) spins, (ldlLp) remain unchanged, so XiXj=Xi2(ldlLp)(lp)(ldlL)plp(Ld)pLp(Ldp)(Lp). For general M, for a given σ, consider that h spins fall out of the module, and ph will fall in the module. Among the (Llh) possibilities outside of the module, ((Ll)(Ld)Lh) remain unchanged, so the ratio of unchanged over all is is ((Ll)(Ld)Lh)(Llh)(Ld)hLh. For the (lph) possible choices inside the module, (l(Ld)Lph) is unchanged, so the ratio is (l(Ld)Lph)(lph)(Ld)phLph. So the probability that a σ is unchanged is (Ld)hLh×(Ld)phLph=(Ld)pLp(Ldp)(Lp). So for all M, XiXj=Xi2(Ldp)(Lp)=(Ldp)(Lp). Also, (Ld)(Ldp)(Lp)=(Lpd), so

c=d=1Lp(Lpd)(q1)d01ϕ(t,Z1=a,Zi=a)dtd=1L(Ld)(q1)d01ϕ(t,Z1=a,Zi=a)dt (40)

The integral part simplifies as

aaϕ(t,a,Z2,,Zi1,a,Zi+1,,ZqL)dZ2dZi1dZi+1dZqLϕ(t,Z1=a,Zi=a)

We write the joint distribution of the Gaussian variables as

f(x1,,xk)=1(2π)kΣe12(ZZ)TΣ1(ZZ) (41)

where Σ is the covariance matrix, and |Σ| is the determinant of Σ. For our particular case, where there are only two variables with unit variance and zero average, the covariance matris is given by

Σ=(Z12Z1Z2)Z1Z2Z22)=(1ρρ1) (42)

where ρ = ⟨Z1Z2⟩. So |Σ| = 1 − ρ2 and

Σ1=11ρ2(1ρρ1) (43)

It follows that

12(ZZ)TΣ1(ZZ)=Z12+Z222ρZ1Z222ρ2 (44)

When both variables equal a, it is a21+ρ. So putting everything into Eq. (41), the probability that both variables are a is ea2(1+ρ)1ρ2π. We calculate ρij(t)=[(1t)XiXj+tYiYj](1t+t)=tc+(1t)(Ldp)(Lp)=tc+(1t)(1dL)p.

Note that a=2L(1c)lnq, so Eq. (40) is a self-consistent equation

c=d=1Lp(Lpd)(q1)d01e2L(1c)lnq[1+tc+(1t)(1dL)p]1[tc+(1t)(1dL)p]2dtd=1L(Ld)(q1)d01e2L(1c)lnq[1+tc+(1t)(1dL)p]1[tc+(1t)(1dL)p]2dt (45)

The solution for L = 100, p = 2, and q = 2 is c = 0.331, so 1c=0.82. With p = 2, q = 2, and L = 1000, c = 0.330, the value of c near that for infinite L. We also applied this method to the pSK model. For p = 2, q = 2, the correlation is 1 − 4d(Ld)/L2. So

c=d=1L[14d(Ld)L2]01e2L(1c)lnq[1+tc+(1t)(1dL)p]1[tc+(1t)(1dL)p]2dtd=1L(Ld)01e2L(1c)lnq[1+tc+(1t)(1dL)p]1[tc+(1t)(1dL)p]2dt (46)

When p = 2, q = 2, and L = 100 we find c = 0.128, and Hmin = 0.777 × 2L, quite near the numerical result Hmin = 0.763 × 2L. This self-consistent method, thus, is fairly accurate.

For a given q, larger p lead to smaller c using Slepian’s lemma Eq. (25). To prove this, first assume Vi=Hpν,qGNK(Si) and Wi=Hpw,qGNK(Si) are GNK model variables with pV > pW. For any sequence Si, we group all other sequences according to the Hamming distance between them, so the group with Hamming distance d contains (Ld)(q1)d variables. Assume Sj has a Hamming distance d from Si, so ViVj=(LdpV)(LpV)=(LpVd)(Ld), WiWj=(LdpW)(LpW)=(LpWd)(Ld). As pV > pW, (LpVd)<(LpWd), so ⟨ViVj⟩ < ⟨WiWj⟩. As the Si is chosen randomly, the correlation between any pair of V is smaller than that of the corresponding pair of W, and according to Slepian’s lemma, the minimum of V is smaller. Thus, it is proved that larger p lead to smaller minima.

We calculate the results for p = 2 of different q. Shown in Table 1 is the result of L = 100, p = 2 and 3 ≤ q ≤ 20. We see that c decreases monotonically for increasing q in this range. We also calculated c for large q and L = 1000000, Table 2.

Table 1.

Self-consistent calculation of c as a function of q using Eq. (45). Here L = 100 and p = 2.

q 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
c 0.219 0.17 0.15 0.129 0.116 0.107 0.100 0.094 0.089 0.085 0.082 0.079 0.076 0.074 0.072 0.070 0.068 0.067

Table 2.

Self-consistent calculation of c as function of q using Eq. (45). Here L = 1000000 and p = 2.

q 40 80 160 320 640 1280 2560 5120 10240
c 0.049 0.038 0.031 0.026 0.022 0.019 0.016 0.014 0.013

It is apparent that all results for c fall below 0.33, so the minimum of GNK model will fall between 0.82×2Llnq and 2Llnq for any p and q. As 0.82 ≈ 1, we neglect this factor, i.e. conservatively assure that the fitness is positive, not merely non-negative. When ⟨H2⟩ = 2L / ln q, the minimum will be 2L.

In summary, for all models discussed in this appendix, a shift of 2L assures that the fitness is positive.

9 Appendix B: Calculation of Taylor Series Expansion for Average Fitness

We here describe how the coefficients in the Taylor series expansion of ⟨f(t)⟩ are calculated.

9.1 Organizing the Terms in the Taylor Series Expansion

We define f({na}) = Σni f(Si)ni/N, the average fitness of an individual of configuration {na}. The first order result of Eq. (2) is a linear combination of P({na}, t), which can be divided into three parts: f part, from natural selection; μ part, from mutation; ν part, from horizontal gene transfer. In a compact form

dPdt=LP=LfP+LμP+LνP (47)

and

dfdt={na}f({na})LP({na},t) (48)

In this way we obtain the form of higher order results, for example, the second order result can be expressed as

d2fdt2=ddtdfdt={na}f({na})L2P={na}f({na})(Lf+Lμ+Lν)(Lf+Lμ+Lν)P (49)

which is divided into 9 terms:

d2fdt2={na}f({na})(LfLf+LfLμ+LfLν+LμLf+LμLμ+LμLν+LνLf+LνLμ+LνLν)P (50)

Note that Lf, Lμ, Lν are not commutative with each other (but of course commutative with itself), for example LfLμLμLf, since these two correspond to different evolutionary processes of the population. As 2b=d2f(t)dt2t=0, we can divide 2b into nine terms, and name them Tff, T, T, Tμf, Tμμ, Tμν, Tνf, Tνμ, Tνν. Also note that the naming is in a sense inverted, for example Tfμ term, which comes from LfLμP, actually represents the process that a mutation happens before natural selection.

In this way, the third order term consists of 27 terms, and the r-th order term consists 3r terms in general. Each term can be named according to the order of L operators involved. Below we will discuss how to compute each part of an r-th order term. First we discuss eliminating terms that do not contribute, then we calculate terms for different models. We will start with the simplest 2-spin, 2-state model, and then discuss pSK model, planar Potts model, and GNK model.

9.2 Identification of the Terms that Vanish

The number of terms increases exponentially with order, so we would like to eliminate some terms that vanish from some considerations. We discuss this according to the initial conditions, that is, random initial sequences and identical initial sequences.

For both initial conditions, a term that does not contain natural selection processes vanishes. The reason is that the Taylor expansion results correspond to change of fitness, so it has a factor of Δf proportional to some linear combinations of H, which is in turn some linear combinations of J or σ. For terms that only contain mutations and horizontal gene transfers, the result is proportional to linear combinations of J or σ, which vanish when we take an average. Only when there is natural selection can J or σ be multiplied into second order or higher even order forms, which are non-zero when averaged. So only terms containing natural selections can contribute.

For the random initial sequences, the modular term appears in second order. From the principle above, the first order terms Tμ and Tν, and the second order terms Tμμ, Tμν, Tνμ and Tνν are all 0. In addition, for the T term, first an individual mutates then a natural selection happens. As the initial system is totally random, the mutation in the first step does not change the system, so this term is 0. Then, up to second order, there are five non-zero terms: Tf, Tff, T, Tμf and Tνf.

For the same initial sequences, the modular terms appear in the fourth order, meaning that we need to calculate 3 + 9 + 27 + 81 = 120 terms. Fortunately, the initial conditions are so special that we can greatly reduce our burden. As discussed above, terms not containing f are automatically zero, so 120 − 2 − 4 − 8 − 16 = 90 terms can be non-zero. In addition, if natural selection or horizontal gene transfer process happens first without a mutation, then nothing is changed as every sequence is initially the same, making this term zero. So any term not ending with μ is zero, leaving behind 0 + 1 + 5 + 19 = 25 non-zero terms: 0 first order term, 1 second order term T, 5 third order terms satisfying three-letter-array ending with μ and containing a f in the first two letters and 19 fourth order terms satisfying four-letter-array ending with μ and containing a f in the first three letters. Additionally, for a term starting with ν (the last process is horizontal gene transfer), if there were fewer than 2 mutational processes before horizontal gene transfer, then the term is zero. The reason is that if only one mutation happened, all mutated individuals are the same, so a horizontal gene transfer changes the population only when it involves a mutated individual and an unmutated individual. And for a change to occur, the horizontal gene transfer must transfer the part of the sequence that is mutated. The probability of the unmutated one becoming a mutated one through horizontal gene transfer is the same as the mutated one becoming an unmutated one, and the change of fitness of these two processes cancel, so the contribution is zero. In this way, Tνfμ is zero, and Tνffμ, Tνfνμ and Tννfμ is zero. An additional two terms, Tμνfμ and Tνμfμ are found to be zero after calculation, so there is one non-zero second order term, four non-zero third order terms, and fourteen non-zero fourth order terms, totaling nineteen non-zero terms.

9.3 The p = 2 SK Model with Random Initial Sequences

To illustrate the calculation for the random initial sequences, we use Tf term as an example.

Lfn1,,n2L=abnanbNfa(na+1,,nb1na,,nb) (51)

So

Tf={na}f({na})LfP({na},0)={na}P({na},0)abnanbNfa[f(na+1,,nb1)f(na,,nb)]={na}P({na},0)abnanbNfafafbN=abnanbNfafafbN=abnanbNfaHaHbN=abnanbNHaHaHbN (52)

The last equation holds because average over first order terms of H is always zero. As the initial sequences are totally random, when we pick out a particular individual a, we expect that from the view of a, the other N − 1 individuals are totally random, so their H is uncorrelated with that of a. As ⟨H⟩ = 0, Σb nbHaHb = 0.

So

Tf=abnanbNHaHaHbN=abnanbHa2N2=N(N1)N2Ha2=(11N)ijklJijJklΔijΔklsisjsksl=2(11N)ijΔijC=2L(11N) (53)

and

a=Tf (54)

Similarly, we can obtain,

Tff=8L2(11N)NTμf=8μL(11N)Tfν=4νL(11N)[M+(1M)K]NTνf=4νL(11N)(13N)(11K)(M1) (55)

and

2b=Tff+Tμf+Tfν+Tνf (56)

9.4 The p = 2 SK model with Identical Initial Sequences

To illustrate how to calculate the terms for identical initial sequences we use Tfμ term as an example. We assume the initial sequences are S0, and the initial state is {na}0 = (N, 0, …, 0) = |e,0⟩. Lμ takes the state to

LμNδe,0=μNa=0[(N1)δe,0+δe,aNδe,0] (57)

A subsequent Lf takes the state to

LfLμNδe,0=μNLfa=0[(N1)δe,0+δe,aNδe,0]=μNa=0[N1Nf(S0)(Nδe,0(N1)δe,0+δe,a)+N1Nf(Sa)((N2)δe,0+2δe,a(N1)δe,0+δe,a)]=μ(N1)a=0f[(S0)(Nδe,0(N1)δe,0+δe,a)+f(Sa((N2)δe,0+2δe,a(N1)δe,0+δe,a)] (58)

So after two operations, P(|e,0⟩, 0) = μ(N − 1)Σa=∂0 f(S0), P (|(N − 1)δe,0 + δe,a⟩, 0) = −μ(N − 1) Σa=∂0 (f(Sa) + f(S0)) and P ((N − 2)δe,0 + 2δe,a⟩, 0) = μ(N − 1) Σa=δ0 f(Sa), we find

Tfμ={na}f({na})LfLμP({na},0)=f(Nδe,0)P(Nδe,0,0)+f((N1)δe,0+δe,a)P((N1)δe,0+δe,a,0)+f((N2)δe,0+2δe,a)P((N2)δe,0+2δe,a,0)=μ(11N)a=0[Nf(S0)2(N1)f(S0)(f(S0)+f(Sa))f(Sa)(f(S0)+f(Sa))+(N2)f(Sa)f(S0)+2f(Sa)2]=μ(11N)a=0(f(Sa)f(S0))2 (59)

in which

a=0[f(Sa)f(S0)]2=a=0ijklJijJklΔijΔkl[1(12δai)(12δaj)]×[1(12δak)(12δal)] (60)

if we average over JijJkl, we find

a=0[f(Sa)f(S0)]2=a=0ijklJijJklΔijΔkl[1(12δai)(12δaj)]×[1(12δak)(12δal)]=a=0ijkl(δikδjl+δilδjk)(1δij)ΔijΔklC×[1(12δai)(12δaj)][1(12δak)(12δal)]=2a=0ijΔij[1(12δai)(12δaj)]2C=8a=0ijΔij(δai+δaj)C=16L (61)

So

Tfμ=16μL(11N) (62)

and

2b=Tfμ (63)

Similarly, we find

Tfμμ=128μ2L(11N)Tfνμ=32μνL(11N)NTffμ=64μL2(11N)NTμfμ=64μ2L(11N)Tfffμ=256μL3(11N)N2+128μL2(11N)N2+256μL(11N)(318N+23N2)Tffμμ=512μ2L2(11N)NTffνμ=128μνL2(11N)N2Tfμfμ=512μ2L2(11N)NTfμμμ=1024μ3L(11N)Tfμνμ=256μ2νL(11N)NTfνfμ=128μνL2(11N)N2Tfνμμ=128μ2νL(11N)[2+(1M)(11K)]NTfννμ=64μν2L(11N)N2Tμffμ=256μ2L2(11N)NTμfμμ=512μ3L(11N)Tμfνμ=128μ2νL(11N)NTμμfμ=256μ3L(11N)Tνfμμ=128μ2νL(11N)(13N)(1M)(11K) (64)

and

(3!)c=Tfμμ+Tfνμ+Tffμ+Tμfμ(4!)d=Tfffμ+Tffμμ+Tffνμ+Tfμfμ+Tfμμμ+Tfμνμ+Tfνfμ+Tfνμμ+Tfννμ+Tμffμ+Tμfμμ+Tμfνμ+Tμμfμ+Tνfμμ (65)

9.5 The pSK Interaction

For the p-spin interaction, the relationship between different Ji1ip is quite similar to the p = 2 case, and the principles eliminating zero terms are the same. Moreover, the physical processes corresponding to each Taylor expansion term remain the same, so we just need to change the form of the H. For example, to obtain Tfμ term of same initial conditions, Eq. (59) still holds, but we need to use the new H to calculate Σa=∂0[f(Sa) − f(S0)]2.

For the new form,

a=0[f(Sa)f(S0)]2=a=0i1ipj1jpJ11ipJj1jpΔi1ipΔj1jp×[1Πq=1p(12δa,iq)][1Πq=1p(12δa,jq)]=a=0i1ipp!2Cp!(2q=1pδa,iq)2Δi1ip=8Ca=0i1ipΔi1ipi=1pδa,iq=8pCi1ipΔi1ip=8pL (66)

So T = 8μpL(1 − 1/N). In this way, we can obtain for p-spin interaction random initial sequences,

Tf=2L(11N)Tff=8L2(11N)NTμf=4μpL(11N)Tfν=4νL(11N)(M+(1K)p1(1M))NTνf=2pνL(11N)(13N)(1(1K)p1)(M1) (67)

and

a=Tf2b=Tff+Tμf+Tfν+Tνf (68)

Also, we find for initial conditions of identical sequences,

Tfμμ=64μ2pL(11N)Tfνμ=16μνpL(11N)NTffμ=32μpL2(11N)NTμfμ=16μ2p2L(11N)Tfffμ=128μpL3(11N)N2+64μpL2(11N)N264μp2L(11N)(318N+23N2)Tffμμ=128μ2p2L2(11N)NTffνμ=64μνpL2(11N)N2Tfμfμ=128μ2p2L2(11N)NTfμμμ=128μ3p3L(11N)Tfμνμ=64μ2νp2L(11N)NTfνfμ=64μνpL2(11N)N2Tfνμμ=64μ2νL(11N)[p2+p(p1)(1M)(11K)]NTfννμ=32μν2pL(11N)N2Tμffμ=64μ2p2L2(11N)NTμfμμ=64μ3p3L(11N)Tμfνμ=32μ2νp2L(11N)NTμμfμ=32μ3p3L(11N)Tνfμμ=64μ2νp(p1)L(11N)(13N)(1M)(11K) (69)

and

a=Tf(2!)b=Tff+Tμf+TfνTνf(3!)c=Tfμμ+Tfνμ+Tffμ+Tμfμ(4!)d=Tfffμ+Tffμμ+Tffνμ+Tfμfμ+Tfμμμ+Tfμνμ+Tfνfμ+Tfνμμ+Tfννμ+Tμffμ+Tμfνμ+Tμμfμ+Tνfμμ (70)

9.6 The Planar Potts Model with Random Initial Sequences

The non-zero terms are still Tf, Tff, Tμf, T and Tνf. As ⟨H2⟩ is changed, all terms will also change. In addition, the Tμf term has a mutational process, which depends on the number of directions a spin can have. We assume that after a mutation, a spin randomly chooses a different direction as before. Using methods similar to Eq. (52), we find Tμf = μΣ∂a(1 − 1/N)⟨Ha(H∂aHa)⟩. Considering the different directions, we find

aHa(HaHa)=aijJijΔijsisjcosθijklJklΔklsksl(cosθklcosθkl)=aij21CΔijcosθij(cosθijcosθij) (71)

where θij is the same as θij if neither i nor j is mutated, otherwise θij has the same probability to be any allowed value other than θij. So we only need to consider the case when either i or j is mutated, and obtain an extra factor of 2 from this,

aij21CΔijcosθij(cosθijcosθij)=4CijΔijcosθij(cosθijcosθij) (72)

and

cosθijcosθij=1q1rscosθrcosθs=1q1(rcosθrcosθs)cosθs=1q1cos2θs (73)

Then,

Ha(HaHa)=4CijΔijcosθij(cosθijcosθij)=4CijΔij(1q11)cos2θ=4Lqq1cos2θ=2Lqq1(1+δq,2) (74)

So

Tμf=2μL(11N)qq1(1+δq,2) (75)

The other terms are

a=Tf=L(11N)(1+δq,2) (76)
Tff=4(1+δq,2)L2(11N)NTμf=2(1+δq,2)μL(11N)qq1Tfν=2(1+δq,2)νL(11N)[M+(1M)K]NTνf=2(1+δq,2)νL(11N)(13N)(11K)(M1) (77)

and

2b=Tff+Tμf+Tfν+Tνf (78)

9.7 GNK Model Calculation

The processes corresponding to different terms are still the same, but for the GNK model, as the H is quite different, the Taylor expansion results will change. For example, for two randomly chosen sequences Sa and Sb, their correlation will be non-zero. Instead, it will be

HaHb=i1ipσi1ip(si1asipa)Δi1ipj1jpσj1jp(si1bsipb)Δj1jp=(p!)2i1<<ipσi1ip(si1asipa)σi1ip(si1bsipb)Δi1ip=(p!)2i1<<ip1qpσ2Δi1ip=p!i1ip1qpσ2Δi1ip=p!1qp2p!ClnqLC=2Lqplnq (79)

where the 1/qp factor comes from the fact that only when the states of all corresponding spins match can the correlations of σ be nonzero.

Similarly we calculate all terms and obtain

a=Tf=2L(11N)(11qp)lnq (80)

and

2b=Tff+Tμf+Tfν+TνfTff=8L2(11N)Nlnq(11qp)Tμf=2μpL(11N)lnqTfν=4νK(11N)Nlnq[L(1M)(11K+qKq)p+LMK+L(11K)Mqp]Tνf=2νKlnq(M1)(11N)(13N)×[1+1qp(11K+qKq)p(qqK+1Kq)p] (81)

10 Appendix C: Calculation of the Taylor Series Expansion for the Sequence Divergence

We here describe how the Taylor expansion series of sequence divergence Eq. (4) are calculated.

As the divergence is D=1Nα=1NLSα(t)Sα(0)2, it is determined by the changes to the sequences of the population, which can be tracked using Eq. (2). The order of the terms corresponds to the number of processed involved, for example, second order terms involve two processes. Using conventions developed in section 9.1, we divide the terms according to what evolutionary processes it involves, for example, the term which is the result of a mutational process followed by a horizontal gene transfer is called Dνμ, similar to the naming norm used in section 9.1. So

α=Df+Dμ+Dν(2!)β=Dff+Dfμ+Dfν+Dμf+Dμμ+Dμν+Dνf+Dνμ+Dνν (82)

We use Df term as an example. From Eq. (51), after a natural selection process, one sequence Sb is replaced by sequence Sa. If it is replaced by itself, nothing is changed. Otherwise, as the initial sequences is totally random, the number of sites changed is on average L/2, and the probability of this is ⟨f(a)⟩(1-1/N) = 2L(1−1/N). As in the whole population, only this sequence is changed, the divergence can be calculated as

Df=1NLSb(t)Sb(0)2=2L(11N)L(L2L2)2=L2(11N) (83)

Similarly, we can obtain other terms,

Dμ=μLDν=νL(11N)2Dff=2L3(11N)+L2(11N)(13N)Dfμ=Dμf=2μL2(11N)Dfν=Dνf=νL2(11N)Dμμ=2μ2LDμν=Dνμ=μνL(11N)Dνν=ν2L(11N)2 (84)

Adding these terms together gives Eq. (4).

References

  • [1].Waddington CH. Canalization of development and the inheritance of acquired characters. Nature. 1942;150:563–565. doi: 10.1038/1831654a0. [DOI] [PubMed] [Google Scholar]
  • [2].Simon HA. The architecture of complexity. Proc. Amer. Phil. Soc. 1962;106:467–482. [Google Scholar]
  • [3].Hartwell LH, Hopfield JJ, Leibler S, Murray AW. From molecular to modular cell biology. Nature. 1999;402:C47–C52. doi: 10.1038/35011540. [DOI] [PubMed] [Google Scholar]
  • [4].Rojas R. Neural Networks: A Systematic Introduction. Springer; New York: 1996. Ch 16. [Google Scholar]
  • [5].Grohmann E. Horizontal gene transfer between bacteria under natural conditions. In: Ahmad I, Ahmad F, Pichtel J, editors. Microbes and Microbial Technology. Springer; New York: 2011. pp. 163–187. [Google Scholar]
  • [6].Gogarten MB, Gogarten JP, Olendzenski L, editors. Horizontal Gene Transfer: Genomes in Flux. Methods in Molecular Biology. Vol. 532. Humana Press; New York: 2009. [Google Scholar]
  • [7].Chia N, Goldenfeld N. Statistical mechanics of horizontal gene transfer in evolutionary ecology. J. Stat. Phys. 2011;142:1287–1301. [Google Scholar]
  • [8].Breen MS, et al. Epistasis as the primary factor in molecular evolution. Nature. 2012;490:535–538. doi: 10.1038/nature11510. [DOI] [PubMed] [Google Scholar]
  • [9].Sun J, Deem MW. Spontaneous emergence of modularity in a model of evolving individuals. Phys. Rev. Lett. 2007;99:228107. doi: 10.1103/PhysRevLett.99.228107. [DOI] [PubMed] [Google Scholar]
  • [10].Kashtan N, Parter M, Dekel E, Mayo AE, Alon U. Extinctions in heterogeneous environments and the evolution of modularity. Evolution. 2009;63:1964–1975. doi: 10.1111/j.1558-5646.2009.00684.x. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • [11].Park J-M, Deem MW. Schwinger boson formulation and solution of the Crow-Kimura and Eigen models of quasispecies theory. J. Stat. Phys. 2006;125:975–1015. [Google Scholar]
  • [12].Cohen E, Kessler DA, Levine H. Recombination dramatically speeds up evolution of finite populations. Phys. Rev. Lett. 2005;94:098102. doi: 10.1103/PhysRevLett.94.098102. [DOI] [PubMed] [Google Scholar]
  • [13].Goyal S, Balick DJ, Jerison ER, Neher RA, Shraiman BI, Desai MM. Dynamic mutationselection balance as an evolutionary attractor. Genetics. 2012;191:1309–1319. doi: 10.1534/genetics.112.141291. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • [14].Derrida B, Peliti L. Evolution in a flat fitness landscape. Bull. Math. Biol. 1991;53:355–382. [Google Scholar]
  • [15].Bianconi G, Fichera D, Franz S, Peliti L. Modeling microevolution in a changing environment: the evolving quasispecies and the diluted champion process. J. Stat. Mech. 2011;2011:P08022. [Google Scholar]
  • [16].Park J-M, Deem MW. Phase diagrams of quasispecies theory with recombination and horizontal gene transfer. Phys. Rev. Lett. 2007;98:058101. doi: 10.1103/PhysRevLett.98.058101. [DOI] [PubMed] [Google Scholar]
  • [17].Munoz ET, Park J-M, Deem MW. Quasispecies theory for horizontal gene transfer and recombination. Phys. Rev. E. 2008;78:061921. doi: 10.1103/PhysRevE.78.061921. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • [18].Avetisyan Z, Saakian DB. Recombination in one- and two-dimensional fitness landscapes. Phys. Rev. E. 2010;81:051916. doi: 10.1103/PhysRevE.81.051916. [DOI] [PubMed] [Google Scholar]
  • [19].Saakian DB. Evolutionary advantage via common action of recombination and neutrality. Phys. Rev. E. 2013;88:052717. doi: 10.1103/PhysRevE.88.052717. [DOI] [PubMed] [Google Scholar]
  • [20].Saakian DB, Kirakosyan Z, Hu CK. Biological evolution in a multidimensional fitness landscape. Phys. Rev. E. 2012;86:031920. doi: 10.1103/PhysRevE.86.031920. [DOI] [PubMed] [Google Scholar]
  • [21].Dotsenko VS. Fractal dynamics of spin glasses. J. Phys. C: Solid State Phys. 1985;18:6023–6031. [Google Scholar]
  • [22].Park J-M, Niestemski LR, Deem MW. Quasispecies theory for evolution of modularity. 2014 doi: 10.1103/PhysRevE.91.012714. DOI: 10.1103/PhysRevE.00.002700. arXiv:1211.5646. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • [23].Smith GJD, Vijaykrishna D, Bahl J, Lycett SJ, Worobey M, Pybus OG, Ma SK, Cheung CL, Raghwani J, Bhatt S, Malik Peiris JS, Guan Y, Rambaut A. Origins and evolutionary genomics of the 2009 swine-origin h1n1 influenza a epidemic. Nature. 2009;459:1122–1125. doi: 10.1038/nature08182. [DOI] [PubMed] [Google Scholar]
  • [24].Rambaut A, Pybus OG, Nelson MI, Viboud C, Taubenberger JK, Holmes EC. The genomic and epidemiological dynamics of human influenza a virus. Nature. 2008;453:615–619. doi: 10.1038/nature06945. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • [25].Marshall N, Priyamvada L, Ende Z, Steel J, Lowen AC. Influenza virus reassortment occurs with high frequency in the absence of segment mismatch. PLoS Pathog. 2013;9:e1003421. doi: 10.1371/journal.ppat.1003421. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • [26].Trifonov V, Khiabanian H, Rabadan Raul. Geographic dependence, surveillance, and origins of the 2009 influenza a (h1n1) virus. N. Engl. J. Med. 2009;361:115–119. doi: 10.1056/NEJMp0904572. [DOI] [PubMed] [Google Scholar]
  • [27].Łuksza M, L̈assig M. A predictive fitness model for influenza. Nature. 2014;507:57–61. doi: 10.1038/nature13087. [DOI] [PubMed] [Google Scholar]
  • [28].Smith DJ, Lapedes AS, de Jong JC, Bestebroer TM, Rimmelzwaan GF, Osterhaus ADME, Fouchier RAM. Mapping the antigenic and genetic evolution of influenza virus. Science. 2004;305:371–376. doi: 10.1126/science.1097211. [DOI] [PubMed] [Google Scholar]
  • [29].Gupta V, Earl DJ, Deem MW. Quantifying influenza vaccine efficacy and antigenic distance. Vaccine. 2006;24:3881–3888. doi: 10.1016/j.vaccine.2006.01.010. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • [30].He J, Deem MW. Low-dimensional clustering detects incipient dominant influenza strain clusters. PEDS. 2010;23:935–946. doi: 10.1093/protein/gzq078. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • [31].Deem MW, Lee H-Y. Sequence space localization in the immune system response to vaccination and disease. Phys. Rev. Lett. 2003;91:068101. doi: 10.1103/PhysRevLett.91.068101. [DOI] [PubMed] [Google Scholar]
  • [32].Wu FY. The potts model. Rev. Mod. Phys. 1982;54:235–268. [Google Scholar]
  • [33].Munoz ET, Park J-M, Deem MW. Solution of the crow-kimura and eigen models for alphabets of arbitrary size by schwinger spin coherent states. J. Stat. Phys. 2009;135:429–465. [Google Scholar]
  • [34].Wigner PE. On the distribution of the roots of certain symmetric matrices. Annals of Mathematics. 1958:325–327. [Google Scholar]
  • [35].Li WV, Shao Q-M. Gaussian processes: inequalities, small ball probabilities and applications. Stochastic processes: theory and methods. 2001;19:533–597. [Google Scholar]
  • [36].Kim S-Y, Lee S-J, Lee J. Ground-state energy and energy landscape of the sherrington-kirkpatrick spin glass. Phys. Rev. B. 2007;76:184412. [Google Scholar]
  • [37].de Oliveira VM, Fontanari JF. Landscape statistics of the p-spin ising model. Journal of Physics A: Mathematical and General. 1997;30:8445–8457. [Google Scholar]
  • [38].Grest GS, Soukoulis CM. Ground-state properties of the infinite-range vector spin-glasses. Physical Review B. 1983;28:2886–2889. [Google Scholar]
  • [39].Kosterlitz JM, Thouless DJ, Jones RC. Spherical model of a spin-glass. Phys. Rev. Lett. 1976;36:1217–1220. [Google Scholar]
  • [40].Pisier G. The volume of convex bodies and Banach space geometry. Vol. 94. Cambridge University Press; New York: 1999. [Google Scholar]
  • [41].Owen DB, Steck GP. Moments of order statistics from the equicorrelated multivariate normal distribution. The Annals of Mathematical Statistics. 1962;33:1286–1291. [Google Scholar]

RESOURCES