Logo of pnasPNASInfo for AuthorsSubscriptionsAboutThis Article
Proc Natl Acad Sci U S A. 2004 Aug 31; 101(35): 12957–12962.
Published online 2004 Aug 23. doi:  10.1073/pnas.0402177101
PMCID: PMC516501

Modeling the site-specific variation of selection patterns along lineages


The unambiguous footprint of positive Darwinian selection in protein-coding DNA sequences is revealed by an excess of nonsynonymous substitutions over synonymous substitutions compared with the neutral expectation. Methods for analyzing the patterns of nonsynonymous and synonymous substitutions usually rely on stochastic models in which the selection regime may vary across the sequence but remains constant across lineages for any amino acid position. Despite some work that has relaxed the constraint that selection patterns remain constant over time, no model provides a strong statistical framework to deal with switches between selection processes at individual sites during the course of evolution. This paper describes an approach that allows the site-specific selection process to vary along lineages of a phylogenetic tree. The parameters of the switching model of codon substitution are estimated by using maximum likelihood. The analysis of eight HIV-1 env homologous sequence data sets shows that this model provides a significantly better fit to the data than one that does not take into account switches between selection patterns in the phylogeny at individual sites. We also provide strong evidence that the strength and the frequency of occurrence of selection might not be estimated accurately when the site-specific variation of selection regimes is ignored.

Keywords: positive selection, codon-based model of nucleotide substitutions, phylogeny, maximum likelihood

An excess of nonsynonymous changes to synonymous changes in protein-coding DNA sequences is an unambiguous signature of adaptive molecular evolution (1). Such a pattern is best explained by a selective advantage in the past for substitutions that cause amino acid changes. Indeed, there are numerous examples where substitutions causing amino acid changes confer a selective advantage. For example, in the MHC, overdominant selection appears to be responsible for the excess of replacement substitutions in the antigen-recognition site (1). Similarly, positive selection has been detected in viral proteins subject to immune surveillance (24), in abalone sperm lysins (5), primate lysozymes (6), and regions involved in species-specific sperm–egg interaction (7).

A number of methods have been proposed to estimate the number of nonsynonymous and synonymous substitutions per site between two homologous sequences (e.g., refs. 810). These approaches aim to estimate the ratio between the number of nonsynonymous (and synonymous) substitutions per codon and the number of nonsynonymous (and synonymous) mutations per codon. Simulations have shown that some of these methods provide reliable average estimates of the nonsynonymous/synonymous rate ratio (10). However, these approaches assume that amino acids in the sequence evolve under the same selection pressure. This assumption is unrealistic because only a few amino acid sites are found to be responsible for adaptive evolution in almost all proteins that evolve under positive selection (1, 2, 11). As a result, these methods have little power in detecting positive selection when analyzing real data sets (e.g., refs. 1214).

Nielsen and Yang (2) described a codon-based model of nucleotide substitutions that allows the selection process to vary among sites. This model is very similar in its structure to the one proposed earlier by Goldman and Yang (15). These authors describe the substitutions at the codon level as a continuous-time Markov chain, with a state space on the 61 sense codons. Under such a model, a (codon) site evolves under purifying, neutral, or positive selection. The nonsynonymous/synonymous substitution rate ratio varies across these different classes of selection. For example, an amino acid position that is evolving under strong purifying selection should have a small nonsynonymous/synonymous substitution rate ratio, whereas a position under positive selection should exhibit a nonsynonymous/synonymous rate ratio of >1. The parameters of the model explored by Nielsen and Yang (2), and later by Yang et al. (16), include the nonsynonymous/synonymous rate ratio for each selection class of substitution, frequency parameters that are interpreted as the prior probability that a site falls into any specific selection category, and parameters such as the equilibrium codon frequencies and transition/transversion rate ratio that are intended to describe the vagaries of the substitution process beyond the most basic ones of selection pressures on nonsynonymous and synonymous substitutions. All of these parameters can be estimated from alignments of protein-coding DNA sequences by using either a maximum-likelihood or a fully Bayesian approach. The analysis of real data sets suggests that this approach is more efficient than pairwise-based methods for detecting positive selection at the protein level (e.g., ref. 14).

In the widely used codon models described by Nielsen and Yang (2), and by Yang et al. (16), the selection process does not vary along lineages of the phylogeny. This constraint is probably unrealistic because several studies have demonstrated that switches between selection processes, or variation of the selection intensity, are likely to occur (e.g., refs. 4, 6, and 1719). Yang and Nielsen (20) proposed a test for positive selection at some branches of the phylogeny, while simultaneously allowing selection to vary among sites. However, under their model, branches with a different pattern of positive selection must be specified a priori. This model is especially useful when one wants to test for an association between speciation (19) or gene-duplication (20, 21) events and positive selection. Similarly, Forsberg and Christiansen (22) described a codon-based model of substitution that allows nonoverlapping subtrees of the phylogeny to evolve under different selection patterns. Again, the parts of the tree that undergo different selection regimes must be specified a priori. The authors demonstrated that this model is well suited for analyzing how selection acts on variants of a parasite's genes in different hosts.

Whereas earlier studies (4, 6, 1723) demonstrate that switches between selection patterns across lineages are likely to occur, little is known about the rates at which these changes happen. Indeed, current methods make it difficult to evaluate how frequently variable selection over time leaves an identifiable footprint in alignments of homologous protein-coding sequences. Moreover, the variation of selection processes during the course of evolution may show different patterns, depending on the site to be considered. For example, independent convergent/parallel evolution events might occur in distinct lineages at different sites. In this case, models that define lineages where molecular adaptation occurred a priori are not well suited.

In this paper, we generalize a codon-based model of DNA substitution to allow selection to change over time. Unlike previous approaches, our model does not constrain switches among selection categories to any particular lineage a priori. Instead, the switch between one selection regime and another at a given codon position is a stochastic process, mediated presumably by external forces. This approach is similar to the one followed by Tuffley and Steel (24) for modeling the site-specific variation of substitution rates. Our model has been implemented in the maximum-likelihood framework. Because the traditional model is a special case of our more general model, we could perform likelihood-ratio tests of the null hypothesis that the site-specific selection regime remains constant across lineages.

The analysis of eight HIV-1 env sequence data sets shows that our model provides a statistically significant better description of these data than does the traditional model. We also argue that the role played by negative selection is underestimated when site-specific selection process varies across lineages and is ignored. Finally, a site-by-site analysis demonstrates that our approach can be used to detect episodic adaptive events at individual amino acid position.


The Model. Our codon-based substitution model combines two processes. As with other models [e.g., Nielsen and Yang (2)], we allow substitutions between codons to occur under one of three selection regimes (purifying, neutral, and positive selection). However, we also allow changes between selection classes (or switches) to occur according to a continuous-time Markov chain. In the following description, we will first describe the assumptions we make about the substitution process, and then detail the switching process. Finally, we will describe the combined substitution/switching process.

Substitutions between codons are modeled as a continuous-time Markov process. The instantaneous rate of change from one sense codon to another is described by a 61 × 61 rate matrix. Following examples in earlier work (15), we parameterize the rate matrix as:

equation M1

where Qx(ij) is the rate of change from codon i to codon j when sequences evolve under selection pattern x, ωx is the nonsynonymous/synonymous rate ratio that characterizes selection process x, and πj is the stationary frequency of codon j. For each i and j, πi, πj, and Qx(ij) remain constant through time and πi Qx(ij) = πj Qx(ji). The matrix Qx = {Qx(ij)} therefore defines a stationary, homogeneous, and time-reversible Markov process of substitution between codons.

We consider two parameterizations of the substitution model. Both parameterizations have three classes of nonsynonymous/synonymous rate ratios. The first was described by Nielsen and Yang (2) and was later designated the “M2” model by Yang et al. (16). Under this model, nonsynonymous mutations are strongly deleterious and eliminated under the first selection pattern (x = 1), so that ω1 = 0. Rates of nonsynonymous and synonymous substitutions are equal under the second selection process (x = 2), so that ω2 = 1. Nonsynonymous mutations provide a selective advantage under the third selection process (x = 3), so that ω3 > 1. The second parameterization we consider was designated the “M3” model by Yang et al. (16). The nonsynonymous/synonymous rate ratio is less constrained under this model; the only constraint is that ω1 < ω2 < ω3.

Substitutions between selection classes are governed by a three-state continuous-time Markov process with rate matrix

equation M2

The element R(xy) on the xth row and yth column of R corresponds to the rate of switching between selection processes x and y. The parameter δ is the rate of interchange between selection patterns and px is the equilibrium frequency of selection process x. The α and β parameters are two relative rate ratios with important biological meanings; values of α >1 indicate that switches between negative and positive selection occur more frequently than switches between negative selection and a neutral process of molecular evolution. The comparison of these relative rates might be relevant. For example, Messier and Stewart (6) have shown that adaptive episodes (i.e., positive selection) during the evolution of primate lysozyme were followed by episodes of negative selection. A value of α >1 and also greater than β would confirm this observation. For each x and y, px, py, and R(xy) remain constant through time, and px R(xy) = py R(yx). Hence, the process describing switches between selection classes follows a stationary, homogeneous, and time-reversible stochastic process.

The combined substitution and switching process may be formulated in terms of a single continuous-time Markov chain with stationary distribution (p1 π1,..., p1 π61, p2 π1,..., p2 π61, p3 π1,..., p3 π61), and rate matrix

equation M3

where I denotes the 61 × 61 identity matrix. It is straightforward to demonstrate that S is stationary, time-reversible, and homogeneous whenever Q1, Q2, Q3, and R are. The matrix S is scaled so that time is measured by an expected number of codon substitutions per amino acid position. The transition probabilities from state i to state j on a branch of length v are contained in a 183 × 183 matrix designated Pv. The matrix Pv is calculated by using the following matrix exponentiation: Pv = eSv. The probability of observing each site pattern (given a phylogenetic tree and the values of the parameters) under the combined substitution/switch process can be calculated by using Felsenstein's pruning algorithm (25).

Note that the model described here has only three additional parameters (δ, α, and β) as compared with the traditional model. Moreover, the models are nested: the traditional model arises as the switching rate tends to zero (δ → 0). This nesting of the models allows us to apply likelihood ratio tests of the following null hypotheses: H1, there is no switching among selection categories; and H2, there is no bias in the switching pattern among selection categories. The likelihood ratio test statistic, minus twice the difference in the log likelihoods under the null hypothesis and the more general alternative hypothesis, asymptotically follows a 50:50 mixture of equation M4 and equation M5 distributions for H1 and a equation M6 distribution for H2 [see Self and Liang (26)].

It is also worthwhile to note that the switching model of codon substitution is identical in its structure to the covarion model described by Tuffley and Steel (24). Whereas a covarion process takes into account site-specific variation of substitution rates in a phylogenetic tree, our model describes site-specific variation of selection forces along lineages.

Codon models with switches among categories are designated with “+S1” when α = β = 1 or with “+S2” when α and β are free to vary. For example, “M2+S1” designates the model of codon substitution described by Nielsen and Yang (2), allowing switching among categories under the constraint that α = β = 1, and “M3+S2” designates the M3 model first described by Yang et al. (16), while allowing for a potentially biased pattern of switching among selection categories. “M2+S” designates any switching model derived from M2. “M3+S” is defined in a similar manner.

Detection of Positively Selected Sites. Under M2 or M3, the posterior probability of a given selection class at some site can be estimated by using either an empirical Bayesian approach (2) or a fully Bayesian one (27). The category that maximizes the posterior probability is the most likely selection process to have acted at the corresponding site. For switching models, one cannot rely on a site remaining in any particular selection category through time. Instead, we calculate the expected fraction of time that selection process spends in a particular class. Therefore, these models can be used to detect sites in the alignment where positive selection is likely to have occurred in most of the lineages.

Let dz(v, x, y) be the amount of time that the process dwells on selection regime z on a branch of length v, with x and y being the selection patterns at both ends of this branch. We have

equation M7

where pxz(s) is the probability of change from selection process x to z after s codon substitution events; pzy(vs) and pxy(v) are defined in a similar manner. These probabilities can be derived from Pv, or from the calculation of the matrix eRv. Conditional on the selection class x at one end of a branch of length v and class y at the other end, the probability of finding the switch process in state z is then Pr(z| x, y, v) = E[dz(v, x, y)]/v.

Of course, one cannot be certain that the selection regimes x and y really occur at either end of the branch. Therefore, the expected frequency of the selection regime z is a weighted average over all possibilities of states x and y at either end of the branch, conditional on the observed codon states at the tips of the tree.

By using this approach, we are able to calculate two important quantities: (i) the expected frequency of the positive selection regime on a branch-by-branch basis, for each site of the alignment and (ii) the probability that a site is under positive selection over the entire phylogenetic history of the group by taking the expected time of occurrence of the positive selection pattern for the entire tree and dividing that number by the expected number of codon substitutions at this site (i.e., the sum of the branch lengths).

Data. We analyzed partial env sequences from HIV-1 (C2-V5) that had been obtained in a longitudinal study (28). These data sets are derived from samples that were collected on average every 8 months from eight infected patients. Sequences were aligned collectively by using clustalx (29) and were then manually adjusted within subjects. Gaps were removed in a balanced manner to preserve codon alignment (30). An earlier study (4) of the eight homologous sequence alignments using traditional codon models of substitution showed that the broad genetic diversity of HIV-1 in infected individuals is a consequence of site-specific positive selection, a likely consequence of immune recognition.

Parameter Estimation. An initial phylogeny was estimated for each of the eight data sets by using maximum likelihood under the general time-reversible model of nucleotide substitution (a model that allows four states) with the program phyml (31). Among-site rate variation was modeled by using a discrete gamma distribution (32).

The tree topologies were considered fixed during the estimation of the codon model parameters. The equilibrium frequencies of codons (πi) were estimated by using the observed frequencies of the nucleotides at the three codon positions. The other parameters of the model; branch lengths, transition/transversion rate ratio (κ), equilibrium frequencies of the selection classes (pxs), switching parameters (δ, α, and β), and nonsynonymous/synonymous rate ratios (ωs), were estimated by means of maximum likelihood by using a program written by S.G., which is available on request.


Likelihood Analysis. Table 1 shows the maximum values of the log likelihood (lnL), nonsynonymous/synonymous rate ratios (ω1, ω2, and ω3) and equilibrium frequencies of the three selection classes (p1, p2, and p3) obtained under the six models examined in this study, for the eight HIV-1 env data sets. We first tested the null hypothesis that switching between selection categories did not occur during the history of these sequences.

Table 1.
Likelihood analysis of eight HIV-1 env gene sequence data sets

Under the hypothesis that M2 describes perfectly the substitution process, twice the difference of log likelihoods obtained under M2 and M2+S1 asymptotically follows a 50:50 mixture of equation M8 and equation M9 distributions (see Methods). The same holds true for the comparison M3 vs. M3+S1. For both the M2 and M3 models, the null hypothesis that the site-specific selection pattern remains constant across lineages is rejected for each of the eight data sets. The smallest difference is obtained with the patient 2 data set by comparing the log likelihood obtained under M3 and M3+S1. The probability of such a difference or more if sequences evolved under M3 is p [similar, equals] 1.48 × 10–4. Therefore, the site-specific variation of selection regime is likely to have played an important role during the evolution of the sequences analyzed in this study.

We now examine the second null hypothesis posed above, that the pattern of switching from one category to another is not strongly biased (i.e., we test the null hypothesis: α = β = 1). Here, we compare the simple switching model S1 with the S2 model, which allows α and β to freely vary. Under the hypothesis that sequences evolved under M2+S1, twice the difference of log likelihood obtained under M2+S1 and M2+S2 now asymptotically follows a equation M10 distribution. This finding also holds for the comparison M3+S1 vs. M3+S2. The largest differences in log likelihood values are observed in patient 8 by comparing M2+S1 vs. M2+S2 and M3+S1 vs. M3+S2, and in patient 7, by comparing M2+S1 vs. M2+S2. These three differences are statistically significant at the 5% level. However, these are the only cases where switches between selection patterns are likely to be biased. For all of the other combinations of data sets and switching models analyzed here, we cannot reject the null hypothesis that α = β = 1.

It is also interesting to note that the differences of log likelihood obtained under M2 and M3 decrease when switches between selection regimes are taken into account. Under the hypothesis that sequences evolved under M2, twice the difference of log likelihood obtained under M2 and M3 asymptotically follows a equation M11 distribution. This finding also holds true for the comparison M2+S1 vs. M3+S1 and M2+S2 vs. M3+S2. The null hypothesis is rejected at the 1% level for each or the eight data sets when comparing M2 with M3. This is no longer the case when comparing M2+S1 with M3+S1: the null hypothesis is rejected at the 5% level for only three data sets (P3, P7, and P9). The comparison M2+S2 vs. M3+S2 leads to the same conclusions. Hence, the description of the substitution process given by M2 is often not significantly worse than the one given by M3 if switches between selection patterns at individual sites are modeled. From a statistical point of view, it is satisfactory to note that, in most cases, taking into account switches between selection regimes allows one to put a limit on the number of free rate parameters that are needed to describe the distribution of nonsynonymous/synonymous rate ratios. The comparison of log likelihoods obtained under M2+S1 and M3 is perhaps even more convincing: M2+S1 (five rate free parameters) provides a better description of the data than M3 (six free rate parameters) for the eight data sets analyzed in this study.

Parameter Estimates. Estimates of ω3 obtained under M3+S are greater than those obtained under M3 for every data set analyzed. A similar tendency is observed with M2+S vs. M2. This result is expected because M2 and M3 define ω3 as a site-specific rate ratio. Therefore, the value of this parameter corresponds to an average of different nonsynonymous/synonymous rate ratios over lineages. This averaging effect is less important with M2+S and M3+S because these models accommodate site-specific variation in the nonsynonymous/synonymous rate ratio. This result shows that the strength of positive selection that acts on the eight HIV-1 env sequences is likely to be underestimated when the site-specific variation of selection processes across lineages is not taken into account.

Note also that the negative selection and neutral process equilibrium frequency estimates (p1 and p2) vary greatly from M2 to M2+S, with p1 being always smaller under M2 than under M2+S. Sites at which only a few nonsynonymous substitutions occurred as compared with synonymous substitutions provide an explanation. Under M2, the probability for such sites to have been generated under a negative selection process is low because of the presence of nonsynonymous substitutions. Under M2+S, these sites have a higher probability of having been generated under a negative selection regime if the nonsynonymous substitutions are clumped. Such sites are also well described by models that allow intermediate values of the nonsynonymous/synonymous rate ratio (such as M3). This observation explains why the equilibrium frequencies of the different selection regimes obtained under M3 and M3+S are similar (Table 1). Note, however, that estimates of the frequency of negative selection given by M3 are still almost systematically smaller than those given by M3+S. Therefore, even if the tendency to underestimate this parameter is much stronger under M2, estimates obtained under M3 are likely to be biased, too, because the site-specific variation of selection patterns is not taken into account.

Site-By-Site Analysis. Codon-based models of substitution provide a suitable framework for the probabilistic detection of positively selected amino acid positions (2, 27). The calculation of the posterior probability of the positive selection regime at each site is straightforward if the substitution model does not allow switches between selection patterns at individual sites. If the model allows such switches, the expected frequency of the positive selection process given the data are based on the calculation of the expected time the substitution process dwells in positive selection (see Methods).

When considering the eight HIV-1 env data sets together, 18 sites evolved under positive selection according to M3 but not M3+S1. Among these sites, four are of particular interest because they are associated with posterior probability >0.95 under M3, while positive selection is not the most likely regime to have occurred at these sites according to M3+S1.

For each of these four sites, ancestral codon states were inferred by using a joint maximum-likelihood approach (33). This method relies on a stochastic model of sequence evolution and the ancestral states were inferred under M3+S1 (M3 gave very similar results). The branches where substitutions have probably occurred in the corresponding phylogenies were then identified from the comparison of ancestral codon states between two adjacent nodes. The great majority of substitutions inferred from the four sites at which M3 and M3+S1 strongly disagree are likely to be nonsynonymous substitutions. These substitutions are generally clumped on a few branches of the phylogeny instead of being scattered on the whole tree.

Fig. 1 illustrates such an uneven distribution. The positions of the substitutions were inferred from two conflicting sites found in the data set of patient 6. Under the assumption that only one substitution occurred on branches with distinct ancestral codon states at their two ends, substitutions inferred at these two sites are all nonsynonymous substitutions. Their estimated positions are clearly not homogeneously distributed on the phylogeny. Indeed, these substitutions did not occur at the beginning and at the end of the infection for this patient. The conflict between M3 and M3+S1 is best explained by this rather obvious variation of substitution processes across lineages.

Fig. 1.
Phylogenetic positions of substitutions inferred at two amino acid sites of patient 6 data set. M3 strongly supports the hypothesis that sequences evolved under positive selection at these sites, whereas the statistical support given by M3+S1 to the same ...

It is also striking that substitutions are located here on the same closely related lineages of the tree, regardless of the site to be considered. A detailed investigation of the role played by these substitutions is outside the scope of this paper. However, it is worth noting that the two sites that show this peculiar pattern of substitutions are located in HIV T-helper epitope regions (34). These observations suggest that the substitutions inferred at the sites where M3 and M3+S1 strongly disagree may be of biological interest.


We introduce a codon-based model of nucleotide substitution that accommodates variation of natural selection processes across a tree for protein-coding DNA sequences. More precisely, site-specific switches between different values of the nonsynonymous/synonymous rate ratio are explicitly taken into account. This model extends the widely used traditional model of substitution between codons (2, 16). Because the traditional model is a special case of our model, their fit to the data can be compared in a rigorous statistical framework by using likelihood ratio tests.

Whereas the simplest switching model has only one additional parameter as compared with the standard model, the increase in the likelihood is noticeable and statistically significant for each of the eight HIV-1 env gene sequence data sets to be considered. Hence, switches between selection patterns at individual sites are an important evolutionary feature here. This feature is recovered under two different hypotheses concerning the processes of substitution between codons (i.e., M2 and M3). This result demonstrates, at least for these data sets, the robustness of our model.

Yang and Nielsen (20) pointed out that “... averaging (the nonsynonymous/synonymous rate ratio) over sites is a more serious problem than averaging over lineages” and showed convincing results that confirm this assertion. However, our results indicate that ignoring the site-specific variation of selection processes may result in an underestimation of the strength of positive selection. Note that this trend should not change drastically the results of analyses that aim to identify sites that evolve under positive selection. However, more accurate estimates to measure the intensity of positive selection are obviously of great interest for deciphering the processes of molecular evolution.

M2 and M2+S models largely agree on the frequency with which positive selection acts on the HIV-1 env sequences. However, they clearly diverge when considering the negative selection (ω1 = 0) and neutral process (ω2 = 1) equilibrium frequencies. Indeed, because the M2 model does not account for the distribution of nonsynonymous and synonymous substitutions on the phylogeny, it tends to overestimate the expected frequency of the neutral process category. This discrepancy between estimates leads to a different interpretation of the role played by purifying selection in HIV-1 env sequences. According to M2, these sequences mainly evolve under a neutral process, whereas the most common evolutionary force is negative selection according to M2+S. Therefore, taking into account the site-specific variation of selection processes across lineages leads to a dramatically different assessment of the roles played by distinct selection regimes.

However, it must be stressed that ω1 = 0 and ω2 = 1 correspond to very stringent definitions of negative selection and neutrality, respectively. M3 is a more flexible model because its three selection classes correspond to strong purifying selection (0 < ω1 « 1), weak purifying or diversifying selection (ω2 [similar, equals] 1), or strong positive selection (ω3 > 1). The first class of this model is well suited for describing sites at which a few nonsynonymous substitutions occurred. As a result, differences between equilibrium frequencies estimated under M3 and M3+S are smaller than those observed when comparing M2 and M2+S (Table 1). Nonetheless, it is worth to keep in mind that any model that does not allow site-specific switches between selection regimes will underestimate the role played by negative selection in the presence of sites at which nonsynonymous substitutions are clustered due to episodic adaptive events.

We would also like to warn readers against another potential pitfall related to the use of M2. This model poorly describes the amino acid positions where the number of synonymous substitutions is much larger than the number of nonsynonymous changes. Because these sites are better described by M2+S, the difference of log likelihood obtained under the two models will frequently lead to reject the hypothesis of a constant site-specific selection pattern. However, these sites could actually have been generated under a constant site-specific selection regime with a value of the nonsynonymous/synonymous rate ratio intermediate between 0 and 1. In this case, the log likelihoods obtained under M3 and M3+S will be similar. Hence, it is much safer to test the hypothesis of the constancy of the site-specific selection process by comparing M3 vs. M3+S instead of M2 vs. M2+S.

Probabilistic-based approaches have been developed during the last decades to identify codon positions that are likely to have evolved under diversifying selection. In this context, detecting site-specific variations of the intensity of positive selection or changes in selection regimes is worthwhile. A site-by-site analysis of the eight HIV-1 data sets actually reveals positions at which switches between selection processes have probably occurred. Hence, the model described in this paper is also suited to investigate switches between selection regimes at the single-site level.

Software Availability. A program that implements the models described in this paper is available on request from S.G.


We thank G. Ewing, N. Galtier, E. Kassardjian, P. Meintjes, H. Philippe, H. Ross, S. Plön, M. Steel, D. Welch, and two anonymous reviewers for their suggestions. This work was partially supported by grants from the U.S. Public Health Service, a postdoctoral fellowship from the Allan Wilson Centre for Molecular Ecology and Evolution (to S.G.), and National Institutes of Health Grant GM-69801 (to J.P.H.).


This paper was submitted directly (Track II) to the PNAS office.


1. Hughes, A. & Nei, M. (1988) Nature 335, 167–170. [PubMed]
2. Nielsen, R. & Yang, Z. (1998) Genetics 148, 929–936. [PMC free article] [PubMed]
3. Haydon, D., Bastos, A., Knowles, N. & Samuel, A. (2001) Genetics 157, 7–15. [PMC free article] [PubMed]
4. Ross, H. & Rodrigo, A. (2002) J. Virol. 76, 11715–11720. [PMC free article] [PubMed]
5. Lee, Y., Ota, T. & Vaquier, V. (1995) Mol. Biol. Evol. 12, 231–238. [PubMed]
6. Messier, W. & Stewart, C.-B. (1997) Nature 385, 151–154. [PubMed]
7. Swanson, W., Yang, Z., Wolfner, M. & Aquadro, C. (2001) Proc. Natl. Acad. Sci. USA 98, 2509–2514. [PMC free article] [PubMed]
8. Li, W.-H., Wu, C.-I. & Luo, C.-C. (1985) Mol. Biol. Evol. 2, 150–174. [PubMed]
9. Nei, M. & Gojobori, T. (1986) Mol. Biol. Evol. 3, 418–426. [PubMed]
10. Yang, Z. & Nielsen, R. (2000) Mol. Biol. Evol. 17, 32–43. [PubMed]
11. Yokoyama, S. & Yokoyama, R. (1996) Annu. Rev. Ecol. Syst. 27, 543–567.
12. Sharp, P. (1997) Nature 385, 111–112. [PubMed]
13. Crandall, K., Kelsey, C., Imamichi, H., Lane, H. & Salzman, N. (1999) Mol. Biol. Evol. 16, 372–382. [PubMed]
14. Bielawski, J. & Yang, Z. (2001) Mol. Biol. Evol. 18, 523–529. [PubMed]
15. Goldman, N. & Yang, Z. (1994) Mol. Biol. Evol. 11, 725–736. [PubMed]
16. Yang, Z., Nielsen, R., Goldman, N. & Krabbe Pedersen, A.-M. (2000) Genetics 155, 431–449. [PMC free article] [PubMed]
17. Ohta, T. (1993) Genetics 134, 1271–1276. [PMC free article] [PubMed]
18. Bailly, X., Leroy, R., Carney, S., Collin, O., Zal, F., Toulmond, A. & Jollivet, D. (2003) Proc. Natl. Acad. Sci. USA 1000, 5885–5890. [PMC free article] [PubMed]
19. Clark, A., Glanowski, S., Nielsen, R., Thomas, P., Kejariwal, A., Todd, M., Tanenbaum, D., Civello, D., Lu, F., Murphy, B., et al. (2003) Science 302, 1960–1963. [PubMed]
20. Yang, Z. & Nielsen, R. (2002) Mol. Biol. Evol. 19, 908–917. [PubMed]
21. Rodriguez-Trelles, F., Tarrio, R. & Ayala, F. (2003) Proc. Natl. Acad. Sci. USA 100, 13413–13417. [PMC free article] [PubMed]
22. Forsberg, R. & Christiansen, F. (2003) Mol. Biol. Evol. 20, 1252–1259. [PubMed]
23. Bazykin, G., Kondrashov, F., Ogurtsov, A., Sunyaev, S. & Kondrashov, A. (2004) Nature 3, 558–562. [PubMed]
24. Tuffley, C. & Steel, M. (1998) Math. Biosci. 147, 63–91. [PubMed]
25. Felsenstein, J. (1981) J. Mol. Evol. 17, 368–376. [PubMed]
26. Self, S. & Liang, K. (1987) J. Am. Stat. Assoc. 82, 605–610.
27. Huelsenbeck, J. & Dyer, K. (2004) J. Mol. Evol. 58, 661–672. [PubMed]
28. Shankarappa, R., Margolick, J., Gange, S., Rodrigo, A., Upchurch, D., Farzadegan, H., Gupta, P., Rinaldo, C., Learn, G., He, X., et al. (1999) J. Virol. 73, 10489–10502. [PMC free article] [PubMed]
29. Thompson, J., Gibson, T., Plewniak, F., Jeanmougin, F. & Higgins, D. (1997) Nucleic Acids Res. 24, 4876–4882. [PMC free article] [PubMed]
30. Rodrigo, A., Hanley, E., Goracke, P. & Learn, G. (2001) in Computational and Evolutionary Analysis of HIV Molecular Sequences, eds. Rodrigo, A. & Learn, G. (Kluwer, Boston), pp. 1–17.
31. Guindon, S. & Gascuel, O. (2003) Syst. Biol. 52, 696–704. [PubMed]
32. Yang, Z. (1994) J. Mol. Evol. 39, 306–314. [PubMed]
33. Koshi, J. & Goldstein, R. (1996) J. Mol. Evol. 42, 313–320. [PubMed]
34. Korber, B., Brander, C., Haynes, B., Koup, R., Kuiken, C., Moore, J., Walker, B. & Watkins, D. (2002) HIV Molecular Immunology Database 2002 (Los Alamos Natl. Lab., Theoretical Biology and Biophysics, Los Alamos, NM).

Articles from Proceedings of the National Academy of Sciences of the United States of America are provided here courtesy of National Academy of Sciences
PubReader format: click here to try


Related citations in PubMed

See reviews...See all...

Cited by other articles in PMC

See all...


  • MedGen
    Related information in MedGen
  • PubMed
    PubMed citations for these articles

Recent Activity

Your browsing activity is empty.

Activity recording is turned off.

Turn recording back on

See more...