Abstract

The selective pressure at the protein level is usually measured by the nonsynonymous/synonymous rate ratio (ω = dN/dS), with ω < 1, ω = 1, and ω > 1 indicating purifying (or negative) selection, neutral evolution, and diversifying (or positive) selection, respectively. The ω ratio is commonly calculated as an average over sites. As every functional protein has some amino acid sites under selective constraints, averaging rates across sites leads to low power to detect positive selection. Recently developed models of codon substitution allow the ω ratio to vary among sites and appear to be powerful in detecting positive selection in empirical data analysis. In this study, we used computer simulation to investigate the accuracy and power of the likelihood ratio test (LRT) in detecting positive selection at amino acid sites. The test compares two nested models: one that allows for sites under positive selection (with ω > 1), and another that does not, with the χ2 distribution used for significance testing. We found that use of the χ2 distribution makes the test conservative, especially when the data contain very short and highly similar sequences. Nevertheless, the LRT is powerful. Although the power can be low with only 5 or 6 sequences in the data, it was nearly 100% in data sets of 17 sequences. Sequence length, sequence divergence, and the strength of positive selection also were found to affect the power of the LRT. The exact distribution assumed for the ω ratio over sites was found not to affect the effectiveness of the LRT.

Introduction

Detecting positive Darwinian selection is a critical aspect of understanding the mechanisms of molecular evolution. Existing tests proposed in population genetics (see Wayne and Simonsen [1998] for a review) are powerful enough to reject the strictly neutral model. However, such tests are often not sufficient to distinguish different forms of natural selection or to detect adaptive molecular evolution (Yang and Bielawski2000) . A powerful method for detecting positive selection is through comparison of synonymous and nonsynonymous substitution rates. Selective pressure at the protein level is measured by ω = dN/dS, where dN and dS are nonsynonymous and synonymous substitution rates, respectively. If amino acid changes are advantageous, they will be fixed at a higher rate than synonymous changes, with dN > dS. Thus, a significantly higher nonsynonymous substitution rate (ω > 1) is evidence of adaptive molecular evolution. If amino acid changes are deleterious, purifying selection will reduce their fixation rate, such that dN < dS and ω < 1. Neutral mutations result in ω = 1, as selection on the protein has no effect on fitness.

Until recently, cases of positive selection have been difficult to demonstrate. A large-scale database search performed by Endo, Ikeo, and Gojobori (1996) identified only 17 out of 3,595 genes that might have undergone adaptive evolution. Endo, Ikeo, and Gojobori (1996) considered a gene to be under positive selection if the average dN was greater than dS in more than half of the pairwise sequence comparisons. This approach computes the ω ratio as an average over both amino acid sites and time; although popular, it has little power. For example, Crandall et al. (1999) found that the approach of pairwise comparison failed to detect positive selection in the protease gene of HIV-1 despite clear evidence of parallel evolution. Crandall et al. (1999) suggested that the ω ratio averaged over sites was a poor indicator of positive selection. Indeed, the assumption that all sites in a sequence are under equal selective pressure is unrealistic. Typically, adaptive evolution occurs at only a few sites, as most amino acids in a protein are under structural and functional constraints with dN, and hence ω, close to 0 (e.g., Li 1997 ). Thus, calculating ω as an average over all amino acid sites substantially reduces the power to detect positive selection.

Codon-based models recently developed by Nielsen and Yang (1998) and Yang et al. (2000) account for variation of the ω ratio among sites. They are implemented in the maximum-likelihood (ML) framework and can be used (1) to test for the presence of codon sites affected by positive selection and (2) to identify such sites when they exist. The idea is to allow the ω ratio to take values from a number of discrete site classes or from a continuous distribution. The application of such models has led to detection of positive selection in many genes for which it has not previously been suggested. For example, using the ML model of Nielsen and Yang (1998) , Zanotto et al. (1999) detected positive selection in the nef gene of HIV-1, whereas in earlier studies of the same gene, the average ω ratio over sites provided no evidence for adaptive evolution (Plikat, Nieselt-Struwe, and Meyerhans 1997 ; da Silva and Huges 1998 ). Yang et al. (2000) detected diversifying positive selection in six out of ten genes from nuclear, mitochondrial, and viral genomes, while the ω ratio averaged over sites was less than one in all of those genes. Similarly, in an analysis of the fertility gene DAZ,Agulnik et al. (1998) found similar average synonymous and nonsynonymous rates and similar rates at the three codon positions and thus concluded that the DAZ gene family was not under any selective constraint. However, using models of variable ω ratios, Bielawski and Yang (2001) found that most amino acids in the DAZ gene were under strong functional constraints, while a few sites were under diversifying selection.

While the new models have been successfully applied to real data, the accuracy and power of the likelihood ratio test (LRT) have not been examined. Here, we use computer simulation to investigate the accuracy and power of the LRT in detecting positive selection. In cases considered here, the LRT statistic does not follow the χ2 distribution due to the so-called boundary problem. This problem arises because the null hypothesis is equivalent to the alternative hypothesis with some parameters fixed at the boundary of the parameter space. The sample size (i.e., the sequence length) also affects the distribution of the LRT statistic; the χ2 approximation is asymptotic and reliable for large samples only (e.g., Silvey 1970 , pp. 112−114). We attempted to characterize the minimum sample size required for the χ2 approximation to be acceptable. Furthermore, we examined how the power of the LRT depends on the sequence divergence, the sequence length, the number of taxa, and the strength of positive selection. Finally, we tested the sensitivity of the LRT to misspecification of the ω distribution among sites.

Theory and Methods

Codon Substitution Models for Detecting Positive Selection at Sites

The Markov model of codon substitution proposed by Goldman and Yang (1994 ; see also Muse and Gaut 1994 ) was modified recently to account for heterogeneous ω ratios among sites (Nielsen and Yang 1998 ; Yang et al. 2000 ). Here, we present an overview of these models. Let h denote a site in the sequence and N denote the number of codons in the sequence (h = 1, 2, … , N). The relative instantaneous substitution rate from codon i to codon j (ij) at site h is given by
where πj is the equilibrium frequency of codon j, κ is the transition/transversion rate ratio, and ω(h) is the dN/dS ratio at site h. The transition probability matrix over time t is given by P(t) = eQt, where Q = {q(h)ij} (e.g., Lio and Goldman 1998 ).

Following the recommendations of Yang et al. (2000) , we consider the following models of ω ratio distribution among sites: M0 (one-ratio), M3 (discrete), M7 (beta), and M8 (beta&ω) (see table 1 ). M0 (one-ratio) assumes one ω ratio for all sites, so ω(h) = ω for any h. Model M3 (discrete) classifies sites in the sequence into K discrete classes, with both the ω ratios ω0, ω1, … , ωK−1 and the proportions p0, p1, … , pK−1 estimated from the data. Three classes (K = 3) were used in this paper. Under model M7 (beta), the ω ratio varies according to the beta distribution B(p, q) with parameters p and q. The beta distribution is bounded within the interval (0, 1) and thus does not allow for positively selected sites. Model M8 (beta&ω) adds a discrete ω class to the beta model to account for sites under positive selection with ω > 1. A proportion p0 of sites have ω drawn at random from the beta distribution B(p, q), while the rest (with proportion p1 = 1 − p0) have the same ratio ω. M0 (one-ratio) and M3 (discrete) are nested models and can be compared using an LRT. Similarly, models M7 (beta) and M8 (beta&ω) are nested and can be compared using an LRT.

Accuracy of the LRT

The type I error occurs if the null hypothesis H0 is rejected when it is true. A test is accurate if the type I error rate is not greater than the chosen significance level α. If H0 holds, the LRT statistic 2Δℓ (twice the log likelihood difference) can be approximated by the χ2 distribution with the degree of freedom ν equal to the difference in the number of free parameters in the two nested models (e.g., Stuart, Ord, and Arnold 1999 , p. 241). This, however, is only true for large samples and under certain regularity conditions. For example, if the null model H0 is equivalent to an alternative model H1 with some parameters fixed at the boundary of the parameter space, the regularity conditions are not satisfied and the χ2 approximation is not expected to apply. Such is the case with the LRTs considered here. For example, M0 (one-ratio) is a special case of M3 (discrete) by constraining two of the five free parameters in M3 (p0 and p1) to 0. This breaches the regularity conditions, as p0 = 0 and p1 = 0 lie on the boundary of the parameter space. Moreover, parameters ω0 and ω1 become undefined when p0 = p1 = 0. Comparison between M7 and M8 poses a similar problem. The transformation from M8 to M7 forces the parameter ω to become inestimable by fixing p1 at 0, which is on the boundary of the parameter space. Therefore, in neither of our cases is the LTR statistic expected to follow the χ2 distribution.

We assessed the accuracy of the test by simulating replicate data sets under the null hypothesis and analyzing them using both the null and the alternative hypotheses. The distribution of the test statistic 2Δℓ among replicates was then compared with the χ2ν distribution, with ν = 4 for the M0-M3 comparison and ν = 2 for the M7-M8 comparison (table 1 ). The settings of the simulation experiments are summarized in table 2 . Trees used to simulate the data are shown in figure 1 . We do not assume the molecular clock (rate constancy over time), and all trees are unrooted. While the dN/dS rate ratio ω is the same among branches, the total rate, measured by the expected number of nucleotide substitutions per codon, varies among branches. We used codon frequencies empirically estimated from 17 vertebrate β-globin genes and from 23 HIV-1 pol genes (see table 2 ). The vertebrate β-globin gene is biased against adenine at third codon positions, whereas the HIV-1 pol gene is G-C rich at third positions. Simulation parameters were taken to represent the range of estimates from real data (Yang et al.2000) . We simulated sequences of N = 100 and 500 codons using trees of T = 5, 6, or 17 taxa. Sequence divergence was measured by the tree length S, the expected number of nucleotide substitutions per codon along the tree, and three values (“low,” “medium,” and “high”) were used for each tree (table 2 ).

Power of the LRT

The type II error of a test occurs if the test fails to reject H0 when it is false. The power of a test is defined as 1 − type II error rate and is equal to the probability of rejecting H0 given that H0 is wrong and that the alternative hypothesis H1 is correct. To examine the power of the LRT, we simulated replicate data sets under H1 and analyzed them using both H0 and H1 to see whether H0 was rejected by the LRT. We considered two measures. First, we counted the replicates for which positive selection was indicated by the parameter estimates in the alternative model, and we denote the proportion of such replicates by P+. Formally, P+ = Pr(there exists an ω̂ > 1 | H1 is true), where ω̂ is the ML estimate of any of the parameters ωi (i = 0, 1, 2) under M3 (discrete) or of the single ω parameter in model M8 (beta&ω) (see table 1 ). The second measure is more stringent and requires that positive selection is indicated by the parameter estimates in the alternative model and that the LRT is significant. We denote the proportion of such replicates by P+s and refer to it as the power of the LRT. As P+s depends on the significance level α, we also use the notation P+s,α. In other words, P+s,α = Pr(there exists ω̂ > 1 and 2Δℓ > χ2ν,α | H1 is true). Note that P+P+s.

We also investigated the sensitivity of LRTs to misspecification of the distribution of the ω ratio among sites. We simulated data sets under M3 (discrete) and analyzed them using M7 (beta) and M8 (beta&ω). Similarly, we simulated data sets under M8 (beta&ω) and analyzed them using M0 (one-ratio) and M3 (discrete). Parameter settings used are listed in table 3 . As before, we used a number of parameter combinations to represent a variety of real data situations.

All sequence data sets were generated using the evolver program. Log likelihood values were calculated with the codeml program. Both programs are from the PAML package (Yang2000) .

Results

Accuracy

Results obtained from simulations examining the accuracy of the LRTs are presented in table 2 . In experiments A–C, data were simulated under M0 (one-ratio) and analyzed using M0 (one-ratio) and M3 (discrete), with χ24 used to test significance. If χ24 were the correct null distribution, H0 would be rejected (type I error) in 5% of the replicates at the α = 0.05 significance level and in 1% of the replicates at α = 0.01. However, the regularity conditions for the χ2 approximation are not satisfied. Results of table 2 (experiments A–C) suggest that the null hypothesis was rejected less often than allowed by the significance level. In most cases, the estimated type I error rate was 0 for α = 0.05 (table 2 ). Even at α = 0.1, the estimated probability of rejecting the null hypothesis never exceeded 6% and was often much lower than the expected 10% (results not shown). Thus, use of χ24 to compare M0 and M3 makes the LRT conservative.

The shapes of the 2Δℓ distribution were similar for all parameter combinations in experiments A–C, in which the LRT compared M0 (one-rate) against M3 (discrete). One example is shown in figure 2A for the combination N = 500 and S = 1.1 in experiment A. The simulated distribution has a skewed L-shape, while χ24 has a peak in the middle with a long tail to the right. The two distributions are very different. At very low sequence divergence (S = 0.11 in experiment A), there was a substantially higher peak near 2Δℓ = 0, such that M0 was rejected even less often and the LRT was even more conservative. Short sequences had an effect similar to that of low divergence, and the LRT was more conservative in data sets of 100 codons than in data sets of 500 codons (results not shown). The number of taxa did not appear to affect the shape of the distribution.

We simulated data sets under M7 (beta) in order to check whether the χ22 approximation was reliable for comparing M7 (beta) and M8 (beta&ω). ML estimation under M7 and M8 is time-consuming; hence, only three parameter combinations were used (experiment D in table 2 ). For S = 0.11, M7 was never rejected at α = 0.05, whereas for S = 1.1 and S = 11, M7 was rejected approximately as often as expected from the significance level α when α = 0.01, 0.05, and 0.1. Figure 2B compares the distribution of the 2Δℓ statistic with χ22 for the combination N = 500 and S = 1.1. The match is not good, and the simulated distribution is left-skewed. Therefore, use of the χ22 makes the LRT conservative. Furthermore, the LRT was even more conservative for data sets of highly similar sequences (S = 0.11), as in the comparison of M0 (one-ratio) and M3 (discrete).

The reliability of the χ2 approximation could have been affected by both the boundary problem and a small sample size. To distinguish between these two factors, we conducted a simple experiment free from the boundary problem. One ω ratio was assumed for all sites (M0), and the hypothesis H0: ω = 1 was tested against the alternative H1: ω ≠ 1. The LRT statistic 2Δℓ was compared with χ21. The tree in figure 1A was used, and the parameters (with the exception of ω) were the same as in experiment A (table 2 ). The distribution of 2Δℓ fitted the expected χ21 distribution for all values of S and N.Figure 3A shows one case where the tree length S = 1.1 and the sequence length was only N = 50 codons. It is remarkable that the χ2 distribution appears reliable for such short sequences. An equally good fit was observed for N = 100. Data sets of 50 codons with S = 0.11 were not analyzed, as such data carry little information and cause convergence problems. These results are compatible with those of Zhang (1999) , who found in nucleotide-based simulations that the χ2 approximation is reliable in fairly small data sets. Besides the χ2 approximation to the LRT statistic, asymptotic theory also predicts that ML estimates of parameters are normally distributed (e.g., Stuart, Ord, and Arnold 1999 , pp. 57–59). For N = 50, the distribution of ω̂ was left-skewed (fig. 3B ), and in 47% of the replicates, ω̂ was greater than 1. The mean of the distribution was 1.09, indicating that the ML estimate involves a positive bias in small samples (Yang and Nielsen2000) . This pattern was found to be typical for small samples. With an increase of N, the distribution looked much more concentrated and symmetrical. Compared with the χ2 approximation to the LRT statistic, the normal approximation to ML parameter estimates appeared to require larger samples to be reliable.

To examine the performance of the LRT on a neutral gene, we also applied the LRT comparing M0 and M3 to data sets simulated under M0 (one-rate) with ω = 1. The parameter settings were the same as in figure 3 except that the sequence length was N = 500. In 72% of the replicates, estimates of at least one of the ω ratios under M3 were greater than 1, indicating positive selection. However, in most of them, the LRT was insignificant, and the type I error rate was only 0.004 at α = 0.05. Thus, the LRT was reliable.

Power Analysis

Results obtained from simulations examining the power of the LRT are summarized in table 3 . In experiment 1, we simulated data under M3 (discrete) using a six-taxon tree and analyzed them using M0 (one-ratio) and M3 (discrete). Both P+ (probability of parameter estimates indicating positive selection) and P+s (power of the LRT) were consistently higher when N = 500 than when N = 100. This effect of the sequence length was expected. The level of sequence divergence had a significant effect on the power of the test. At low sequence divergence (S = 0.11), ML parameter estimates under M3 suggested positive selection (P+) in 33 data sets for N = 100 and in 48 data sets for N = 500 (table 3 ). However, in only a few of these cases was the evidence statistically significant (P+s). For example, at α = 0.05, the LRT was significant in only one case for N = 100 and in only eight cases for N = 500 (table 3 ). Note that S = 0.11 means that the sequences are highly similar, with 2.4% of total divergence along the tree at a nonsynonymous site (dN = 0.024) and 7.8% of divergence at a synonymous site (dS = 0.078). The transformation from tree length S to dN and dS can be made using the relationships S = 3dSpS + 3dN(1 − pS), and dN/dS = ω̄ (e.g., Yang and Nielsen2000) . Here, the average ω ratio ω̄ = 0.018 × 0.386 + 0.304 × 0.535 + 1.691 × 0.079 = 0.303 (see table 3 ), and the proportion of synonymous sites is pS = 23.84% for the vertebrate β-globin gene (Yang et al.2000) . Increasing sequence divergence to the intermediate level (S = 1.1) yielded a substantial increase in both P+ and P+s. For example, with N = 500, parameter estimates in P+ = 95% of replicates suggested positive selection, and in all of them, the LRT was significant at the 1% level (P+s,0.05 = P+s,0.01 = 95%) (table 3 ). The power decreased when S was increased to 11 (e.g., for N = 500, P+ = 80% and P+s,0.05 = 80%). At S = 55 nucleotide substitutions per codon, both P+ and P+s decreased dramatically (e.g., for N = 500, P+ = 11% and P+s,0.05 = 11%). Note that S = 55 represents unrealistically high sequence divergence, with dN = 11.8 substitutions per nonsynonymous site and dS = 39.1 substitutions per synonymous site along the tree. In summary, the power increased with increasing S, peaked at a medium level of S, and fell when sequences became highly divergent.

In experiment 2, we examined the effect of increasing the number of taxa to 17 (table 3 ). Here, P+s was very high for most values of S and N. For example, even for the short sequences (N = 100) of rather low divergence (S = 2.11), ML estimates suggested positive selection in 93 data sets, with most of these cases being statistically significant (P+s,0.01 = 91%). The LRT reached full power (P+s = 100%) for long sequences and realistic S in the range 2.11–8.44. As in experiment 1, the power increased with the initial increase of S, peaked at a medium level of S, and thereafter decreased with a further increase of S. For example, increasing S to an unrealistically high value (S = 105.5) for the short sequences (N = 100) resulted in P+ = 31% and P+s,0.05 = 31%.

Experiment 3 examined the influence of the strength of positive selection; ω2 was increased from 1.69 in experiment 1 to 4.74 (table 3 ). As expected, there was a rise in the power of the LRT as compared with experiment 1. For every combination of S and N, the power in experiment 3 was higher than the corresponding result in experiment 1. Once again the power was low for either very similar or highly divergent sequences and was highest at intermediate levels of sequence divergence (around S = 1.1). As before, increasing sequence length from 100 to 500 yielded an increase in the power.

Experiment 4 examined the power of the LRT using the tree topology, simulation parameters, and codon frequencies derived from the HIV-1 pol gene (Yang et al.2000) (table 3 ). As before, the power of the LRT was higher for longer sequences. Moreover, the power increased with the increase of S, peaked, and then decreased with a further increase in S. However, the level of sequence divergence at which the power began to fall differed from previous experiments. To enable a qualitative comparison, we used the average number of nucleotide changes per codon per branch as a relative measure of sequence divergence. This is S/(2T − 3), where 2T − 3 is the number of branches of an unrooted tree of T taxa. Unlike experiment 1, in which the highest power was observed at the medium level of sequence divergence (S = 1.1 and T = 6, or S/(2T − 3) = 0.12), here the highest power was obtained for relatively divergent data sets (S = 9.1 and T = 5, or S/(2T − 3) = 1.3). Hence, the optimal sequence divergence depends on the properties of the data and appears to be within the medium-to-high range.

In experiment 5, we simulated data under M8 (beta&ω) and analyzed them with M7 (beta) and M8 (beta&ω) (table 3 ). Although ω̂ derived from M8 often suggested positive selection, the power of the LRT was substantially lower than in experiment 1. For example, when N = 500 and S = 1.1, the power was P+s,0.05 = 95% in experiment 1 but only 77% in experiment 5. This difference is due to the fact that M0 is less realistic than M7 and easier to reject (see below).

In experiment 6, we examined whether the LRT was sensitive to the true distribution of ω by simulating data under M3 (discrete) and analyzing them with M7 (beta) and M8 (beta&ω) (table 3 ). The results were compared with those of experiment 1, where the data were analyzed with M0 and M3. The null model M0 was rejected much more frequently than the null model M7. For example, for the combination N = 500 and S = 1.1, the power was P+s,0.01 = 100% in experiment 1 and 48% in experiment 6. Comparison between M7 and M8 is clearly a more stringent test of positive selection than comparison between M0 and M3. In contrast to P+s, P+ was often higher in experiment 6 than in experiment 1 except for the combination N = 500 and S = 11 (table 3 ). In sum, parameter estimates under M8 tend to suggest positive selection more often than M3, but the LRT based on M8 is significant less often than the LRT based on M3.

In experiment 7, we simulated data under M8 (beta&ω) and analyzed them using M0 (one-ratio) and M3 (discrete) (table 3 ). The results were compared with those of experiment 5, in which the data were analyzed using models M7 (beta) and M8 (beta&ω). We observed the same pattern as in the comparison between experiments 1 and 6. First, the null model M0 (one-ratio) was rejected more frequently than the null model M7 such that the power P+s was always higher for the LRT comparing M0 and M3 than for the LRT comparing M7 and M8. For example, for N = 500 and S = 1.1, the power was P+s,0.01 = 100% in experiment 7 and 65% in experiment 5 (table 3 ). Second, the proportion of replicates in which positive selection was indicated by parameter estimates (P+) was generally higher under M8 than under M3 (table 3 ).

Discussion

Accuracy of the χ2 Approximation

If the type I error rate of a test is greater than α, the test is liberal and unreliable. If the type I error rate is less than α, the test is conservative and might lack power. It would be best to use the correct distribution of the LRT statistic 2Δℓ under the null hypothesis, or its close approximation, as then the type I error rate would match the significance level α. However, finding such a distribution for the two LRTs considered in this paper is problematic, mainly because of the boundary problem.

A number of special cases of LRTs under nonstandard conditions are discussed in Self and Liang (1987) , which remains the latest reference on this issue. If only one parameter is on the boundary of the parameter space, the LRT statistic is approximately distributed as a mixture ½χ20 + ½χ21 if no other parameter is tested (case 5 of Self and Liang 1987 ). Here, χ20 is the distribution that takes the value 0 with probability 1. An example is the comparison of the one-rate and gamma-rates models of among-sites rate variation. In this case, the null model (one-rate) is equivalent to fixing the shape parameter α of the gamma distribution at infinity (Yang 1996 ). Recent simulations (Goldman and Whelan 2000 ; Ota et al.2000) showed that the LRT statistic fits the above mixture distribution very well even when the sample size is not very large. However, increasing the number of boundary parameters complicates the case and, in some situations, might cause the LRT statistic not to be expressible as a mixture of χ2 distributions (e.g., case 8 of Self and Liang 1987 ). Moreover, the existence of a consistent ML estimator is one of the main assumptions for the LRT statistic to asymptotically converge to the χ2 or its mixture distributions (Self and Liang 1987 ). In the LRTs considered in this paper, some parameters are not estimable, so none of the known distributions or their mixtures are expected to apply.

Consequently, we used χ24 to compare M0 (one-ratio) and M3 (discrete), and we used χ22 to compare M7 (beta) and M8 (beta&ω), as suggested by Yang et al. (2000) . This approach makes the LRT conservative and leads to loss of power. This might be particularly important for data sets of highly similar sequences, as failure to detect positive selection might be due to the lack of power of the LRT. Note that when we examined the accuracy of the LRT (table 2 ), we considered the statistic 2Δℓ only, but when we examined the power of the test P+s (table 3 ), we further required that parameter estimates in the alternative model (M3 or M8) suggested positive selection. Thus, the LRTs used in detecting positive selection as examined in table 3 are even more conservative than the results of table 2 suggest.

Besides the boundary problem, the χ2 approximation can also be affected by insufficient sample sizes. However, our simulation with no boundary problem, as well as previous studies (e.g., Whelan and Goldman 1999 ; Zhang 1999 ), suggests that even with relatively short sequences (e.g., with 50 codons), the distribution of 2Δℓ fits the χ2 quite well. Hence, analysis of short sequences appears feasible, although it might be difficult to get significant results. We should note that when the χ2 approximation is unreliable, Monte Carlo simulation can be used to obtain the correct null distribution (Goldman 1993 ).

Power of LRT

Our simulations show several patterns of the power function, all of which are intuitively justified. Longer sequences exhibit an increased probability of detecting adaptive evolution, while for short sequences the power can be almost 0%. Very similar sequences carry little information, causing low power of the LRT. The power increases with sequence divergence until it reaches its maximal value, after which further increases of sequence divergence lead to reduced power. With multiple substitutions at the same site, the most recent changes might overwrite previous substitutions, causing loss of information. Thus, very divergent sequences do not contain much information.

The most efficient way of obtaining high power appears to be to use many sequences. Adding more sequences causes a spectacular rise in power, even when the sequence divergence is low. Increasing the strength of positive selection also leads to improved power. Increasing the proportion of positively selected sites should have a similar effect, although no simulations were performed to examine it.

Differences Between the Two LRTs

We obtained significant results much more often with the LRT that compares M0 (one-ratio) and M3 (discrete) than with the LRT that compares M7 (beta) and M8 (beta&ω). We note that M7 is a very flexible null model and accounts for both neutral and deleterious mutations with 0 < ω < 1. As a result, the M7-M8 comparison is a very stringent test of positive selection. The M0-M3 comparison, however, is more a test of variable selective pressure among sites (indicated by the ω ratio) than a test of positive selection. Since the selective pressure seems to be variable among sites in every functional protein, M0 is a very unrealistic model. For example, in all 10 data sets analyzed by Yang et al. (2000) , M0 was easily rejected when compared with M3, although in four of them positive selection was not detected. Thus, if by chance parameter estimates under M3 indicate positive selection, we might falsely claim positive selection using the LRT comparing M0 and M3. We performed one such simulation experiment where the assumption of M0 was violated. We simulated 500 replicate data sets, each with N = 500 codons, using parameter settings of experiment A in table 2 except that we used the neutral model (M1) for the ω distribution. M1 (neutral) assumes two site classes with the ω ratios ω0 = 0 and ω1 = 1. We set the proportions for the two site classes at p0 = 0.5 and p1 = 0.5. The simulated data were then analyzed using M0 and M3. In 75% of replicates, at least one of the three ω parameters in M3 was estimated to be greater than 1, and the LRT was also significant, leading to false detection of positive selection. The LRT comparing M7 and M8 applied to the same data sets were found to be robust to violation of assumptions and falsely detected positive selection in only 5% of the replicates at α = 0.05. Furthermore, if the data were analyzed using M1 (neutral) and M3 (discrete), the false-positive rate was 0.02 at α = 0.05. Following Yang et al. (2000) , we thus recommend that multiple models and tests be used in real data analysis and that caution be exercised when only the M0-M3 comparison suggests positive selection.

Fumio Tajima, Reviewing Editor

1

Keywords: positive selection nonsynonymous/synonymous rate ratio likelihood ratio test (LRT) molecular adaptation type I error type II error

2

Address for correspondence and reprints: Ziheng Yang, Galton Laboratory, Department of Biology, 4 Stephenson Way, London NW1 2HE, United Kingdom. [email protected].

Table 1 Models of Variable {ω} Ratios Among Sites Used to Investigate the Accuracy and Power of the Likelihood Ratio Test

Table 1 Models of Variable {ω} Ratios Among Sites Used to Investigate the Accuracy and Power of the Likelihood Ratio Test

Table 2 Type I Error Rate: Numbers of Cases out of 100 for Which the Null Hypothesis Was Rejected at the {α} = 1% (5%) Significance Levels

Table 2 Type I Error Rate: Numbers of Cases out of 100 for Which the Null Hypothesis Was Rejected at the {α} = 1% (5%) Significance Levels

Table 3 Power of the Likelihood Ratio Test (LRT): Numbers of Replicates out of 100 in Which Positive Selection Was Indicated by Parameter Estimates (P+) or Detected by the LRT at the 1% (P+s,0.01) and 5% (P+s,0.05, in parentheses) Significance Levels

Table 3 Power of the Likelihood Ratio Test (LRT): Numbers of Replicates out of 100 in Which Positive Selection Was Indicated by Parameter Estimates (P+) or Detected by the LRT at the 1% (P+s,0.01) and 5% (P+s,0.05, in parentheses) Significance Levels

Fig. 1.—Tree topologies used in the simulations. A, Artificial six-taxon tree. B, Five-taxon subtree from a tree constructed for 23 HIV-1 pol gene sequences (Yang et al.2000)
. C, A β-globin tree for 17 vertebrate species from Yang et al. (2000)

Fig. 1.—Tree topologies used in the simulations. A, Artificial six-taxon tree. B, Five-taxon subtree from a tree constructed for 23 HIV-1 pol gene sequences (Yang et al.2000) . C, A β-globin tree for 17 vertebrate species from Yang et al. (2000)

Fig. 2.—Comparison of the χ2 distribution with the distribution of the likelihood ratio test (LRT) statistic 2Δℓ in 500 simulated replicates. A, The LRT compares M0 (one-ratio) and M3 (discrete) for N = 500 and S = 1.1 (table 2 , experiment A). B, The LRT compares M7 (beta) and M8 (beta&ω) for N = 500 and S = 1.1 (table 2 , experiment D)

Fig. 2.—Comparison of the χ2 distribution with the distribution of the likelihood ratio test (LRT) statistic 2Δℓ in 500 simulated replicates. A, The LRT compares M0 (one-ratio) and M3 (discrete) for N = 500 and S = 1.1 (table 2 , experiment A). B, The LRT compares M7 (beta) and M8 (beta&ω) for N = 500 and S = 1.1 (table 2 , experiment D)

Fig. 3.—Accuracy of the asymptotic theory for the likelihood ratio test of H0: ω = 1 against H1: ω ≠ 1. One ω ratio (model M0) is assumed for all sites in both H0 and H1. Five hundred data sets were simulated using parameters taken from experiment A of table 2 , except that ω = 1. The six-taxon tree of figure 1A and the codon frequencies from the vertebrate β-globin gene were used. The tree length is S = 1.1 substitutions per codon along the tree. The sequence length is N = 50 codons. A, Comparison of χ21 with the simulated distribution of 2Δℓ. The two distributions are not significantly different from each other. B, The distribution of maximum-likelihood estimates of ω under H1

Fig. 3.—Accuracy of the asymptotic theory for the likelihood ratio test of H0: ω = 1 against H1: ω ≠ 1. One ω ratio (model M0) is assumed for all sites in both H0 and H1. Five hundred data sets were simulated using parameters taken from experiment A of table 2 , except that ω = 1. The six-taxon tree of figure 1A and the codon frequencies from the vertebrate β-globin gene were used. The tree length is S = 1.1 substitutions per codon along the tree. The sequence length is N = 50 codons. A, Comparison of χ21 with the simulated distribution of 2Δℓ. The two distributions are not significantly different from each other. B, The distribution of maximum-likelihood estimates of ω under H1

We thank Willie Swanson and two anonymous referees for constructive comments. This study was supported by a Biotechnology and Biological Sciences Research Council grant to Z.Y. M.A. was supported by a Medical Research Council studentship.

References

Agulnik A. I., A. Zharkikh, H. Boettger-Tong, T. Bourgeron, K. McElreavey, C. E. Bishop,

1998
Evolution of the DAZ gene family suggests that Y-linked DAZ plays little, or a limited, role in spermatogenesis but underlines a recent African origin for human populations
Hum. Mol. Genet
7
:
1371
-1377

Bielawski J. P., Z. Yang,

2001
Positive and negative selection in the DAZ gene family Mol. Biol. Evol. 18:523–529

Crandall K. A., C. R. Kelsey, H. Imamichi, H. C. Lane, N. P. Salzman,

1999
Parallel evolution of drug resistance in HIV: failure of nonsynonymous/synonymous substitution rate ratio to detect selection
Mol. Biol. Evol
16
:
372
-382

da Silva J., A. L. Huges,

1998
Conservation of cytotoxic T lymphocyte (CTL) epitopes as a host strategy to constrain parasite adaptation: evidence from the nef gene of human immunodeficiency virus 1 (HIV-1)
Mol. Biol. Evol
15
:
1259
-1268

Endo T., K. Ikeo, T. Gojobori,

1996
Large-scale search for genes on which positive selection may operate
Mol. Biol. Evol
13
:
685
-690

Goldman N.,

1993
Statistical tests of models of DNA substitution
J. Mol. Evol
36
:
182
-198

Goldman N., S. Whelan,

2000
Statistical tests of gamma-distributed rate heterogeneity in models of sequence evolution in phylogenetics
Mol. Biol. Evol
17
:
975
-978

Goldman N., Z. Yang,

1994
A codon-based model of nucleotide substitution for protein-coding DNA sequences
Mol. Biol. Evol
11
:
725
-736

Li W.-H.,

1997
Molecular evolution Sinauer, Sunderland, Mass

Lio P., N. Goldman,

1998
Models of molecular evolution and phylogeny
Genome Res
8
:
1233
-1244

Muse S., B. Gaut,

1994
A likelihood approach for comparing synonymous and nonsynonymous nucleotide substitution rates, with application to the chloroplast genome
Mol. Biol. Evol
11
:
715
-724

Neilsen R., Z. Yang,

1998
Likelihood models for detecting positively selected amino-acid sites and applications to the HIV-1 envelope gene
Genetics
148
:
929
-936

Ota R., P. Waddell, M. Hasegawa, H. Shimodaira, H. Kishino,

2000
Appropriate likelihood ratio tests and marginal distributions for evolutionary tree models with constraints on parameters
Mol. Biol. Evol
17
:
798
-803

Plikat U., K. Nieselt-Struwe, A. Meyerhans,

1997
Genetic drift can determine short-term human immunodeficiency virus type 1 nef quasispecies evolution in vivo
J. Virol
71
:
4233
-4240

Self S., K.-Y. Liang,

1987
Asymptotic properties of maximum likelihood estimators and likelihood ratio tests under nonstandard conditions
J. Am. Stat. Assoc
82
:
605
-610

Silvey S.,

1970
Statistical inference Penguin Books, Middlesex, England

Stuart A., J. K. Ord, S. Arnold,

1999
Kendall's advanced theory of statistics Vol. 2A. Oxford University Press, New York

Wayne M., K. Simonsen,

1998
Statistical tests of neutrality in the age of weak selection
TREE
13
:
236
-240

Whelan S., N. Goldman,

1999
Distributions of statistics used for the comparison of models of sequence evolution in phylogenetics
Mol. Biol. Evol
16
:
1292
-1299

Yang Z.,

1996
Maximum likelihood models for combined analyses of multiple sequence data
J. Mol. Evol
42
:
587
-596

———.

2000
Phylogenetic analysis by maximum likelihood (PAML) Version 3.0. University College London, London, England

Yang Z., J. Bielawski,

2000
Statistical methods for detecting molecular adaptation
TREE
15
:
496
-503

Yang Z., R. Neilsen,

2000
Estimating synonymous and nonsynonymous rates under realistic evolutionary models
Mol. Biol. Evol
17
:
32
-43

Yang Z., R. Neilsen, N. Goldman, A.-M. K. Pedersen,

2000
Codon-substitution models for heterogeneous selection pressure at amino acid sites
Genetics
155
:
431
-449

Zanotto P. M., E. G. Kallas, R. F. Souza, E. C. Holmes,

1999
Genealogical evidence for positive selection in the nef gene of HIV-1
Genetics
153
:
1077
-1089

Zhang J.,

1999
Performance of likelihood ratio tests of evolutionary hypotheses under inadequate substitution models
Mol. Biol. Evol
16
:
868
-875