Abstract
Models of amino acid substitution present challenges beyond those often faced with the analysis of DNA sequences. The alignments of amino acid sequences are often small, whereas the number of parameters to be estimated is potentially large when compared with the number of free parameters for nucleotide substitution models. Most approaches to the analysis of amino acid alignments have focused on the use of fixed amino acid models in which all of the potentially free parameters are fixed to values estimated from a large number of sequences. Often, these fixed amino acid models are specific to a gene or taxonomic group (e.g. the Mtmam model, which has parameters that are specific to mammalian mitochondrial gene sequences). Although the fixed amino acid models succeed in reducing the number of free parameters to be estimated—indeed, they reduce the number of free parameters from approximately 200 to 0—it is possible that none of the currently available fixed amino acid models is appropriate for a specific alignment. Here, we present four approaches to the analysis of amino acid sequences. First, we explore the use of a general time reversible model of amino acid substitution using a Dirichlet prior probability distribution on the 190 exchangeability parameters. Second, we then explore the behaviour of prior probability distributions that are ‘centred’ on the rates specified by the fixed amino acid model. Third, we consider a mixture of fixed amino acid models. Finally, we consider constraints on the exchangeability parameters as partitions, similar to how nucleotide substitution models are specified, and place a Dirichlet process prior model on all the possible partitioning schemes.
Keywords: phylogeny, Bayesian analysis, Markov chain Monte Carlo, Dirichlet process prior
1. Introduction
The statistical phylogenetic analysis of amino acid data presents problems that are not associated with nucleotide data. The instantaneous rate matrix is 20×20 in dimension for amino acid data. For the most general model of amino acid substitution, a model that may not be time reversible, there are a total of 20×19=380 parameters to be estimated. For a general time reversible (GTR) model of amino acid substitution, isomorphic to the GTR model used in phylogenetic analysis of DNA sequences (Tavaré 1986), there would be a total of 20+190=210 parameters.1 Unlike the case with codon models in which many rates between states may be zero because the changes involve two or more substitutions in an instant of time, there are no easy ways to reduce the number of parameters to be estimated for amino acid data. The most common approach used for the phylogenetic analysis of amino acid sequence data is to use a continuous-time Markov model in which all of the rates are fixed to specific values. There are a number of such fixed rate matrices that have rates based on the analysis of inferred amino acid changes from various databases. These models include the Jones (Jones et al. 1992), Dayhoff (Dayhoff et al. 1978), Mtrev (Adachi & Hasegawa 1996), WAG (Whelan & Goldman 2001), Mtmam (Cao et al. 1998; Yang et al. 1998), Rtrev (Dimmic et al. 2002), Cprev (Adachi et al. 2000), Blosum (Henikoff & Henikoff 1992), ECM (Empirical Codon Model; Kosiol et al. 2007) and Vt (Muller & Vingron 2000). The Poisson model, which is isomorphic to the Jukes & Cantor (1969) nucleotide substitution model, can also be considered a member of the family of fixed amino acid models (Bishop & Friday 1987).
The fixed amino acid models are useful not only because they reduce the number of parameters to be estimated in a phylogenetic analysis, but also because they can be applied to small alignments (datasets involving a small number of taxa and sites). It is unlikely that the rates of substitution for an amino acid model that had the rates of change free to vary could be reliably estimated for typical (small) amino acid alignments. However, the use of fixed amino acid models also complicates matters because, for any specific alignment of amino acid sequences, it is not clear which of the many potential models is the most appropriate. Often, one can make a good guess of which model should be used; for example, if the alignment is of plastid genes, then the Cprev model (Adachi et al. 2000) might be appropriate because its rates are based on a database of plastid genes. Similarly, the Mtmam model is probably the most appropriate for an alignment of mammalian mitochondrial genes. Yet, there is no guarantee that any specific amino acid model is the most appropriate for a particular alignment, even in cases where the amino acid model is based upon a database of genes similar to the one to be analysed. Another approach is to use the fixed model that has the maximum likelihood. This is sensible, but involves optimizing likelihoods under the current models. Also, this approach does not allow one to spread one's bets across amino acid models if several of the models have similar likelihoods.
Even the best-fitting fixed amino acid model, however, may not be particularly suitable for the data at hand. It is interesting to note that biologists who adopt the approach of using fixed amino acid substitution models are, in a sense, adopting a Bayesian perspective, even if they do not use Bayesian methodology to estimate the parameters of the phylogenetic model. The fixed amino acid model that is assumed in the analysis can be considered a prior probability distribution on the rates of amino acid substitution for the data at hand. In fact, by using a model of amino acid substitution in which all of the rates are fixed to specific values, the biologist has adopted the strongest form of a prior that can be imagined; a fixed amino acid model places a point mass probability on the rates specified by the model, but zero probability on other rate combinations, even those rates that are slightly different from the fixed rates. An intermediate solution, in which the assumptions of the fixed amino acid model are tempered, might be more appropriate.
In this paper, several Bayesian approaches to the analysis of amino acid models are developed. We consider (i) inference of amino acid rates under a GTR model, (ii) inference of amino acid data when the rates of substitution have been ‘centred’ on a fixed amino acid model, but which still allow rates to vary, (iii) a model averaging approach, in which the results of a phylogenetic analysis are averaged over a candidate set of fixed amino acid models, and (iv) a model averaging approach in which all possible partitions of the exchangeability/rate parameters are considered.
2. Material and methods
(a) Specifying a ‘centred’ prior distribution for amino acid substitution rates
We adopt a Bayesian perspective to statistical estimation, in which inferences are based on the posterior probability distribution of a parameter, which can be calculated using Bayes' theorem as
where is the posterior probability distribution of the parameter; is the likelihood; is the prior probability distribution of the parameter; and is the marginal likelihood, obtained by summing and/or integrating over all possible combinations of the model parameters. We consider the observations to be an alignment of s amino acid sequences each n in length, denoted X. (We ignore the possibility that the amino acid sequences might be misaligned.) For a phylogenetic model, the parameters include a tree, with branch lengths specified in terms of expected number of substitutions per site, and a continuous-time Markov model describing how the characters, in our case amino acid sequences, change over time. We will forgo a thorough treatment of the phylogenetic model which would include a description of how the likelihood is calculated; suffice it to say that we use standard methods for calculating the likelihood (Felsenstein 1981) and use Markov chain Monte Carlo (MCMC) to numerically calculate the posterior probability distribution of the parameters (e.g. Larget & Simon 1999). Moreover, we accommodate among-site rate variation by assuming that the rate at a particular amino acid site (column in the alignment) is a random variable drawn from a mean-one gamma distribution with parameter γ (Yang 1993, 1994).
We assume that amino acid substitutions occur according to a continuous-time Markov model with instantaneous rates of change described by the following rate matrix
which corresponds to a GTR model of amino acid substitution. (The dots represent rows and columns that are not shown because the rate matrix is too large to be printed in its entirety.) The amino acid substitution model has 20 states, corresponding to the 20 possible amino acids: (which are the IUPAC codes for the amino acids; Cornish-Bowden 1985). The diagonal elements of the rate matrix are specified such that each row sums to 0. The GTR model of amino acid substitution has a total of 210 parameters. Twenty of the parameters are the stationary frequencies of the amino acids. Similar to other phylogenetic models, the stationary frequencies of the process are parameters of the model, specified as components of the rate matrix. The other 190 parameters are rate parameters, sometimes referred to as exchangeability parameters; the exchangeability parameters are the rate factors θAR, θAN, θAD, …, θYV.
The 20 amino acid frequencies, π=(πA, πR, πN, …, πV) are, of course, constrained to sum to one. The 190 exchangeability parameters, θ=(θAR, θAN, θAD, …, θYV), on the other hand, are ideally measured in terms of the expected number of substitutions per unit time, and would not have any constraint (other than the common-sense one that the rates be positive). However, without any reference to time on a tree, the values of the rate parameters cannot be estimated; only divergence—the product of substitution rate and time—can be measured on a phylogenetic tree in the absence of a calibration. Because only divergence on a tree can be estimated, only the relative substitution rates can be estimated. For example, the relative substitution rates θAR=1, θAN=3, θAD=2, … are equivalent to θAR=2, θAN=6, θAD=4, … In this study, we impose the constraint that the 190 rate parameters sum to one. The rate matrix is scaled by a factor μ to ensure that the mean rate of substitution is one. Branch lengths of the tree, then, are interpreted as the expected number of amino acid substitutions per site. The scaling factor is equal to , where .
We assume that both the amino acid frequency parameters, π, and the exchangeability parameters, θ, follow different Dirichlet prior probability distributions. The use of a Dirichlet prior probability distribution for the exchangeability parameters of the GTR model of DNA substitution was first described by Zwickl & Holder (2004). Let X=(X1, X2, …, XK) be K random variables that are constrained to sum to one. The Dirichlet probability density is
where α=(α1, α2, …, αK) are the parameters of the distribution and the constant of integration is a well-known ratio of gamma functions given by
.The marginal probability distribution of the ith Dirichlet random variable is a beta distribution with parameters αi and α0−αi. The expected value for the ith Dirichlet random variable is and the variance is .
We assume that the amino acid frequencies follow a flat Dirichlet prior distribution in which (K=20). We consider several different prior distributions for the exchangeability parameters, θ. In general, the exchangeability parameters have the following Dirichlet probability distribution:
where S is the set of ordered amino acid states. The constant of integration is, again, a ratio of gamma functions. The parameters νij are constrained to sum to one. We interpret the parameter Χ as a concentration parameter that controls the variance of the Dirichlet prior distribution. The expectation and variance of the exchangeability parameters are E(θij)=νij and , respectively. Note that the maximum variance allowed is νij(1−νij) that occurs at the improper prior Χ=0 and is the variance associated with a single draw from a binomial with proportion νij. One can also show that ; θij and θmn will be most correlated when Χ=0 which corresponds to the covariance associated with a single draw from a multinomial .
We consider Dirichlet prior distributions for the exchangeability parameters that are centred on different values. To centre the prior distribution on a particular fixed amino acid rate matrix, we set the νij such that they are equal to the scaled entries of the fixed rate matrix. (A similar approach of using an informative Dirichlet prior was described by Zwickl & Holder 2004.) Consider, for example, the following fixed rate matrix with only three states
A Dirichlet prior distribution centred on this rate matrix would have , and . The concentration parameter, Χ, specifies how the probability density is spread around the centred rate value. When Χ is small, the prior probability, while still centred on the values of the fixed rate matrix, has more prior density on values that are quite different from those specified by the rate matrix. On the other hand, large values of Χ put very little prior probability density on rates that are different from those specified by the fixed model. Note, in fact, that as Χ→∞, the variance decreases to zero; the centred model becomes equivalent to the fixed model, with no probability density on rate values even slightly different from the fixed rates. The small example given here involves only three rates. However, the reader should see that the 3-state model is isomorphic with a 20-state amino acid model, but with
centred rates instead of
centred rates.
Our parametrization of the Dirichlet prior for the exchangeability parameters allows us to explore a large number of prior models on the rates. For example, we can specify the GTR model, with a flat prior, by setting all νij=1/190 and Χ=190. Similarly, we can explore the sensitivity of rate parameter estimates centred on fixed amino acid models by varying the concentration parameter Χ.
(b) Model choice and model averaging
In this paper, we consider 10 amino acid models, denoted M1, M2, …, M10. The 10 amino acid models correspond to the Poisson (M1; Bishop & Friday 1987), Jones (M2; Jones et al. 1992), Dayhoff (M3; Dayhoff et al. 1978), Mtrev (M4; Adachi & Hasegawa 1996), Mtmam (M5; Cao et al. 1998; Yang et al. 1998), WAG (M6; Whelan & Goldman 2001), Rtrev (M7; Dimmic et al. 2002), Cprev (M8; Adachi et al. 2000), Vt (M9; Muller & Vingron 2000) and Blosum (M10; Henikoff & Henikoff 1992) models.
In a Bayesian analysis, inferences are based upon the joint posterior probability distribution of the model parameters. For the phylogeny problem, the joint posterior probability is calculated using Bayes' theorem as
where is the likelihood for the ith tree and jth amino acid model; f(νi) is the prior probability density distribution for branch lengths; and T(s) is the number of unrooted trees possible for s species . In this study, all trees and all amino acid models are considered to be equally probable, a priori. If one is interested only in the phylogeny of the species, then inferences are based upon the marginal posterior probability distribution of phylogenetic trees. The marginal posterior probability of the ith tree is obtained by integrating over the other model parameters:
Note that the estimate of phylogeny does not depend upon any particular fixed model of amino acid substitution; the posterior probability of a tree is averaged over all 10 amino acid models. This formulation of the problem does not force the biologist to choose a particular amino acid model.
The posterior probability distribution of phylogenetic trees cannot be calculated analytically. MCMC (Metropolis et al. 1953; Hastings 1970), however, can be used to approximate the posterior probability of a tree. The details of MCMC as applied to the phylogeny problem have been described elsewhere (see Larget & Simon 1999; Huelsenbeck et al. 2001). In short, the posterior probability distribution of parameters is approximated using a Markov chain which has a stationary distribution that is the posterior probability distribution of the parameters. New states for the chain (trees and branch lengths) are proposed using a stochastic mechanism and accepted or rejected according to the formula of Metropolis et al. (1953) and Hastings (1970). States are sampled from the chain when at stationarity. The fraction of the time the chain dwells on any particular tree is a valid approximation of the posterior probability of that tree. We note one important change in implementing the mixed model analysis of amino acid data; in addition to proposal mechanisms that change the tree and branch lengths, we also include a proposal mechanism that changes the amino acid rate matrix that is used to calculate likelihoods. The proposal mechanism works as follows. The current amino acid model is denoted M. We propose a new model, denoted M′, by choosing one of the other nine models with equal probability. The proposed model is accepted with probability
In a Bayesian analysis, model choice is often guided by Bayes factors. The Bayes factor for a comparison of two models (M1 and M2) is calculated as the ratio of the marginal likelihoods
The Bayes factor measures the ‘the change in the odds in favour of the hypothesis when going from the prior to the posterior’ (Lavine & Schervish 1999, p. 120). In this study, we calculate the Bayes factor for each model, against all of the other models. The Bayes factor for amino acid model i, then, is
(c) Considering amino acid models as partitions
Consider, again, the three-state model of change with instantaneous rate matrix
and exchangeability parameters θij, where 0≤i≤j≤2. This rate matrix is analogous to the GTR model of DNA or amino acid substitution, but with three states instead of 4 or 20. The exchangeability parameters can be restricted to give submodels of the most general model. For example, if rates are constrained to be equal, with θ01=θ02=θ12, then the model is isomorphic to the model first described by Felsenstein (1981). Other possible models apply the restriction θ01=θ02, θ01=θ12 and θ02=θ12. The last possible model does not constrain equalities among the exchangeability parameters. We label possible models by introducing a notation that allows all of the possible models to be labelled. Here, there are three exchangeability parameters, and the possible labels for the models are
The first model, with label , constrains the three exchangeability parameters to be equal to one another. Similarly, the second model listed, , constrains θ01=θ02, but allows θ12 to vary freely (subject to the constraint that the three exchangeability parameters sum to one). Huelsenbeck et al. (2004) introduced this notation to describe all of the submodels of the GTR model of nucleotide substitution. Here, the set of exchangeability parameters is considered a partition, and the possible partitions are labelled according to the restricted growth function notation of Stanton & White (1986). The same scheme for labelling nucleotide models is implemented in the program PAUP* (Swofford 1998), but with the indices being letters instead of numbers.
The number of possible partitions of n elements is described by the Bell numbers (Bell 1934). The Bell numbers are defined as
where is the Stirling number of the second kind
and is the number of ways to partition n elements into k subsets. For the small example given above consisting of three states, the total number of ways to partition the rates is . Similarly, when only the exchangeability parameters are considered, there are a total of possible time-reversible four-state nucleotide models (Huelsenbeck et al. 2004). (Note that there are many more possible models when stationary frequencies are considered to be fixed or estimated parameters of the model.) The number of possible time-reversible amino acid models is vast. A general time-reversible model of amino acid substitution has 190 exchangeability parameters, meaning that there are a total of possible models, the most parameter rich of which has 190 independently estimated rates and the simplest of which has a common rate for all 190 exchangeability parameters.
We consider phylogenetic analysis of amino acid data when the candidate pool of substitution models consists of all 6.59×10258 time-reversible substitution models. Huelsenbeck et al. (2004) performed analysis of nucleotide data on the set of 203 possible time-reversible nucleotide models, placing a uniform prior probability distribution on all possible models. However, directly extending the approach of Huelsenbeck et al. (2004) to the amino acid data is not feasible for several reasons. First, if a uniform prior probability distribution is placed on all possible amino acid models, the result is a prodigious amount of probability on models with an intermediate number of substitution rates. For example, models with k=48 substitution types have a probability of , whereas models with only k=3 rate classes have a probability of . The posterior probability of the number of substitution types is strongly affected by the prior, and is drawn to models with approximately 50 rate classes simply because there are so many more models with an intermediate number of rate classes. Second, the MCMC used in the Huelsenbeck et al. (2004) paper does not work efficiently for a problem with 190 substitution types.
We take a different approach in this paper. We use a Dirichlet process prior model (Ferguson 1973; Antoniak 1974) as a prior probability on substitution models. The Dirichlet process prior is a probability model on partitions and has been usefully applied in several contexts in phylogenetics and evolutionary biology (Lartillot & Philippe 2004; Huelsenbeck et al. 2006). Moreover, robust MCMC methods have been developed for this model, which allow effective exploration of the space of partitions (Neal 2000). The Dirichlet process prior has a single parameter, here denoted β>0, that controls the ‘clumpiness’ of the process. A simple description of the Dirichlet process prior is as follows. Consider adding rate classes sequentially. Let the probability that a new rate class is added at the ith step be . If we keep track of the number of rate classes added, by letting Yi be a binary random variable that is equal to one, when a new rate class is added, then the total number of rate classes is . Here n is the total number of possible rates (n=190). Therefore, . Small values for β result in only a few groups of substitution types (k) whereas large values of β place more probability on large values of k. In fact, the prior probability of two rate parameters being placed in the same group is 1/1+β. Since the number of substitution types is on the order of the natural logarithm of the total number of substitutions, the prior gives more weight to fewer classes than the uniform prior on partitions.
(d) Data
We analysed eight alignments of amino acid sequences: (i) adh sequences from s=23 Drosophila species (Cao et al. 1998; Yang et al. 2000), (ii) β-globin sequences from s=17 vertebrates (Yang et al. 2000), (iii) coat protein sequences from s=9 viruses from the family Leviviridae (Bollback & Huelsenbeck 2001), (iv) env sequences from s=23 Japanese encephalitis viral samples (Yang et al. 2000), (v) pol sequences from s=23 HIV samples (Yang et al. 2000), (vi) s=28 hemagglutinin sequences from influenza virus (type A; Fitch et al. 1997; Yang et al. 2000), (vii) replicase sequences from s=9 viruses from the family Leviviridae (Bollback & Huelsenbeck 2001) and (viii) E-glycoprotein sequences sampled from s=18 flavivirus (Zanotto et al. 1996; Yang et al. 2000).
3. Results
For each analysis of this paper, two MCMC analyses, each of four million cycles, were performed. Paired chains were checked for convergence to the same marginal probability distribution for the 190 exchangeability, 20 state frequency and gamma-shape parameters using the program Tracer (Rambaut & Drummond 2007) and boa (Smith 2007). Inferences were based on samples taken after the one millionth MCMC cycle. Analysis of the post-burn-in samples taken by each pair of chains shows that all analyses had estimated sample sizes greater than 100 (for the combined analyses) and resulted in very similar (by eye) marginal posterior probability distributions for all of the exchangeability parameters. We also calculated the ‘potential scale reduction factor’ statistic of Gelman & Rubin (1992) using the program boa (Smith 2007). The potential scale reduction compares the between-chain variance to the within-chain variance and approaches one from above. Values of less than 1.2–1.3 are taken as evidence that the chain has converged for that parameter (Gelman 1996). Figure 1 shows the values of for all of the parameters shown in this paper. The vast majority of these parameters have less than 1.05, with only a few having values of between 1.2 and 1.3.
(a) Analysis under the GTR model of amino acid substitution
We estimated the exchangeability parameters of the GTR model of amino acid substitution under a flat Dirichlet prior probability distribution. In our formulation, the flat Dirichlet distribution has all νij=1/190 and Χ=190. We used MCMC to approximate the joint posterior probability distribution of the exchangeability parameters (θ), amino acid frequency parameters (π), gamma-shape parameter (γ), phylogenetic tree (τ) and branch-length parameters (ν).
Figure 2 shows the marginal posterior and prior probability distributions of four of the exchangeability parameters for the HIV alignment. The marginal posterior probability distribution for a parameter integrates over uncertainty in all of the other model parameters. Hence, the marginal distributions shown in figure 2 are not conditioned on any particular phylogenetic tree, set of branch lengths, etc., but rather account for uncertainty in these nuisance parameters. The prior probability distribution of a single exchangeability parameter follows a beta distribution with parameters 1 and 189. The posterior distribution differs for each of the parameters. The posterior probability distribution for the rate of substitution between amino acids M and Y closely resembles the prior probability distribution; there is very little information in the data about this particular parameter. However, for the other three exchangeability parameters shown in figure 2, the data are informative and the marginal posterior probability distribution is shifted away from the prior distribution.
Summarizing the results of a Bayesian analysis of a parameter-rich model can be difficult. We summarize the results of the Bayesian analyses of the exchangeability parameters in two ways. First, we examine the mean of the marginal posterior probability distribution for each rate. Second, we also calculate the Kullback–Leibler divergence (Kullback & Leibler 1951) between the prior and posterior probability distributions for each exchangeability parameter. The Kullback–Leibler divergence between two continuous probability distributions, f(x) and g(x), is defined as
where integration is over all possible values of the random variable x. We assume that the posterior probability distribution can be closely approximated by a beta distribution with parameters that are estimated from the MCMC output. The Kullback–Leibler divergence between two beta distributions, one with parameters a1 and b1 and the other with parameters a2 and b2 is
where, as earlier, the beta function is the ratio of gamma functions and is the digamma function. Figure 2 shows the Kullback–Leibler divergence between the prior and posterior distributions for the exchangeability parameters, R↔K, I↔V, N↔D and M↔Y. Note that the Kullback–Leibler divergence is large when the prior and posterior distributions are dissimilar. The Kullback–Leibler divergence can be interpreted as a measure of the informativeness of the data about the value of the exchangeability parameter.
The amino acid sequence data are informative for some, but not all, of the exchangeability parameters. Figure 3 shows a summary for each of the eight alignments examined in this study. For each alignment, the mean of the posterior distribution and the Kullback–Leibler divergence are shown for the 190 exchangeability parameters. Note that the Kullback–Leibler divergence is small for many of the exchangeability parameters. In these cases, the data are not particularly informative about the value of the parameter. However, in some cases, the Kullback–Leibler divergence is large. The data are informative about the realized value of these exchangeability parameters.
(b) Analysis under ‘centred’ fixed amino acid prior models
We analysed one of the eight alignments (the HIV alignment) under four ‘centred’ prior models. Specifically, we analysed the data under a prior centred on the Poisson (Bishop & Friday 1987), Blosum (Henikoff & Henikoff 1992), Jones (Jones et al. 1992) and WAG (Whelan & Goldman 2001) models. These analyses were designed to address three questions: (i) How are the substitution rates affected by the prior model? (ii) How informative is the data about the substitution rates? and (iii) What is the effect of the concentration parameter, Χ, on the exchangeability parameters?
Figure 4 shows the marginal prior and posterior probability densities for a few of the substitution rates. Specifically, figure 4 shows the marginal prior and posterior probability densities of the I↔V (θIV) and M↔F (θMF) parameters for the HIV alignment. In each case, the exchangeability parameters were chosen to display an instance in which the data are informative (I↔V) and rather uninformative (M↔F) about the parameter's value. Note that the posterior distribution is shifted away from the prior distribution for the case in which the data are informative. This shift towards larger values of the exchangeability parameter results in a larger Kullback–Leibler divergence when compared with the case in which the data are uninformative. The prior and posterior probability densities are almost indistinguishable for the uninformative rate, resulting in a small Kullback–Leibler divergence. Figure 5 shows the Kullback–Leibler divergences for all 190 exchangeability parameters for the HIV alignment. In general, the posterior probability distribution of an exchangeability parameter becomes more similar to the prior distribution as the concentration parameter, Χ, is increased.
The concentration parameter, Χ, strongly influences the posterior probability distributions of the exchangeability parameters. Figure 6 shows the marginal posterior probability distribution for one of the exchangeability parameters (I↔V) for the HIV alignment when the prior is centred on the Poisson model. The marginal posterior distributions are most similar when Χ is small (e.g. when Χ=0.1 and Χ=1), but quite different for larger values of Χ. A large value for the concentration parameter states that many prior observations of exchanges (substitutions) between amino acids were observed. Why do we say this? For most statistical problems, the Dirichlet probability distribution is used as a prior for multinomially distributed data. The Dirichlet distribution is conjugated with the multinomial distribution, which means that when a Dirichlet prior distribution is combined with a multinomial-likelihood function, the posterior distribution is also a Dirichlet distribution (but with different parameter values than the prior). The parameter values of the Dirichlet prior are interpreted as the prior number of observations. Hence, a Dirichlet with parameters α1=1, α2=1, α3=1 and α4=1 essentially assumes four prior observations (one for each of the four categories). In our use of the Dirichlet prior distribution, the Χ parameter can be interpreted as the prior number of observations. Hence, a value of Χ=100 might be interpreted as there being 100 prior observations. For many datasets, even a value of Χ=100 might be considered large, and potentially swamp the information in the alignment about the values of the exchangeability parameters. Small values of Χ, however, do not appear to strongly affect the posterior distribution of substitution rate.
(c) Averaging over fixed amino acid models
We performed phylogenetic analyses under a mixture of the fixed amino acid models. The mixture model was not applied on a per site basis (i.e. the likelihood for each site is calculated as an average over the 10 fixed amino acid models), but rather each amino acid model was applied to the entire alignment (i.e. only a single amino acid model is used to calculate the likelihood for the alignment, and MCMC is used to perform the model averaging). We summarize the results of these analyses using the posterior probabilities and Bayes factors for the 10 fixed amino acid models (tables 1 and 2). In general, the M2 (Jones et al. 1992), M3 (Dayhoff et al. 1978) and M6 (Whelan & Goldman 2001) models performed the best for the eight alignments examined in this study.
Table 1.
model | A | B | C | D | E | F | G | H |
---|---|---|---|---|---|---|---|---|
M1 | 6.20×10−101 | 3.69×10−119 | 1.33×10−66 | 1.52×10−72 | 1.56×10−151 | 9.01×10−55 | 5.35×10−254 | 2.54×10−95 |
M2 | 6.20×10−3 | 1.04×10−10 | 1.41×10−8 | 9.99×10−1 | 9.99×10−1 | 9.99×10−1 | 9.99×10−1 | 1.69×10−10 |
M3 | 2.81×10−11 | 9.99×10−1 | 1.39×10−8 | 2.11×10−15 | 1.71×10−18 | 1.27×10−14 | 4.12×10−45 | 1.09×10−26 |
M4 | 5.55×10−34 | 2.59×10−53 | 1.52×10−60 | 3.40×10−33 | 2.47×10−87 | 3.16×10−33 | 3.04×10−131 | 3.95×10−91 |
M5 | 5.46×10−44 | 8.65×10−78 | 7.53×10−89 | 3.72×10−32 | 1.92×10−113 | 5.07×10−37 | 2.56×10−143 | 6.65×10−121 |
M6 | 9.88×10−1 | 5.04×10−6 | 9.99×10−1 | 4.10×10−8 | 7.81×10−6 | 1.54×10−8 | 7.22×10−31 | 2.27×10−2 |
M7 | 4.53×10−3 | 1.04×10−13 | 4.14×10−9 | 2.68×10−32 | 3.21×10−20 | 4.11×10−24 | 1.99×10−12 | 6.91×10−10 |
M8 | 6.67×10−4 | 5.65×10−19 | 1.97×10−9 | 2.99×10−10 | 5.26×10−7 | 1.20×10−8 | 6.49×10−17 | 5.68×10−10 |
M9 | 2.24×10−7 | 1.77×10−27 | 5.14×10−5 | 1.34×10−15 | 9.83×10−17 | 2.96×10−17 | 1.31×10−44 | 4.28×10−18 |
M10 | 1.51×10−10 | 8.13×10−24 | 4.43×10−5 | 6.40×10−23 | 2.21×10−20 | 4.00×10−22 | 3.12×10−67 | 9.77×10−1 |
Table 2.
model | A | B | C | D | E | F | G | H |
---|---|---|---|---|---|---|---|---|
M1 | 5.58×10−100 | 3.32×10−118 | 1.19×10−65 | 1.41×10−71 | 1.41×10−150 | 8.11×10−54 | 4.81×10−253 | 2.29×10−94 |
M2 | 5.61×10−2 | 9.41×10−10 | 1.26×10−7 | 2.17×108 | 1.08×106 | 3.26×108 | 4.51×1012 | 1.52×10−9 |
M3 | 2.53×10−10 | 1.78×106 | 1.25×10−7 | 1.89×10−14 | 1.54×10−17 | 1.14×10−13 | 3.71×10−44 | 9.81×10−26 |
M4 | 5.00×10−33 | 2.33×10−52 | 1.37×10−59 | 3.06×10−32 | 2.22×10−86 | 2.84×10−32 | 2.73×10−130 | 3.56×10−90 |
M5 | 4.91×10−43 | 7.78×10−77 | 6.78×10−88 | 3.34×10−31 | 1.73×10−112 | 4.56×10−36 | 2.31×10−142 | 5.99×10−120 |
M6 | 7.80×102 | 4.53×10−5 | 9.39×104 | 3.69×10−7 | 7.03×10−5 | 1.39×10−7 | 6.49×10−30 | 2.09×101 |
M7 | 4.09×10−2 | 9.44×10−13 | 3.73×10−8 | 2.41×10−31 | 2.89×10−19 | 3.70×10−23 | 1.79×10−11 | 6.22×10−9 |
M8 | 6.01×10−3 | 5.09×10−18 | 1.77×10−8 | 2.69×10−9 | 4.74×10−6 | 1.08×10−7 | 5.84×10−16 | 5.12×10−9 |
M9 | 2.02×10−6 | 1.60×10−26 | 4.62×10−4 | 1.21×10−14 | 8.85×10−16 | 2.66×10−16 | 1.17×10−43 | 3.85×10−17 |
M10 | 1.36×10−9 | 7.32×10−23 | 3.98×10−4 | 5.76×10−22 | 1.98×10−19 | 3.60×10−21 | 2.81×10−66 | 3.86×102 |
(d) Considering the substitution model as a partition of substitution rates
We performed analyses in which the substitution models were considered partitions of the 190 substitution rates. As described above, we assumed a Dirichlet process prior probability model that places some probability on all 6.59×10258 possible time-reversible amino acid substitution models and explored the consequence of using different values for the concentration parameter of the Dirichlet process prior (β). Specifically, we fixed β such that the prior mean for the number of rate categories (K) was 2, 5 and 10 (which are achieved by using β=0.18, 0.81 and 2.09, respectively). Figure 7 summarizes one important aspect of the MCMC analyses: the number of rate categories explored by the Markov chain. Note that in none of the analyses was there much posterior probability on K=1, even when a lot of prior probability was placed on the simplest possible amino acid model, as was the case when E(K)=2. The posterior probability for K=1 was close to zero for all eight analyses and for each prior on K that we explored. Although the data were informative about small values of K, they were less so for large values of K. The prior and posterior probability distributions on the number of substitution rate categories were similar when the prior mean for the number of categories was E(K)=10.
Even though the posterior probability distribution on the number of substitution types varied from one analysis to another, mostly depending on the prior placed on K, summaries of the substitution models visited were remarkably consistent. Figure 8 shows the ‘mean partition’ for each of the three analyses we conducted for each alignment. The mean partition is the partition that minimizes the squared distance to all of the sampled partitions (Huelsenbeck & Andolfatto 2007). We use a distance on partitions, described by Gusfield (2002). The distance between two partitions is the minimum number of elements that must be moved between subsets to make one of the partitions identical to the other. (Or, equivalently, it is the minimum number of elements that must be deleted to make the induced partitions the same.) The mean partitions are similar under the three different choices of β we examined for each alignment, with the same exchangeability parameters usually being grouped together.
4. Discussion
Amino acid substitution models are quite complex and parameter rich with regard to both the number of substitution rates to be estimated and the number of ways to partition rates. No single dataset is expected to contain enough information to resolve the phylogeny while simultaneously providing accurate estimates of all parameters. A synthesis of various data sources is necessary, and the Bayesian approach described above provides a statistically rigorous framework that performs this synthesis. We explored several different approaches to the analysis of amino acid data, three of which extend previous work on the development of fixed amino acid models, and one of which extends work on model averaging of DNA substitution models (Huelsenbeck et al. 2004).
One possible approach, explored here and implemented in MrBayes (Ronquist & Huelsenbeck 2003), is to simply average inferences over a set of fixed amino acid models. This approach has the advantage that it automates the choice of fixed amino acid models, selecting the model or models that are most appropriate for the data in hand. In practice, however, we found that little averaging occurred, because virtually all of the posterior probability is placed on a single amino acid model. Moreover, this approach assumes that one of the fixed amino acid models is appropriate for the data in hand, though in reality none of the models in the candidate pool of models may be particularly appropriate.
Unlike the fixed amino acid models, the centred model allows for the possibility that the data in hand do not conform to any particular amino acid model. The treatment of amino acid substitutions under either the centred models or the GTR model (a model ‘centred’ on the Poisson model rates) does not entail a significant computational burden when posterior probabilities are approximated using MCMC. Maximum-likelihood estimation of the substitution parameters, by contrast, is expected to be difficult not only owing to the large number of parameters to estimate but also because the likelihood surface is likely to be flat as there is little information in a small alignment about many of the exchangeability parameters. Furthermore, by using a substitution model centred about a fixed amino acid model, one can use prior information about amino acid substitution processes combined with the data at hand to produce valid phylogenetic inferences. Indeed, an alternative to producing fixed amino acid models is to produce distributions of substitution rates from databases of alignments, such as the Pandit database (Whelan et al. 2003, 2006).
Perhaps the most intriguing possibility for the analysis of amino acid models is directly motivated by work on nucleotide models that are all four-state time-reversible continuous-time Markov chains. Several different substitution models have been described, such as those described by Jukes & Cantor (1969), Kimura (1980) and Tamura & Nei (1993), which are all simply special cases of the GTR model of DNA substitution (Tavaré 1986) but with restrictions on the substitution rates. There are a total of 203 possible models of nucleotide substitution, with about a half dozen being formally described. As we have shown here, this approach can be directly extended to the analysis of amino acid data, with the total number of restrictions on substitution rates now being 6.59×10258. Substitution models in this framework are considered partitions, and in our implementation, we placed a Dirichlet process prior probability distribution on the model partitions, using MCMC to explore the space of models. The number of parameters to be estimated is determined by how the amino acid substitution rates are partitioned into equivalence classes. The data suggest a relatively small number of partitions. Thus, a uniform prior on partitions, as described by Huelsenbeck et al. (2004), places too much weight on an intermediate number of rate classes and is inefficient. The Dirichlet process prior provides a flexible class of priors, where the number of classes can be controlled by a single parameter β and the influence of the choice of β on the posterior can be assessed. Importantly, we find that the mean number of partitions to be very similar for a variety of choices of β.
Acknowledgments
J.P.H. was supported by NIH grant GM-069801 and NSF grant DEB-0445453. P.J. was supported by NIH grant GM-076040 and NSF grant DEB-0515738.
One contribution of 17 to a Discussion Meeting Issue ‘Statistical and computational challenges in molecular phylogenetics and evolution’.
Endnote
Of the 210 parameters, 208 are free to vary. The amino acid frequency parameters are constrained to sum to one, so knowledge of 19 of them is sufficient. Most implementations of the GTR model involve rescaling the substitution rates to be one, so only the relative values of the exchangeability parameters influence the likelihood and one loses a free parameter from the list of exchangeability parameters. In many implementations, one of the substitution rates is set to one, and the others are measured relative to that value. Here, we will persist in treating all 190 exchangeability parameters as if they were independently estimated.
References
- Adachi J, Hasegawa M. MOLPHY v. 2.3: programs for molecular phylogenetics based on maximum likelihood. Comput. Sci. Monogr. 1996;28:1–150. [Google Scholar]
- Adachi J, Waddell P, Martin W, Hasegawa M. Plastid genome phylogeny and a model of amino acid substitution for proteins encoded by chloroplast DNA. J. Mol. Evol. 2000;50:348–358. doi: 10.1007/s002399910038. [DOI] [PubMed] [Google Scholar]
- Antoniak C.E. Mixtures of Dirichlet processes with applications to non-parametric problems. Ann. Stat. 1974;2:1152–1174. doi:10.1214/aos/1176342871 [Google Scholar]
- Bell E.T. Exponential numbers. Am. Math. Monthly. 1934;41:411–419. doi:10.2307/2300300 [Google Scholar]
- Bishop M.J, Friday A.E. Tetrapod relationships: the molecular evidence. In: Patterson C, editor. Molecules and morphology in evolution: conflict or compromise? Cambridge University Press; Cambridge, UK: 1987. pp. 123–140. [Google Scholar]
- Bollback J, Huelsenbeck J.P. Phylogenetic relationships, genome evolution, and host specificity of single-stranded RNA bacteriophage (Family Leviviridae) J. Mol. Evol. 2001;52:117–128. doi: 10.1007/s002390010140. [DOI] [PubMed] [Google Scholar]
- Cao Y, Janke A, Waddell P.J, Westerman M, Takenaka O, Murata S, Okada N, Pääbo S, Hasegawa M. Conflict amongst individual mitochondrial proteins in resolving the phylogeny of eutherian orders. J. Mol. Evol. 1998;47:307–322. doi: 10.1007/pl00006389. doi:10.1007/PL00006389 [DOI] [PubMed] [Google Scholar]
- Cornish-Bowden A. Nomenclature for incompletely specified bases in nucleic acid sequences: recommendations 1984. Nucleic Acids Res. 1985;13:3021–3030. doi: 10.1093/nar/13.9.3021. doi:10.1093/nar/13.9.3021 [DOI] [PMC free article] [PubMed] [Google Scholar]
- Dayhoff, M. O., Schwartz, R. M. & Orcutt, B. C. 1978 A model of evolutionary change in proteins. In: Atlas of protein sequence and structure, vol. 5, Supplement 3, pp. 345–352. Washington, DC: National Biomedical Research Foundation.
- Dimmic M.W, Rest J.S, Mindell D.P, Goldstein D. RArtREV: an amino acid substitution matrix for inference of retrovirus and reverse transcriptase phylogeny. J. Mol. Evol. 2002;55:65–73. doi: 10.1007/s00239-001-2304-y. doi:10.1007/s00239-001-2304-y [DOI] [PubMed] [Google Scholar]
- Felsenstein J. Evolutionary trees from DNA sequences: a maximum likelihood approach. J. Mol. Evol. 1981;17:368–376. doi: 10.1007/BF01734359. doi:10.1007/BF01734359 [DOI] [PubMed] [Google Scholar]
- Ferguson T.S. A Bayesian analysis of some nonparametric problems. Ann. Stat. 1973;1:209–230. doi:10.1214/aos/1176342360 [Google Scholar]
- Fitch W.M, Bush R.M, Bender C.A, Cox N.J. Long term trends in the evolution of H(3) HA1 human influenza type A. Proc. Natl Acad. Sci. USA. 1997;94:7712–7718. doi: 10.1073/pnas.94.15.7712. doi:10.1073/pnas.94.15.7712 [DOI] [PMC free article] [PubMed] [Google Scholar]
- Gelman A. Inference and monitoring convergence. In: Gilks W.R, Richardson S, Spiegelhalter D.J, editors. Markov Chain Monte Carlo in practice. Chapman and Hall; London, UK: 1996. pp. 131–143. [Google Scholar]
- Gelman A, Rubin D.B. Inferences from iterative simulation using multiple sequences. Stat. Sci. 1992;7:457–511. doi:10.1214/ss/1177011136 [Google Scholar]
- Gusfield D. Partition-distance: a problem and class of perfect graphs arising in clustering. Inf. Process. Lett. 2002;82:159–164. doi:10.1016/S0020-0190(01)00263-0 [Google Scholar]
- Hastings W.K. Monte Carlo sampling methods using Markov chains and their applications. Biometrika. 1970;57:97–109. doi:10.1093/biomet/57.1.97 [Google Scholar]
- Henikoff S, Henikoff J.G. Amino acid substitution matrices from protein blocks. Proc. Natl Acad. Sci. USA. 1992;89:10 915–10 919. doi: 10.1073/pnas.89.22.10915. doi:10.1073/pnas.89.22.10915 [DOI] [PMC free article] [PubMed] [Google Scholar]
- Huelsenbeck J.P, Andolfatto P. Inference of population structure under a Dirichlet process model. Genetics. 2007;175:1787–1802. doi: 10.1534/genetics.106.061317. doi:10.1534/genetics.106.061317 [DOI] [PMC free article] [PubMed] [Google Scholar]
- Huelsenbeck J.P, Ronquist F, Nielsen R, Bollback J. Bayesian inference of phylogeny and its impact on evolutionary biology. Science. 2001;294:2310–2314. doi: 10.1126/science.1065889. doi:10.1126/science.1065889 [DOI] [PubMed] [Google Scholar]
- Huelsenbeck J.P, Larget B, Alfaro M.E. Bayesian phylogenetic model selection using reversible jump Markov chain Monte Carlo. Mol. Biol. Evol. 2004;21:1123–1133. doi: 10.1093/molbev/msh123. doi:10.1093/molbev/msh123 [DOI] [PubMed] [Google Scholar]
- Huelsenbeck J.P, Jain S, Frost S.W.D, Pond S.L.K. A Dirichlet process model for detecting positive selection in protein-coding DNA sequences. Proc. Natl Acad. Sci. USA. 2006;103:6263–6268. doi: 10.1073/pnas.0508279103. doi:10.1073/pnas.0508279103 [DOI] [PMC free article] [PubMed] [Google Scholar]
- Jones D.T, Taylor W.R, Thornton J.M. The rapid generation of mutation data matrices from protein sequences. Comput. Appl. Biosci. 1992;8:275–282. doi: 10.1093/bioinformatics/8.3.275. [DOI] [PubMed] [Google Scholar]
- Jukes T.H, Cantor C.R. Evolution of protein molecules. In: Munro H.N, editor. Mammalian protein metabolism. Academic Press; New York, NY: 1969. pp. 21–123. [Google Scholar]
- Kimura M. A simple method for estimating evolutionary rates of base substitutions through comparative studies of nucleotide sequences. J. Mol. Evol. 1980;16:111–120. doi: 10.1007/BF01731581. doi:10.1007/BF01731581 [DOI] [PubMed] [Google Scholar]
- Kosiol C, Holmes I, Goldman N. An empirical codon model for protein sequence evolution. Mol. Biol. Evol. 2007;24:1464–1479. doi: 10.1093/molbev/msm064. doi:10.1093/molbev/msm064 [DOI] [PubMed] [Google Scholar]
- Kullback S, Leibler R.A. On information and sufficiency. Ann. Math. Stat. 1951;22:79–86. doi:10.1214/aoms/1177729694 [Google Scholar]
- Larget B, Simon D.L. Markov chain Monte Carlo algorithms for the Bayesian analysis of phylogenetic trees. Mol. Biol. Evol. 1999;16:750–759. [Google Scholar]
- Lartillot N, Philippe H. A Bayesian mixture model for across-site heterogeneities in the amino-acid replacement process. Mol. Biol. Evol. 2004;21:1095–1109. doi: 10.1093/molbev/msh112. doi:10.1093/molbev/msh112 [DOI] [PubMed] [Google Scholar]
- Lavine M, Schervish M.J. Bayes factors: what they are and what they are not. Am. Stat. 1999;53:119–122. doi:10.2307/2685729 [Google Scholar]
- Metropolis N, Rosenbluth A.W, Rosenbluth M.N, Teller A.H, Teller E. Equation of state calculations by fast computing machines. J. Chem. Phys. 1953;21:1087–1092. doi:10.1063/1.1699114 [Google Scholar]
- Muller T, Vingron M. Modeling amino acid replacement. J. Comput. Biol. 2000;7:761–776. doi: 10.1089/10665270050514918. doi:10.1089/10665270050514918 [DOI] [PubMed] [Google Scholar]
- Neal R.M. Markov chain sampling methods for Dirichlet process mixture models. J. Comput. Graph. Stat. 2000;9:249–265. doi:10.2307/1390653 [Google Scholar]
- Rambaut, A. & Drummond, A. J. 2007 Tracer v. 1.4. See http://beast.bio.ed.ac.uk/Tracer
- Ronquist F, Huelsenbeck J.P. MrBayes 3: Bayesian phylogenetic inference under mixed models. Bioinformatics. 2003;19:1572–1574. doi: 10.1093/bioinformatics/btg180. doi:10.1093/bioinformatics/btg180 [DOI] [PubMed] [Google Scholar]
- Smith B.J. boa: an R package for MCMC output convergence assessment and posterior inference. J. Stat. Softw. 2007;21:1–37. [Google Scholar]
- Stanton D, White D. Springer; New York, NY: 1986. Constructive combinatorics. [Google Scholar]
- Swofford D.L. Sinauer Associates, Inc; Sunderland, MA: 1998. PAUP*: phylogenetic analysis using parsimony (*and other methods), v. 4.0.b10. [Google Scholar]
- Tamura K, Nei M. Estimation of the number of nucleotide substitutions in the control region of mitochondrial DNA in humans and chimpanzees. Mol. Biol. Evol. 1993;10:512–526. doi: 10.1093/oxfordjournals.molbev.a040023. [DOI] [PubMed] [Google Scholar]
- Tavaré S. Some probabilistic and statistical problems on the analysis of DNA sequences. Lect. Math. Life Sci. 1986;17:57–86. [Google Scholar]
- Whelan S, Goldman N. A general empirical model of protein evolution derived from multiple protein familes using a maximum likelihood approach. Mol. Biol. Evol. 2001;18:691–699. doi: 10.1093/oxfordjournals.molbev.a003851. [DOI] [PubMed] [Google Scholar]
- Whelan S, de Bakker P, Goldman N. Pandit: a database of protein and associated nucleotide domains with inferred trees. Bioinformatics. 2003;19:1556–1563. doi: 10.1093/bioinformatics/btg188. doi:10.1093/bioinformatics/btg188 [DOI] [PubMed] [Google Scholar]
- Whelan S, de Bakker P, Quevillon E, Rodriguez N, Goldman N. PANDIT: an evolution-centric database of protein and associated nucleotide domains with inferred trees. Nucleic Acids Res. 2006;34:D327–D331. doi: 10.1093/nar/gkj087. doi:10.1093/nar/gkj087 [DOI] [PMC free article] [PubMed] [Google Scholar]
- Yang Z. Maximum likelihood estimation of phylogeny from DNA sequences when substitution rates differ over sites. Mol. Biol. Evol. 1993;10:1396–1401. doi: 10.1093/oxfordjournals.molbev.a040082. [DOI] [PubMed] [Google Scholar]
- Yang Z. Maximum likelihood phylogenetic estimation from DNA sequences with variable rates over sites: approximate methods. J. Mol. Evol. 1994;39:306–314. doi: 10.1007/BF00160154. doi:10.1007/BF00160154 [DOI] [PubMed] [Google Scholar]
- Yang Z, Nielsen R, Hasegawa M. Models of amino acid substitution and applications to mitochondrial protein evolution. Mol. Biol. Evol. 1998;15:1600–1611. doi: 10.1093/oxfordjournals.molbev.a025888. [DOI] [PubMed] [Google Scholar]
- Yang Z, Nielsen R, Goldman N, Pedersen A.M.K. Codon-substitution models for heterogeneous selection pressure. Genetics. 2000;155:431–449. doi: 10.1093/genetics/155.1.431. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Zanotto P.M, Gould E.A, Gao G.F, Harvey P.H, Holmes E.C. Population dynamics of flaviviruses revealed by molecular phylogenies. Proc. Natl Acad. Sci. USA. 1996;93:548–553. doi: 10.1073/pnas.93.2.548. doi:10.1073/pnas.93.2.548 [DOI] [PMC free article] [PubMed] [Google Scholar]
- Zwickl D.J, Holder M.T. Model parameterization, prior distributions, and the general time-reversible model in Bayesian phylogenetics. Syst. Biol. 2004;53:877–888. doi: 10.1080/10635150490522584. doi:10.1080/10635150490522584 [DOI] [PubMed] [Google Scholar]