Abstract
Background
Although the patterns of cosubstitutions in RNA is now well characterized, detection of coevolving positions in proteins remains a difficult task. It has been recognized that the signal is typically weak, due to the fact that (i) aminoacid are characterized by various biochemical properties, so that distinct amino acids changes are not functionally equivalent, and (ii) a given mutation can be compensated by more than one mutation, at more than one position.
Results
We present a new method based on phylogenetic substitution mapping. The two abovementioned problems are addressed by (i) the introduction of a weighted mapping, which accounts for the biochemical effects (volume, polarity, charge) of aminoacid changes, (ii) the use of a clustering approach to detect groups of coevolving sites of virtually any size, and (iii) the distinction between biochemical compensation and other coevolutionary mechanisms. We apply this methodology to a previously studied data set of bacterial ribosomal RNA, and to three protein data sets (myoglobin of vertebrates, Slocus Receptor Kinase and Methionine AminoPeptidase).
Conclusion
We succeed in detecting groups of sites which significantly depart the null hypothesis of independence. Group sizes range from pairs to groups of size ≃ 10, depending on the substitution weights used. The structural and functional relevance of these groups of sites are assessed, and the various evolutionary processes potentially generating correlated substitution patterns are discussed.
Background
Measuring the nonindependence (= coevolution) of positions (= sites) within a molecule – particularly a protein – is a major challenge of molecular evolution, as witnesses the large methodological effort achieved during the last decade (reviewed in [1]). Several theoretical and experimental arguments link the nonindependence of sites to structural and/or functional constraints in proteins. The mechanism most often invoked is the occurrence of compensating mutations, either locally or distantly. Local coevolution may reflect direct residueresidue interaction, whereas distal coevolution is supposed to be the result of more complex mechanisms like secondary structure shifts [2]. But coevolution may also be defined in a broader sense, as correlated evolution: two sites are said to be nonindependent if they tend to undergo substitution events in the same branches of the tree. Such events are called cosubstitutions [3].
The main pitfall in coevolution detection (and more generally in comparative analysis of biological data) is to distinguish the functional signal from the phylogenetic noise. The latter is due to the shared history of all sites, represented by the underlying phylogenetic tree. Several methods have been developed to assess the departure from independent evolution [212]. They differ by (i) the statistic used to measure nonindependence (correlation, mutual information), and especially whether it explicitly accounts for the compensatory nature of mutations or not, (ii) the assessment of the level of statistical significance (analytical, randomization, simulation) and (iii) the way they deal with phylogenetic inertia [1]. Global evidence of nonindependent evolution between sites has been reported. It has been shown that amino acids in close proximity (see for instance [7,12]) or belonging to the same proteic domain [8,13] tend to evolve in a more correlated way than randomly chosen sites. The specific task of pointing to nonindependently evolving sites in a given data set, however, suffers from methodological fuzziness and/or deficient software implementation. This probably explains why coevolution detection methods are not routinely used in pipelines for genomic annotation.
Here we introduce a new methodology to detect coevolving groups of sites within a molecule, based on the evolutionary history of these sites. The process is inferred by probabilistic substitution mapping, as we presented in a previous work [11], and is now extended to the protein case. The mapping procedure provides, for each site, an estimate of the number of substitutions in each branch of the tree. This procedure is extended to account for the biochemical properties of the amino acids, by weighting substitution events according to the physicochemical distance between amino acids. We then define coevolving sites either as sites showing correlated substitution histories, extending the approach of [3], or by sites exhibiting explicit compensation.
It is likely that in proteins one substitution can be compensated by several other substitutions occurring at different positions. Looking for pairs of coevolving sites, as attempted so far, may therefore underestimate the coevolution signal in proteins. Performing an exhaustive search of groups of arbitrary size, however, is inefficient, and in most cases impossible, due to the high number of possible combinations. Clustering techniques are standard methods designed to cope with this issue. Surprisingly, these methods have never been applied to the detection of coevolution. We present here a hierarchical clustering approach to detect good candidate groups of coevolving sites. A statistical procedure is introduced to evaluate the significance of candidate clusters through parametric bootstrap. Using four example data sets, each with its own specificity, we provide evidence that this methodology is successful in making robust predictions of nonindependently evolving positions.
Results
Algorithm
Given a sequence alignment and a tree, we first define a statistic measuring coevolution for an arbitrary group of sites. Then we introduce a method aiming at seeking candidate coevolving groups by clustering sites according to the coevolution statistics. Finally, we develop a statistical test to assess the significance of candidate groups.
Defining a coevolution statistic
Coevolution, as any evolutionary process, should be studied in the light of the phylogeny underlying the data, in order to distinguish functional correlations (resulting from convergence) from phylogenetic correlations (resulting from shared history). Mapping substitution events onto the phylogeny (substitution mapping) is a way to fully incorporate the evolutionary history of each site and has proved to be a powerful approach to infer coevolving positions [3,5,9,11]. Substitution mapping consists of estimating, for each site, the number of substitutions that occurred on each branch of the phylogenetic tree. These numbers are stored as a substitution vector for the site (noted V, Figure 1a), and can be computed using an empirical Bayesian approach (see methods and [11]). The sitespecific, branchspecific numbers of substitutions depend on the set of ancestral states at inner nodes [3,11], the length of the branch and the rates of substitution between amino acids (or nucleotides). Since the ancestral states are inferred, we have to account for the uncertainty in the reconstruction, by averaging over all possible pairs of ancestral states. A fast, analytical procedure has been developed to achieve this calculation [11].
Figure 1. Substitution mapping and measures of coevolution. For the sake of simplicity, ancestral state uncertainty is not taken into account in this figure. True substitution vectors are averaged over all possible ancestral states. a) Unweighted (V), weighted (V*) and signed, weighted () substitution mapping, according to volume (vol), polarity (pol) and charge (cha). b) Coevolution measures for a pair of sites: correlation coefficient on the simple vectors, correlation coefficient on the volumeweighted unsigned vectors, and compensation index on the volumeweighted signed vectors.
Here we introduce a generalization of this procedure called "weighted substitution mapping" (see Methods). It is dedicated to proteins and means weighting the different types of substitutions according to the resulting change in a given biochemical property of interest (Figure 1a). In the following, weighted substitution vectors are noted V*. Entry k of vector is then the estimated amount of biochemical change (e.g. change in volume, charge, polarity) having occurred at site i in branch k.
The amount of coevolution for a pair (i, j) of sites is measured by the correlation coefficient of the two substitution vectors (Figure 1b) [11]:
If the two sites tend to undergo substitution events in the same branches, ρ will be positive and tend toward one. This measure is generalized to a group of arbitrary size s by defining the amount of coevolution for the group as the minimal pairwise correlation between sites in the group:
From a geometrical point of view, the correlation coefficient is the cosine of the angle between the two substitution vectors, and the minimum correlation coefficient corresponds to the cosine of the maximum angle between the vectors of the group (Figure 2, upper panel).
Figure 2. Geometric interpretation of coevolution measures. For simplification, vectors are plotted in a 2coordinates space, which would correspond to a tree with only two branches.
The ρ statistic evaluates the tendency of sites to undergo correlated changes, irrespective of the compensatory nature of these changes. Weighted substitution mapping, however, offers the possibility to track the direction of changes, by giving opposite weight to X → Y and Y → X changes. The resulting signed, weighted vectors (noted in the following) can be used to test the compensatory nature of changes. The underlying assumption is that a given chemical property of a group of coevolving sites (global volume, charge, etc) would tend to be conserved, whereas the properties of individual sites may change. We hereby define C, the compensation index:
where V is the length of vectors, that is the L2norm:
In case of perfect compensation (the two vectors are symmetric), C equals 1. On the other extreme, if the vectors are identical, C equals 0. This measure can be generalized for a group of s sites:
Compensation is high when the normalized length of the sum vector of all substitution vectors in the group (noted Σ in Figure 2, bottom) tends to . The correlation (ρ) and compensation (C) statistics therefore define two distinct detection methods, to be applied sequentially to a given data set.
As previously shown in several works, the interpretation to be given to coevolution statistics highly depends on the evolutionary rate of the sites under consideration [6,7,10,11]. Here we measured the variability of a site i by taking the length N_{i }of its corresponding substitution vector (resp. for weighted substitution vectors):
In the case of unweighted vectors accounting for multiple substitutions [11], this measure is proportional to the sitespecific substitution rate. For weighted vectors, the N* statistics provides a new measure of the sitespecific rate of change of a given biochemical property – note that the scale of N* depends on the weighting scheme used. The variability of a group of s sites was then defined as the minimum length of substitution vectors of all sites in the group, Nmin:
which is a conservative measure since slowly evolving positions are the less informative. Nmin is a nuisance variable on which the coevolution statistics mechanically depend.
A clustering approach to select candidate groups
As the size of the tested groups augments, an exhaustive approach quickly becomes intractable, and heuristics should be developed. To detect groups (and not only pairs) of coevolving sites, we performed a cluster analysis of the substitution vectors. We used a complete linkage hierarchical clustering procedure, with the pairwise correlation and compensation distances defined as 1  ρ_{ij }and 1  C_{ij }respectively. The clustering procedure starts with the pairwise distance matrix D, and perform the following steps:
1. Find the pair (u, v) in D with the lowest distance, and cluster the two corresponding sites.
2. Remove the two selected sites u and v in the matrix, and add the new pair (u, v) as a single entry.
Compute all distances between the (u, v) pair and each remaining group using the formula:
3. Go back to 1, until the matrix size reaches 1.
The use of the maximum function defines the 'complete linkage'. Each step defines a new cluster, and reduces the matrix size by 1. Every cluster of the resulting bifurcating tree is considered as a candidate coevolving group of sites.
Assessing the significance of the amount of coevolution
The significance of the clusters was evaluated by parametric bootstrap. One thousand data sets with the same number of sites as the one of interest were simulated, using the estimated tree and parameters. The substitution vectors were computed and the clustering was performed. For each group in the resulting trees, we stored the size of the group, and the corresponding coevolution statistic (ρ or C) and Nmin values. We hence obtained, for each group size, the joint distribution of ρ (respectively C) and of Nmin under the null hypothesis of independence between sites. We then computed the pvalue for a group of sites by conditioning over Nmin. For instance, for the coevolution statistic ρ:
where the ρ_{obs }is the measured value for statistic ρ. Since Nmin is a continuous variable, we used a window centered on Nmin_{obs }to evaluate the pvalues:
where N_{2 }is the number of simulation points with Nmin ∈ [Nmin_{obs } ω/2, Nmin_{obs }+ ω/2], and N_{1 }is the number of simulation points in this range with a correlation greater or equal to the observed value. ω defines the size of the window. In this work we set it to 20% of the range of Nmin values.
One potential problem is the fact that nested clusters are not independent. Assume for instance that a triplet of sites actually coevolve. This should result in a significantly high ρ for the triplet itself, but perhaps also for pairs within the triplet, or even for certain nuplets including the triplet, thus falsely duplicating the number of significant groups. To correct for this, the method outputs only one cluster – the one with the lowest pvalue – when a series of nested clusters is detected. This is a conservative approach, and an improvement over pairwise methods, which typically tend to output large networks of residues (i.e. pair (a, b), pair (b, c), pair (c, d), etc, e.g. [10]).
Controlling the false discovery rate
Since we are performing repeated tests, we need to control for the global discovery rate. The clustering approach makes it impossible to rely on classical techniques, due to the nonindependence of the tested groups. Here we assessed the false discovery rate by simulations: we conducted our analysis on several data sets simulated under the null hypothesis of independence. As an approximation, and to save computation time, we used the same simulated data sets as those used for computing the single groups pvalues: one simulated data set was tested against the 999 remaining ones, and the pvalues of the output clusters were recorded. This procedure was repeated 10 times. Now we pooled all the candidate clusters from the 10 analyses, and sort them by pvalue. Then we sought the pvalue threshold separating the 1% most significant clusters (those with lowest pvalues) from the remaining 99%. This threshold is then applied to the real data set to ensure a 1% false discovery rate – only groups of the realdata analysis with a pvalue lower than this threshold are considered significant after correction for multiple tests.
Case studies
To assess its performance, the method was tested on four data sets, each with distinct properties. We now present the detailed results of these analyses and check the predictions with respect to substitution patterns and known protein structure and annotations.
Application to rRNA
We applied the new clustering approach with unweighted substitution mapping to a previously studied bacterial rRNA data set, containing 79 large subunit sequences with 2,312 sites [11]. Two hundred and sixty five clusters with a pvalues lower than 1% were detected, containing 256 pairs. Two hundreds and forty nine of these pairs (97%) match already known structural stem pairs [14]. The pairwise approach [11] detected 258 pairs, among which 225 structural pairs (87%). The clustering approach hence has even lower falsepositive rate than the pairwise approach. The power increase is probably due to the more elaborated pvalue computation procedure. Higher order groups are distributed as this: four triplets, one quadruplets, two 5uplets, one 6uplets, and one 10uplet. These groups may be of biological interest but their study is beyond the scope of this article. A detailed list of detected groups is provided as supplementary material.
Application to myoglobin
We applied the clustering approach to a myoglobin data set, which has been already scanned for coevolving pairs in previous works [3,6]. This data set contains 100 sequences, and 144 sites without gaps. In addition to the unweighted mapping, which ignores the nature of the substitutions, we tested four weighting schemes: volume, polarity and charge difference, and the synthetic Grantham chemical distance, a combination of volume, polarity and atom composition [15]. We ran both the correlation and the compensation tests (see methods).
The correlation test yielded 17 groups with a pvalue lower than 5%, among which 13 remain significant after correction for multiple testing (see Table 1). Only two groups with a pvalue lower than 1% were found (one group being detected by the "Grantham", "Volume" and "Polarity" method), indicating that the coevolution signal is weak in this data set, consistent with [6]. The compensation method leads to 21 groups at the 5% level (18 after correction for multiple testing), among which 10 were significant at the 1% level, and two at the 0.1% level (Table 2).
Table 1. Correlation analysis results for the myoglobin data set.
Table 2. Compensation analysis results for the myoglobin data set.
Detailed examination of the detected groups revealed interesting patterns. Several sites were in significantly close proximity (e.g. sites GLY121 and ASP122, located in a external loop of the molecule, ALA94 and GLY150 which are in the end of two helices (see Figure 2A), and sites ARG31 and SER117). Several sites (among the most significant ones) appeared to be located close to the heme group (LEU76, GLY65, THR39 and PHE33, LEU69, see Figure 3a). Finally, we noticed a tendency for sites in helix ends to coevolve (see Figure 3b), a trend already mentioned by [6] and [9].
Figure 3. Examples of detected groups. a) and b): myoglobin, c) and d): Methionine AminoPeptidase. All amino acids sharing the same color are detected as coevolving. Figures are made with the molscript [43] and raster3d programs [44], using PDB entries 1MBD for myoglobin, and 1C24 for MAP.
Application to SRK
The Slocus Receptor Kinase (SRK) is a molecule controlling selfincompatibility in various species of Brassicaceae [16]. The SRK gene is involved in pollen recognition, and is known to be under balancing selection, which results in transspecific polymorphism [17]. The SRK protein is a transmembrane protein, with a cytoplasmic domain responsible for the kinase activity, and an ectodomain involved in receptor recognition. The ectodomain is highly polymorphic. It includes three hypervariable regions (HVR), and several sites reported as undergoing positive selection [18] (see Figure 4). No three dimensional structure is available for this protein. The data set we used contains 53 sequences and 386 ungapped sites from the ectodomain.
Figure 4. A subset of the detected groups for the SRK data set. Sequence of the SRK60 allele. Background colors indicate substitution rates as estimated by the Bayesian method [45], from blue (slow) to red (fast). Yellow boxes depict the hypervariable regions, as defined by [46]. Black boxes underline positions reported to be under positive selection by [18]. Black lines show some of the most significant coevolving groups (see table 3) for detailed results.
The correlation test yielded 14 groups with a pvalue lower than 5% after correction for multiple testing, among which 3 were significant at the 1% level (see Table 3 and Figure 4). The compensation test resulted in 24 significant groups at the 5% level, among which 23 remain significant after correction for multiple testing, and seven groups at the 1% level (see Table 4). The most significant group is a pair of sites (109, 110), detected using the unweighted mapping and the volume, polarity and Grantham weighted mappings with the correlation statistic. The corresponding unweighted mapping, shown in Figure 5, illustrates how correlated the substitution histories of these two sites have been. These sites had been reported as being under positive selection by Sainudiin et al. [18]. They are also detected with the compensation method and a Grantham weighting scheme, with a higher pvalue. Site 110 is detected as coevolving with site 116 (also known to be under positive selection) for conserving a global polarity level. Another significant group of interest is the pair (350, 352), detected with the Grantham weighting, for the compensation test. These two sites are also reported to be under positive selection and are located in the second hypervariable region. Together with the study of Sainudiin et al. [18], these results suggest a role for these sites in ligand recognition.
Table 3. Correlation analysis results for the SRK data set.
Table 4. Compensation analysis results for the SRK data set.
Figure 5. Compared substitution maps for pairs (56, 57) and (109,110) of the SRK data set (see table 3). Black squares indicate an average number of substitutions greater than 0.9, gray squares indicate an average number lower than 0.9. Only nodes with at least one black square have been depicted for clarity. Two black squares on the same branch indicate a cosubstitution event. The map on the left is for pair (56, 57), which is not detected as coevolving. The map on the right is for detected pair (109, 110), exhibiting several cosubstitution events.
The two tests detected sites that are conserved though all the alignment, except for the Q6L8R2_RAPSA allele. Sites 54, 394, 407, 132 and 448 for instance show a conserved polarity throughout the alignment, excepted for the Q6L8R2_RAPSA allele, which shows polarity change for the five sites. This allele is however very divergent from the other alleles (see Figure 3). It belongs to the socalled class II category, which contains only few alleles that are all recessive to alleles from the class I category [19]. These two categories form two distinct clades separated from each other about 40 millions years ago [20].
Application to MAP
The last example of application is a data set previously studied for coevolution by Gloor et al. [10]. The coevolution signal was higher in this data set, probably at least partly because of the higher number of sequences (147), which leads to more powerful tests: a total of 43 groups with pvalue < 1% were detected with the correlation test (among which 38 remain significant after correction for multiple testing). Surprisingly, the compensation statistic led to a lower number of detected groups (13, among which 10 remain significant after multiple testing correction). Most of the groups were pairs or triplets of sites in contact or in significantly close proximity (see Figure 3c and 3d). Several sites were also located in or close to the active site. Substitution maps for these groups clearly pointed to a large number of cosubstitution and compensatory events, as illustrated by Figure 6.
Figure 6. Weighted and signed charge substitution mapping for pair (GLN154, GLU158) of the MAP data set (see table 6). Only mappings for branches with at least one site with at least ± 0.9 substitution on average have been represented for clarity. Black squares indicate positive change ( → +), and gray squares indicate negative changes (+ → ).
The most significant groups were also detected by Gloor et al. [10]. They found two kinds of coevolving pairs: one involving sites in close proximity, and a set of interconnected residues belonging to a large cluster. Gloor et al. [10] used mutual information (MI), after correcting for slowly evolving sites. Their statistic, however, does not account for the underlying phylogeny, which may lead to several false positives. In their study, this problem was addressed by considering only the most significant correlated sites, assuming that their correlation is above the background phylogenetic noise. By fully incorporating the phylogeny, we were able to confirm three of their predictions and add several new ones. These confirmed pairs are the three most significant ones according to our correlation method, and appear to be in contact in the three dimensional structure. A large proportion of our new predictions also appear to be close in the tertiary structure (see Tables 5 and 6, and Figure 3c and 3d). We were not able to confirm the most significant pair of Gloor et al. [10], neither pairs involved in the large network they report, with the exception of pair (CYS59, THR99) detected for volume compensation and which is close to the ligand. For some of the detected groups no obvious structural interpretation was found. In some cases, these apparent false positives corresponded to sites having undergone correlated changes of evolutionary rate. Figure 7 shows such an example. The five sites in Figure 7 are reasonably variable in general, but invariable in the topmost clade of the tree – presumably because they are under strong functional constraint in this group. Since changes are concentrated in a subset of the branches, the probability that these sites undergo cosubstitutions by chance is higher than estimated using a model in which changes can occur throughout the tree, as in the simulations. This is a newlyreported mechanism by which correlated evolutionary patterns can appear in the absence of biochemical interaction between sites.
Table 5. Correlation analysis results for the MAP data set.
Table 6. Compensation analysis results for the MAP data set.
Figure 7. Unweighted substitution mapping for pair (CYS78, ASN95, SER110, GLY150, GLN233) of the MAP data set (see tables 5), revealing a probable rate shift. Only mappings for nodes with at least one site with at least ± 0.9 substitution on average have been represented for clarity. Same legends as in figure 3.
It appears that the coevolution signal is weaker in proteins than in rRNA. Fewer groups are detected, with higher pvalues and lower correlation statistics. These are groups for which changes occur more frequently in the same branches than expected by chance, but the linkage is not as strong as in rRNA.
Implementation
The mapping procedure is available as dedicated classes in the Bio++ Phylogenetics library, from version 1.1 [21,22]. The coevolution detection can be reproduced using the CoMap program, including the pairwise analysis [11] and the clustering analysis (this article). For the clustering analysis, CoMap performs the clustering and the simulation part. As an option, it performs maximum likelihood estimation of model parameters prior to coevolution analysis, and supports a wide range of commonly used model of evolution, from JukesCantor to General Time Reversible for nucleotides, and the Dayhoff and JTT models for proteins, using the dcmutt implementation [23]. CoMap can also read any userdefined model following the PAML format [24]. The pvalue computation is done in R, using two scripts distributed along with the program. CoMap is open source and distributed at [25]. The rRNA and protein data sets are also available at this address, together with the results and the scripts used to run the analysis, which may serve as examples for running the coevolution analysis on other data sets. Running time, including the five types of mapping, was between two and five hours for the four data sets analyzed in this study, with a Intel(R) Xeon(TM) 3.06 GHz computer.
Discussion
In this article we present a new test for detecting coevolving groups of sites based on weighted substitution mapping and a clustering approach. The method is original in (i) detecting groups of arbitrary size, (ii) accounting for the biochemical properties of aminoacid changes, (iii) distinguishing compensatory evolution from other kinds of correlated evolution, (iv) providing the substitution maps corresponding to the detected groups, so that the user can assess the relevance of the detected signal, and (v) being available as a userfriendly program with reasonable running times, easy to integrate into any sequence analysis pipeline.
When applied to a benchmark rRNA data set, the method recovered mostly pairs of sites, as expected, and was more powerful than the approach of [11], although the latter method had been specifically designed to detect pairs. When applied to protein data sets, the method detected candidate groups of coevolving sites of size two to ten. Many of these groups appear relevant from a structural or functional point of view. When applied to the MAP data set, the method detected a higher number of groups than the method of Gloor et al.[10], thanks to a more efficient phylogenetic control strategy, and direct assessment of the significance of groups of size higher than two. Coevolving residues were typically located in close proximity, or at the ends of helices, or corresponded to positively selected sites. The method also yielded coevolving groups of sites showing no obvious structural links. We now discuss in more details the various newlyintroduced methodological improvements, and the biological mechanisms potentially underlying correlated evolutionary patterns.
Weighted substitution mapping
A new probabilistic weighted substitution mapping was developed, thanks to the introduction of a weight matrix. A similar approach has been used by [8] and [26], without taking into account ancestral states reconstruction uncertainty. This mapping procedure can have some general interest beyond coevolution detection. It may converge toward the subalphabet approach (see for [3] and [18]), by using aminoacid categories (for instance big versus small, polar versus nonpolar, charge versus not charges, etc) and defining the weight w_{x,y }as equal to one if x and y do not belong to the same category, zero otherwise. Any other aminoacid index or distance may be used, as the ones available in the AAindex database [27]. The mapping is achieved using a fixed topology, assumed to be known. We have previously shown that the coevolution analysis is robust to variations of the underlying tree topology [11].
Clustering
A usual pitfall when trying to detect coevolving sites without a priori knowledge is the high number of putative groups to be tested. An exhaustive approach is possible when only pairs of sites are targeted, but not for groups of arbitrary size: computing 2^{n } n  1 pvalues proves to be rapidly unfeasible. One possibility to overcome this issue is to limit the number of groups to test, thanks to the use of multivariate analysis (see [8]) or clustering techniques for instance. Here we used a hierarchical clustering approach, which outputs n  1 clusters of size ≥ 2. A convenient property is that clusters of a same given size are independent and do not overlap. The clustering approach was useful for coevolution detection in drastically reducing the number of groups to be tested.
Measuring cluster significance
We used two distinct measures of the amount of coevolution for a group. The first one, ρ, is the minimum pairwise correlation of sites within the group, and aims at detecting sites with correlated substitutions (cosubstitution events). For a pair of sites, the ρ statistic is therefore equal to the correlation between the two (weighted) substitution vectors, a measure we introduced in a previous work [11]. The second statistic, C, explicitly accounts for the compensatory nature of substitutions. In a previous study, we showed that the coevolution statistic depends on the evolutionary rate of the sites, since slowly evolving sites tend to have artificially high correlation ([11], and also [7,9,13]). It is therefore necessary to include a measure of the site variability when assessing the significance of the correlation. We previously used the minimum posterior rate, a measure which is not easily generalizable to the case of weighted vectors. We hence used the length of substitution vectors as a measure of variability in this study. In the case of unweighted vectors, this measure is highly correlated to the posterior rate. To assess the variability of a group of any size, we used the minimum length of the corresponding substitution vector, Nmin. This is a summary statistic, since the variability of the group would be fully described only with the complete set of sitespecific lengths. The Nmin measure is hence an approximation we employed to reduce the number of required simulations. Our approach may easily afford additional summary statistics in order to better account for group variability. We tried using both Nmin and Nmax. This did not affect the results, but removed some artificially detected groups of large size (> 10, results not shown). The results presented in this paper were obtained by using Nmin only and restricting the analysis to groups with a reasonable size, that is, lower than 10.
Mechanisms of non independent evolution
In this work, coevolution has been defined in a broad sense, i.e. as equivalent to nonindependent evolution. Sites are considered as coevolving when they tend to undergo (biochemically relevant) substitutions in the same branches of the tree. Coevolution is hence seen as a nonrandom distribution of substitutions across the tree and alignment. This nonrandom distribution, however, may be due to distinct processes. The most intuitive scenario invokes compensatory mutations: one perturbing mutation at a site is compensated by one or several mutations at other sites to maintain a higher order structure. This mechanism corresponds to the definition of coevolution sensu stricto, used in most previous works. It relates to (intragenic) epistasis: the selection coefficient of a mutation at one site depends on the states at other sites. Correlated substitution does not necessarily imply compensation, or this compensation may not be seen at the singlemolecule level. Sites involved in the recognition of an interacting partner, for instance, may tend to coevolve and be compensated by changes in the interacting molecule. More rarely, sites involved in adaptive process may also undergo correlated changes. Selection toward a new optimum requiring more than one substitution could explain the departure from independence [28]. This scenario should explain the signal detected in the SRK gene, where several coevolving sites have been previously reported to be under positive selection.
Another potential reason for nonindependent evolution is a local relaxation of constraint involving several sites, the socalled heterotachy/covarion process [29,30]. If a structural or functional unit, generally required for proper functioning of the molecule, becomes useless in a specific lineage, then the sites forming this unit will accumulate changes in this lineage. This results in a correlation of rates, which may lead to correlated substitution mappings (see Figure 7). This correlation appears significant if a constant rate among sites is assumed when performing simulations. This may be corrected by using a covarion model as the one proposed by [31]. The two tests we introduce should help distinguishing between correlated states and correlated rates. In agreement with recent work by Hakes et al. [32], our analyses suggest that the former mechanism, neglected up to now, could explain a substantial fraction of the detectable correlated patterns.
Conclusion
The flexible coevolution analysis we propose may provide powerful insight for understanding the evolutionary history of specific genes, similarly to positive selection detection analyses. Another open issue is the importance of coevolutionary processes in protein evolution in general [33]. Systematically applying our approach to a large number of data sets for which structural information is available could help making progress with this respect.
Methods
The method analyses a set of aligned sequences (D) using a phylogeny (assumed to be known), a Markov substitution model and a discrete rate distribution across sites. The set of parameters Θ, including branch lengths, entries in the substitution matrix and rate distribution parameters are estimated using the maximum likelihood (ML) method prior to the cosubstitution analysis.
Substitution mapping
Let D_{i }be the i^{th }site of the data set, i.e. a column of the alignment. Let v_{i,b }be the expected number of substitutions that occurred on branch b for site i. v_{i,b }is computed as follow [11]:
where x_{p }and x_{q }are the states at the top and bottom node of the branch for this site. is the expected number of substitutions on a branch of length t knowing its initial state x_{p }and final state x_{q}. We previously showed that the exact computation of this number does not improve the coevolution detection [11], and may be approximated by taking:
Equation 10 can be generalized to account for rate across site variation:
where the cth rate class has relative rate r_{c}.
The first factor in the summation in equation 12 is the posterior probability of having state x_{p }at bottom node, state x_{q }at top node, and rate class c given the data and parameters. It can be computed using the formula:
where the first factor of the numerator is the likelihood for site i conditional on states x_{p }and x_{q }at top and bottom nodes and rate equal to r_{c}. This likelihood is computed as described by Felsenstein [34], after having multiplied all branch lengths by r_{c }[35] and summing over all possible ancestral states at each node except for the top and bottom nodes of branch b, for which states x_{p }and x_{q }are fixed. P (r_{c}) is the prior probability for site i of being in rate class c, and P (D_{i}Θ) is the likelihood for site i. We call V_{i }= (v_{i,1}, ..., v_{i,b}, ..., v_{i,m}) (where m is the total number of branches in the tree) the substitution vector for site i.
This mapping can be applied to any alphabet type, including nucleotide and protein alphabets. We extended this procedure to account for the biochemical properties of aminoacid residues. We call the weighted substitution vectors, with
where W = {w_{x,y}} is a matrix of substitution weights.
We used the following weights, retrieved from the AAindex database [27]:
• Grantham physicochemical distance [15], AAindex id: aax2:GRAR740104;
• Difference of volume (as defined by Grantham), AAindex id: aax1:GRAR740103;
• Difference of polarity (as defined by Grantham), AAindex id: aax1:GRAR740102;
• Difference of charge (K and R have +1, D and E have 1, 0 for the others.), AAindex id: aax1:FAUJ880111 and aax1:FAUJ880112;
These weights may be signed or unsigned. By setting w_{x,y }= w_{y,x}, we aim at detecting sites undergoing simultaneous changes in the given property (i.e. correlated evolution). Setting w_{x,y }= w_{y,x }accounts for the direction of change, and may hence be used to detect compensatory changes. Signed substitution vectors are noted . The four kinds of vectors were referred as "Grantham", "Volume", "Polarity" and "Charge" in this article. The unweighted vectors (equation 12) were also computed.
Testing structure proximity
To assess whether sites of a coevolving group were in close proximity in a three dimensional structure, we measured the maximum C_{α}toC_{α }distance between residues in the group. We constrained the minimal primary distance between sites in randomized groups to be higher than five angstroms, or higher than the minimal primary distance in the tested group, when the latter was lower than five angstroms. We evaluated the significance of the obtained distance by randomization. One thousand groups of the same size were randomly picked from the structure, and their maximum distance measured. The pvalue was calculated as the proportion of random groups showing a shorter maximal distance than the tested group.
Data sets
To compare the clustering approach to the pairwise analysis, we reanalyzed a previously published 79 species bacterial LSU data set [11]. The method was then applied to three protein data sets: the myoglobin of vertebrates, the Slocus Receptor Kinase (SRK) gene of Brassicaceae, involved in sporophytic autoincompatibility, and the Methionine AminoPeptidase (MAP).
A hundred sequences of myoglobin were retrieved from the Swissprot database and aligned with ClustalX [36]. A phylogenetic tree was built with the PhyML program [37]. The topology was corrected by hand to match wellknown branching orders, particularly within mammals [38]. Numerical parameters were then reestimated while keeping the tree topology fixed.
SRK sequences were retrieved from Swissprot and trEMBL using SRS. Sequences with less than 100 amino acids were removed. A first alignment was performed using the Muscle program [39]. The alignment was visually inspected; ambiguously aligned sequences were removed. The ClustalX program was finally applied to the resulting data set. The final alignment included 53 sequences corresponding to the extracellular domain of the protein. A PhyML tree was constructed.
A data set of 174 aligned protein sequences of the Methionine AminoPeptidase (MAP) was taken from [10]. Their structurebased alignment was used, and a phylogenetic tree was estimated using PhyML. For rRNA data, we used the HKY85 + Γ [40] substitution model, and for protein data the JTT92 + Γ model [41], implemented using the dcmut method [23]. A fourclass discretized gamma rate distribution [42] was used in both cases. These models were used for tree building, substitution mapping and parametric bootstrap simulations.
Availability and requirements
Project name: comap
Project homepage: http://gna.org/projects/comap webcite
Operating systems: Unix, Linux, MacOS and Windows.
Programming languages: C++, R
Other requirements: Bio++ libraries
License: CeCILL Free Software License (GNU GPL compatible, http://www.cecill.info/index.en.html webcite)
Authors' contributions
NG and JD designed the method and wrote the manuscript. JD implemented the method and performed the analyses.
Additional file 1. Correlation analysis detailed results for the myoglobin data set, as an Open Document spreadsheet file. 3D distance: maximum pairwise 3D distance between alpha carbons (A). Primary distance: °C distance, in amino acids, of the two positions on the protein sequence. 3D pvalue: test if the sites are closer than expected by chance. FDR: tell if the group remains significant after a correction for having a global false discovery rate of 5%. ‡ symbols indicate groups detected by both the correlation and compensation analyses, † symbols indicate groups overlapping with a detected group in the compensation analysis (i.e. one group is a subgroup of the other).
Format: ODS Size: 18KB Download file
Additional file 2. Compensation analysis detailed results for the myoglobin data set. Legends are the same as in additional file 1.
Format: ODS Size: 17KB Download file
Additional file 3. Correlation analysis detailed results for the SRK data set. Legends are the same as in additional file 1. Sites in bold font are reported to be under positive selection by Sainudiin et al. [18].
Format: ODS Size: 11KB Download file
Additional file 4. Compensation analysis detailed results for the SRK data set. Legends are the same as in additional file 1.
Format: ODS Size: 17KB Download file
Additional file 5. Correlation analysis detailed results for the MAP data set. Legends are the same as in additional file 1. Only groups with a pvalue lower than 1% are reported. A global false discovery rate (FDR) of 1% was used when correcting for multiple testing.
Format: ODS Size: 18KB Download file
Additional file 6. Compensation analysis detailed results for the MAP data set. Legends are the same as in additional file 5.
Format: ODS Size: 16KB Download file
Acknowledgements
The authors would like to thank Aurélie Cailleau and Sylvain Glémin for helping with the SRK analysis, Sylvain Glémin and two anonymous reviewers for helpful comments on this manuscript. This work was supported by Centre National de la Recherche Scientifique and Action Concertée Incitative "Informatique, Mathématiques et Physique pour la Biologie". This publication is the contribution 2007143 of the Institut des Sciences de l'Évolution de Montpellier (UMR 5554 – CNRS).
References

Galtier N, Dutheil J: Gene and protein evolution. Volume 3. Basel, Karger. Coevolution within and between genes; 2007::112.

Neher E: How frequent are correlated changes in families of protein sequences?
Proceedings of the National Academy of Sciences of the United States of America 1994, 91:98102. PubMed Abstract  Publisher Full Text  PubMed Central Full Text

Tuff P, Darlu P: Exploring a phylogenetic approach for the detection of correlated substitutions in proteins.
Mol Biol Evol 2000, 17(11):17531759. PubMed Abstract  Publisher Full Text

Göbel U, Sander C, Schneider R, Valencia A: Correlated mutations and residue contacts in proteins.
Proteins 1994, 18:309317. PubMed Abstract

Shindyalov IN, Kolchanov NA, Sander C: Can threedimensional contacts in protein structures be predicted by analysis of correlated mutations?
Protein Engineering 1994, 7:349358. PubMed Abstract  Publisher Full Text

Pollock DD, Taylor WR, Goldman N: Coevolving protein residues: maximum likelihood identification and relationship to structure.
Journal of Molecular Biology 1999, 287:187198. PubMed Abstract  Publisher Full Text

Tillier ERM, Lui TWH: Using multiple interdependency to separate functional from phylogenetic correlations in protein alignments.
Bioinformatics 2003, 19:750755. PubMed Abstract  Publisher Full Text

Fleishman SJ, Yifrach O, BenTal N: An evolutionarily conserved network of amino acids mediates gating in voltagedependent potassium channels.
Journal of Molecular Biology 2004, 340:307318. PubMed Abstract  Publisher Full Text

Dimmic MW, Hubisz MJ, Bustamante CD, Nielsen R: Detecting coevolving amino acid sites using Bayesian mutational mapping.
Bioinformatics 2005, 21(Suppl 1):i126i135. PubMed Abstract  Publisher Full Text

Gloor GB, Martin LC, Wahl LM, Dunn SD: Mutual information in protein multiple sequence alignments reveals two classes of coevolving positions.
Biochemistry 2005, 44:71567165. PubMed Abstract  Publisher Full Text

Dutheil J, Pupko T, JeanMarie A, Galtier N: A modelbased approach for detecting coevolving positions in a molecule.
Mol Biol Evol 2005, 22(9):19191928. PubMed Abstract  Publisher Full Text

Fares MA, Travers SAA: A novel method for detecting intramolecular coevolution: adding a further dimension to selective constraints analyses.
Genetics 2006, 173:923. PubMed Abstract  Publisher Full Text  PubMed Central Full Text

Oliveira L, Paiva ACM, Vriend G: Correlated mutation analyses on very large sequence families.
ChemBioChem 2002, 3:10101017. PubMed Abstract  Publisher Full Text

Gutell RR, Lee JC, Cannone JJ: The accuracy of ribosomal RNA comparative structure models.
Current Opinion in Structural Biology 2002, 12:301310. PubMed Abstract  Publisher Full Text

Grantham R: Amino acid difference formula to help explain protein evolution.
Science 1974, 185:862864. PubMed Abstract  Publisher Full Text

Takasaki T, Hatakeyama K, Suzuki G, Watanabe M, Isogai A, Hinata K: The S receptor kinase determines selfincompatibility in Brassica stigma.
Nature 2000, 403:913916. PubMed Abstract  Publisher Full Text

Awadalla P, Charlesworth D: Recombination and selection at Brassica selfincompatibility loci.
Genetics 1999, 152:413425. PubMed Abstract  Publisher Full Text  PubMed Central Full Text

Sainudiin R, Wong WSW, Yogeeswaran K, Nasrallah JB, Yang Z, Nielsen R: Detecting sitespecific physicochemical selective pressures: applications to the Class I HLA of the human major histocompatibility complex and the SRK of the plant sporophytic selfincompatibility system.
Journal of Molecular Evolution 2005, 60:315326. PubMed Abstract  Publisher Full Text

Nasrallah ME: Developmental regulation of plant gene expression. Volume 2. Glasgow, UK: Blackie. The molecular basis for sexual incompatibility; 1991::130152.

Uyenoyama MK: A generalized leastsquares estimate for the origin of sporophytic selfincompatibility.
Genetics 1995, 139:975992. PubMed Abstract  Publisher Full Text  PubMed Central Full Text

Dutheil J, Gaillard S, Bazin E, Glemin S, Ranwez V, Galtier N, Belkhir K: Bio++: a set of C++ libraries for sequence analysis, phylogenetics, molecular evolution and population genetics.
BMC Bioinformatics 2006, 7:188188. PubMed Abstract  Publisher Full Text  PubMed Central Full Text

Bio++: C++ libraries for bioinformatics [http://kimura.univmontp2.fr/BioPP] webcite

Kosiol C, Goldman N: Different versions of the Dayhoff rate matrix.
Mol Biol Evol 2005, 22(2):193199. PubMed Abstract  Publisher Full Text

Yang Z: PAML 4: phylogenetic analysis by maximum likelihood.
Mol Biol Evol 2007, 24(8):15861591. PubMed Abstract  Publisher Full Text

CoMap: a C++ program to detect coevolving groups of sites [http://home.gna.org/comap] webcite

Woolley S, Johnson J, Smith MJ, Crandall KA, Mcclellan DA: TreeSAAP: selection on amino acid properties using phylogenetic trees.
Bioinformatics 2003, 19:671672. PubMed Abstract  Publisher Full Text

Kawashima S, Ogata H, Kanehisa M: AAindex: Amino Acid Index Database.
Nucleic Acids Research 1999, 27:368369. PubMed Abstract  Publisher Full Text  PubMed Central Full Text

Orr HA: The population genetics of adaptation: the adaptation of DNA sequences.
Evolution 2002, 56:13171330. PubMed Abstract

Lopez P, Casane D, Philippe H: Heterotachy, an important process of protein evolution.
Mol Biol Evol 2002, 19(1):17. PubMed Abstract  Publisher Full Text

Pupko T, Galtier N: A covarionbased method for detecting molecular adaptation: application to the evolution of primate mitochondrial genomes.
Proc Biol Sci 2002, 269(1498):13131316. PubMed Abstract  Publisher Full Text  PubMed Central Full Text

Galtier N: Maximumlikelihood phylogenetic analysis under a covarionlike model.
Mol Biol Evol 2001, 18(5):866873. PubMed Abstract  Publisher Full Text

Hakes L, Lovell SC, Oliver SG, Robertson DL: Specificity in protein interactions and its relationship with sequence diversity and coevolution.
Proceedings of the National Academy of Sciences of the United States of America 2007, 104:79998004. PubMed Abstract  Publisher Full Text  PubMed Central Full Text

Choi SS, Li W, Lahn BT: Robust signals of coevolution of interacting residues in mammalian proteomes identified by phylogenyaided structural analysis.
Nature Genetics 2005, 37:13671371. PubMed Abstract  Publisher Full Text

Felsenstein J: Evolutionary trees from DNA sequences: a maximum likelihood approach.
Journal of Molecular Evolution 1981, 17:368376. PubMed Abstract

Yang Z: Maximumlikelihood estimation of phylogeny from DNA sequences when substitution rates differ over sites.
Mol Biol Evol 1993, 10(6):13961401. PubMed Abstract  Publisher Full Text

Thompson JD, Gibson TJ, Plewniak F, Jeanmougin F, Higgins DG: The CLUSTAL_X windows interface: flexible strategies for multiple sequence alignment aided by quality analysis tools.
Nucleic Acids Research 1997, 25:48764882. PubMed Abstract  Publisher Full Text  PubMed Central Full Text

Guindon S, Gascuel O: A simple, fast, and accurate algorithm to estimate large phylogenies by maximum likelihood.
Systematic Biology 2003, 52:696704. PubMed Abstract

Murphy WJ, Eizirik E, O'brien SJ, Madsen O, Scally M, Douady CJ, Teeling E, Ryder OA, Stanhope MJ, de Jong WW, Springer MS: Resolution of the early placental mammal radiation using Bayesian phylogenetics.
Science 2001, 294:23482351. PubMed Abstract  Publisher Full Text

Edgar RC: MUSCLE: multiple sequence alignment with high accuracy and high throughput.
Nucleic Acids Research 2004, 32:17921797. PubMed Abstract  Publisher Full Text  PubMed Central Full Text

Hasegawa M, Kishino H, Yano T: Dating of the humanape splitting by a molecular clock of mitochondrial DNA.
Journal of Molecular Evolution 1985, 22:160174. PubMed Abstract

Jones DT, Taylor WR, Thornton JM: The rapid generation of mutation data matrices from protein sequences.
Computer Applications In The Biosciences 1992, 8:275282. PubMed Abstract

Yang Z: Maximum likelihood phylogenetic estimation from DNA sequences with variable rates over sites: approximate methods.
Journal of Molecular Evolution 1994, 39:306314. PubMed Abstract

Kraulis PJ: Molscript – a program to produce both detailed and schematic plots of protein structures.

Merritt EA, Bacon DJ: Raster3d: photorealistic molecular graphics.

Pupko T, Bell RE, Mayrose I, Glaser F, BenTal N: Rate4Site: an algorithmic tool for the identification of functional regions in proteins by surface mapping of evolutionary determinants within their homologues.
Bioinformatics 2002, 18(Suppl 1):S71S77. PubMed Abstract  Publisher Full Text

Kusaba M, Matsushita M, Okazaki K, Satta Y, Nishio T: Sequence and structural diversity of the S locus genes from different lines with the same selfrecognition specificities in Brassica oleracea.
Genetics 2000, 154:413420. PubMed Abstract  Publisher Full Text  PubMed Central Full Text