<?xml-model href='http://www.tei-c.org/release/xml/tei/custom/schema/relaxng/tei_all.rng' schematypens='http://relaxng.org/ns/structure/1.0'?><TEI xmlns="http://www.tei-c.org/ns/1.0">
	<teiHeader>
		<fileDesc>
			<titleStmt><title level='a'>eCOMPASS: evaluative comparison of multiple protein alignments by statistical score</title></titleStmt>
			<publicationStmt>
				<publisher></publisher>
				<date>05/13/2021</date>
			</publicationStmt>
			<sourceDesc>
				<bibl> 
					<idno type="par_id">10238805</idno>
					<idno type="doi">10.1093/bioinformatics/btab374</idno>
					<title level='j'>Bioinformatics</title>
<idno>1367-4803</idno>
<biblScope unit="volume"></biblScope>
<biblScope unit="issue"></biblScope>					

					<author>Andrew F Neuwald</author><author>Bryan D Kolaczkowski</author><author>Stephen F Altschul</author><author>Yann Ponty</author>
				</bibl>
			</sourceDesc>
		</fileDesc>
		<profileDesc>
			<abstract><ab><![CDATA[Abstract                          Motivation              Detecting subtle biologically relevant patterns in protein sequences often requires the construction of a large and accurate multiple sequence alignment (MSA). Methods for constructing MSAs are usually evaluated using benchmark alignments, which, however, typically contain very few sequences and are therefore inappropriate when dealing with large numbers of proteins.                                      Results              eCOMPASS addresses this problem using a statistical measure of relative alignment quality based on direct coupling analysis (DCA): To maintain protein structural integrity over evolutionary time, substitutions at one residue position typically result in compensating substitutions at other positions. eCOMPASS computes the statistical significance of the congruence between high scoring directly coupled pairs and 3D contacts in corresponding structures, which depends upon properly aligned homologous residues. We illustrate eCOMPASS using both simulated and real MSAs.                                      Availability and Implementation              The eCOMPASS executable, C++ open source code and input data sets are available at https://www.igs.umaryland.edu/labs/neuwald/software/compass.                                      Supplementary information              Supplementary data are available at Bioinformatics online.]]></ab></abstract>
		</profileDesc>
	</teiHeader>
	<text><body xmlns="http://www.tei-c.org/ns/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink">
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="1">Introduction</head><p>Protein sequence analyses, and particularly those that are statistically based, often rely upon very large multiple sequence alignments (MSAs), consisting of tens or hundreds of thousands of sequences belonging to a large superfamily. Using such an alignment increases the statistical power and breadth of an analysis and, by partitioning the MSA into hierarchically arranged subgroups based on subgroup-specific patterns <ref type="bibr">(Neuwald, 2014)</ref>, one can identify sequence and structural features likely determining functional specificity. For example, this approach has been used <ref type="bibr">(Neuwald, et al., 2012)</ref> to automate the manual curation of hierarchical MSAs (hiMSAs) for the NCBI Conserved Domain Database (CDD) <ref type="bibr">(Yang, et al., 2020)</ref> and, when applied to an MSA of 474,040 AAA+ ATPases, has revealed sequence and structural properties implicated in DNA clamp loader functional specificity <ref type="bibr">(Tondnevis, et al., 2020)</ref>. We have performed similar analyses using alignments of 237,359 <ref type="bibr">Nacetyltransferases,</ref><ref type="bibr">127,</ref><ref type="bibr">418 GTPases,</ref><ref type="bibr">131,</ref><ref type="bibr">321 helicases,</ref><ref type="bibr">45</ref>,799 exonuclease-endonuclease-phosphatases and 23,592 DNA glycosylases <ref type="bibr">(Neuwald, et al., 2018)</ref> and of 33,760 TIR domains <ref type="bibr">(Toshchakov and Neuwald, 2020)</ref>. It is important, of course, that such alignments be as biologically accurate as possible. However, it is well known that only heuristic methods are available for constructing even small alignments, and these produce results that may be far from optimal <ref type="bibr">(Edgar, 2010)</ref>. Generally, an MSA method's accuracy is evaluated using a set of benchmark alignments that are manually curated using structural data and each of which typically contain relatively few sequences. However, there are many potential problems with these evaluations. First, they rely upon the accuracy of the benchmark alignments, which may itself be in question <ref type="bibr">(Ashkenazy, et al., 2019;</ref><ref type="bibr">Fletcher and Yang, 2010;</ref><ref type="bibr">Kim and Lee, 2007;</ref><ref type="bibr">Levy Karin, et al., 2014;</ref><ref type="bibr">Thompson, et al., 2011)</ref>. Second, they implicitly assume the accuracy of an MSA on a benchmark set of sequences is a good proxy for its accuracy on a much larger superset. This may not be the case, particularly when the larger set contains many protein subgroups within a superfamily, not all of which are represented within the benchmark alignment. Curating large benchmark MSAs is error prone and may be prohibitively labor intensive. Finally, the relative accuracy of one MSA method to another on a set of benchmark alignments is no guarantee that it will produce the more accurate alignment for a specific set of sequences of interest, particularly one that is large and diverse.</p><p>We define an accurate alignment to be one that reflects sequence homology. A more accurate MSA should reveal evolutionarily conserved structural and functional constraints better than a less accurate one. In large, diverse sequence sets such constraints become more statistically evident, thereby allowing subtly conserved homologous regions to be identified and aligned, as illustrated in <ref type="bibr">(Neuwald and Hirano, 2000;</ref><ref type="bibr">Neuwald and Poleksic, 2000)</ref>.</p><p>Because obtaining a highly accurate MSA typically requires manual curation, we have developed and applied the Multiply Aligned Profiles for Global Alignment of Protein Sequences (MAPGAPS) program <ref type="bibr">(Neuwald, 2009)</ref>, which uses a manually curated hiMSA as a query to identify and align database sequences belonging to a modeled superfamily. Within a hiMSA each subgroup alignment is profiled and aligned to the other subgroup alignments. Using this feature, MAPGAPS creates an MSA with accuracy comparable to that of the hiMSA <ref type="bibr">(Neuwald, et al., 2020)</ref>. This assumes that each subgroup is accurately aligned both internally and relative to other subgroups, which is typically not yet the case. Hence, to further improve this approach, we need to assess alignment quality for each subgroup and for the MSA as a whole.</p><p>Here we introduce eCOMPASS, a program that evaluates the relative accuracy of two MSAs of the same large set of sequences by applying direct coupling analysis (DCA) based upon pseudo-likelihood maximization in conjunction with a procedure to estimate statistical significance. It requires as input only the MSAs themselves and structural coordinates for a minimum number (ideally at least ten) of the aligned sequences. It does not rely upon any set of benchmark alignments, nor even upon a "gold-standard" alignment of the subset of sequences with known structure. Furthermore, it requires no knowledge of how the MSAs were produced, nor upon how the methods that produced them perform on other sets of sequences. Rather, for each MSA, it first derives, from pairwise correlations among columns, internal evidence of likely 3D contacts among residue positions of the aligned proteins, and then uses the known structures to assess the relative accuracy of this evidence. This approach is based on the principle that, to maintain a protein family's structural fold, interacting residues pairs tend to coevolve, resulting in correlations better seen within accurate alignments. Hence, the degree to which 3D contacts may be correctly inferred from an MSA depends upon its accuracy.</p><p>Because eCOMPASS applies to the evaluation of the overall quality of specific sequence alignments that are very large, it cannot be readily evaluated using known benchmark MSAs, nor are we aware of previous approaches to which it can be properly compared. We therefore argue for its validity from its inherent plausibility, its application to simulated gold standard alignments, and its consistency with a completely independent measure of alignment accuracy than the measure eCOMPASS deploys.</p><p>We first describe the eCOMPASS algorithm and illustrate its use by applying it to eight pairs of large MSAs obtained from the CDD and PFAM databases and containing a sufficient number of proteins of known structure. We also describe the sort of insights eCOMPASS can reveal regarding the relative quality of such MSAs. Second, we validate it on simulated MSAs generated from realistic Potts models of protein superfamilies versus realignments of the simulated sequences using four different alignment methods. Third, we evaluate its robustness to changes in various hyperparameter settings.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2">Methods</head></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.1">Input and basic strategy</head><p>eCOMPASS takes as input two MSAs of the same set of protein sequences aligned using two different methods. We recommend that the set include at least ten proteins of known structure. The method's basic strategy is, first, to use correlations among columns in each MSA to predict which pairs of columns correspond to residue 3D contacts; and then to check the accuracy of these predictions (measured as described below) using the aligned proteins of known structure. The method assumes that the more accurate the overall MSA, the more accurate will be structural predictions derived from its column correlations. Evidence for the validity of this assumption is provided through analyses of simulated MSAs.</p><p>Note that, although eCOMPASS uses a relatively small number of sequences with known structure to vote on the relative accuracy of two MSAs, each structure's vote is based upon evidence derived from all the sequences in each of the MSAs. Thus, an MSA that accurately aligns the structures in question to one another but does a poor job of aligning sequences from a much larger and more diverse protein superfamily, should fare poorly in eCOMPASS's estimation. This contrasts with evaluation methods that use the accurate alignment of a (typically small) test set alone as a proxy for an MSA's more general accuracy. Note also that eCOMPASS requires no "gold standard" alignments whose accuracy must be assumed. It bases its evaluation only on the given MSAs and on the experimentally determined structures.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.2">Direct Coupling Analysis</head><p>In order to infer structural information from correlations between column pairs of each MSA, as a prelude to assessing the accuracy of this information, eCOMPASS first performs on the alignments direct coupling analysis (DCA) <ref type="bibr">(Hopf, et al., 2012;</ref><ref type="bibr">Lunt, et al., 2010;</ref><ref type="bibr">Morcos, et al., 2011;</ref><ref type="bibr">Nugent and Jones, 2012;</ref><ref type="bibr">Weigt, et al., 2009)</ref>. Residue pairwise correlations were long believed, in principle, to be predictive of structural contacts, but early approaches fell short of expectations due to the confounding effect of indirect correlations: When residues correlate both at positions i and j and at positions j and k, then residues at positions i and k may also correlate even though they fail to interact directly. DCA overcomes this problem by disentangling direct from indirect correlations using a variety of algorithmic strategies. eCOMPASS uses pseudolikelihood maximum entropy optimization <ref type="bibr">(Marks, et al., 2011;</ref><ref type="bibr">Marks, et al., 2012)</ref> as implemented in CCMpred <ref type="bibr">(Seemayer, et al., 2014)</ref>; this strategy outperformed <ref type="bibr">(Neuwald and Altschul, 2018</ref>) DCA programs based either on sparse inverse covariance estimation <ref type="bibr">(Jones, et al., 2012)</ref> or on multivariate Gaussian modeling <ref type="bibr">(Baldassi, et al., 2014)</ref>.</p><p>Many multiple alignment methods construct an idealized model to which individual protein sequences are aligned, resulting in some residues being treated as insertions with respect to this model, and therefore left essentially unaligned to residues in other sequences. For an MSA constructed by such a method, it is only the columns corresponding to modeled positions to which we apply DCA, and we effectively ignore all inserted residues. Other multiple alignment methods align all residues in all input sequences, but this usually results in many columns having null characters for most sequences. To apply DCA effectively to such eCOMPASS alignments, we first exclude columns having greater than 50% null characters.</p><p>The output of DCA applied to an MSA M 1 is a set K 1 of direct coupling (DC) scores for all of M 1 's column pairs. DC-scores correspond to the average product corrected Frobenius norms <ref type="bibr">(Dunn, et al., 2008;</ref><ref type="bibr">Seemayer, et al., 2014)</ref>. (DCA methods model both one-and two-site statistics, though eCOMPASS makes use of only the later.) We assume only that these scores grow monotonically with the degree of inferred direct coupling between MSA columns. We observe, however, that there is no immediate way to compare the set K 1 with an analogous set K 2 derived from M 2 , both because they typically will differ in size, and because there is no clear correspondence between the columns of M 1 and M 2 .</p><p>We address this issue by using the sequence of each protein with known structure, considered individually, to choose comparable subsets of K 1 and K 2 , which we call K 1 ' and K 2 '. Specifically, for a given protein, we first determine the subset R of its residues that are aligned both in a column in M 1 and in a column in M 2 . Identifying the residues in R with the MSA columns to which they are aligned, we define K 1 ' (and K 2 ' analogously) as the subset of K 1 corresponding to all pairs of residues in R separated by at least m (5 by default) intervening residues within the protein's primary sequence. (We impose this latter condition because we are not interested in predicting close contacts that are imposed by a protein's backbone.) K 1 ' and K 2 ' are then of equal size, with elements corresponding to identical pairs of residues within R. Note, however, that each individual structure defines distinct K 1 ' and K 2 ', and it is only such sets, constructed from the same structure, that are directly comparable.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.3">Initial Cluster Analysis</head><p>Our approach is based on the assumptions that within a protein family the evolution of structurally interacting residue pairs is likely to be correlated, and that an accurate multiple alignment of sequences in the family should capture information concerning such correlations in the form of high DC scores. Given two MSAs for a protein family, and a particular structure, we have constructed sets of DC scores, K 1 ' and K 2 ', each of whose elements correspond to the same set of residue pairs of known 3D distance and are therefore comparable. We note, however, that inherent differences, such as differing numbers of columns, in the MSAs M 1 and M 2 that are used to construct first K 1 and K 2 , and then K 1 ' and K 2 ', renders problematic the direct comparison of the raw scores within K 1 ' and K 2 '. Instead, we assume only that higher scores within each set should be preferentially associated with closer structural distances.</p><p>To measure the strength of the association between DC scores and physical distances, we turn to Initial Cluster Analysis (ICA) <ref type="bibr">(Altschul and Neuwald, 2018)</ref>. ICA considers an ordered array of L elements, among which D are designated as distinguished, and seeks the initial segment of the array, of length X, with the most surprising number d of distinguished elements, as measured by a p-value. A generalization of ICA that has been applied to DC scores <ref type="bibr">(Neuwald and Altschul, 2018)</ref>, and which we employ here, adds an ordering to the distinguished elements, and folds into its optimization a statistical measure of the degree to which the higher ranked among the distinguished elements appear earlier in the array. In essence, this generalization can be understood as measuring the degree of congruence between two ordered sets.</p><p>Here, we take the array of elements to be the set of DC scores K 1 ' (or K 2 '), ordered from highest to lowest. The distinguished elements are those corresponding to residue pairs whose structural distance is &#8804; z (with z = 4 &#197; by default). Note that, except for glycine, z is based on the distance between sidechain atoms rather than between &#945;-or &#946;-carbons. ICA returns an S-score <ref type="bibr">(Neuwald and Altschul, 2018)</ref> </p><p>scores have units of log-probability and are therefore directly comparable. Nevertheless, when the relationship between two orderings is known, or strongly suspected, to be significant, an array with a larger number of elements L, and/or a larger number of distinguished elements D, may intrinsically favor the generation of higher or lower S-scores. In such cases, it is best to compare only S-scores generated from arrays with the same L and D. Because the scores S 1 and S 2 we calculate for our two input MSAs from K 1 ' and K 2 ' are, by construction, generated using the same L and D, we take their difference = S 1 -S 2 as a valid measure of the &#916;&#119878; evidence provided by the structure in question for the relative accuracies of MSAs M 1 and M 2 . In this study, an S-score can be understood as a statistical measure of the congruence of structural contacts with DC-scores (i.e., average product corrected Frobenius norms).</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.4">Eliminating Structures Likely to be Misaligned</head><p>It would be possible to assess the relative quality M 1 and M 2 by evaluating solely how well each MSA aligns the reference structures to one another. However, this would ignore how the vast number of remaining sequences are aligned. In contrast, eCOMPASS measures how well the DC scores derived from each MSA predict 3D-contacts between residue pairs in each reference structure. This assumes, however, that each structure is properly aligned, in the main, within both MSAs, which may not be the case.</p><p>To identify reference structures that may be misaligned within a particular MSA, we first determine, for each structure i, the subset R i of its residues that are aligned by the MSA to residues rather than null characters in all other structures; note that the R i will be of the same size for all structures. We then compute, for each pair of structures i and j, the quantity &#916;&#120071; ij , defined as the mean, for all pairs of residues a and b within R i , of the absolute difference between the C&#945; distance of a to b and the C&#945; distance within structure j of the residues to which a and b align. It can be seen that &#916;&#120071; ij = &#916;&#120071; ji , and this quantity may be understood to measure how well sequences i and j are structurally aligned with one another <ref type="bibr">(Hasegawa and Holm, 2009;</ref><ref type="bibr">Holm, et al., 2008)</ref>. Assuming most structures are on average properly aligned, a structure i that is poorly aligned should have high &#916;&#120071; ij for most j, and therefore an unusually high mean value of &#916;&#120071; ij for all j&#8800; i, which we denote as &#916;&#120071; i . Any structure whose &#916;&#120071; i is &#8805; 2 SD above the mean is likely to be misaligned and thus to yield unreliable results, and we accordingly may choose to remove it from consideration. We iteratively recalculate until convergence the mean and SD from the remaining &#916;&#120071; i , and each time remove any structure whose &#916;&#120071; i is &#8805; 2 SD above the mean. Of course, to apply this approach effectively it is important to have a sufficient number of diverse structures (corresponding by default to proteins sharing &#8804; 65% sequence identity). After all structures with questionable alignment within either MSA have been removed, we calculate , the mean value of , both for the remaining &#916;&#119878; &#916;&#119878;</p><p>structures and for all structures, as two alternative measures of the relative quality of M 1 and M 2 . Note that the number of columns used to calculate the &#916;&#120071; i varies from one MSA to another, as of course do the subsets of residues R i within the various structures. Thus, in contrast to the S i , the &#916;&#120071; i are properly comparable only among different structures for the same MSA, but not between one MSA and another. Nevertheless, as we will see below, there is a noticeable tendency for the MSA preferred by the measure also to &#916;&#119878; yield a lower (mean &#916;&#120071; i ), which can be understood as a rough &#916;&#120071; measure of how well an MSA aligns the reference structures to one another.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.5">Using simulated Potts model MSAs as gold standards</head><p>We created a Potts model for each of 40 CDD/MAPGAPS-generated MSAs (listed in Table <ref type="table">S1</ref>) using CCMpredPy <ref type="bibr">(Vorberg, et al., 2018)</ref>. To obtain 3D contacts for each Potts model, we created corresponding homology modeled structural coordinates using SWISS-MODEL <ref type="bibr">(Waterhouse, et al., 2018)</ref>; column pairs corresponding to 3D contacts &gt; 8 &#197; in the structure are set to zero in the Potts model generated by CCMpredPy. A simulated 5,000 sequence alignment was generated for each Potts model using CCMgen <ref type="bibr">(Vorberg, et al., 2018)</ref>. We realigned the sequences for each of the simulated MSAs using four different MSA programs (see below) and used eCOMPASS to score each realigned MSA when compared to the corresponding gold standard MSA.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3">Application</head></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.1">Overview</head><p>Most commonly used multiple alignment programs fail to generate plausible MSAs when given as input the numbers of sequences considered in this study, typically in the tens or hundreds of thousands. Therefore, we do not attempt to evaluate these programs, but instead apply eCOMPASS in three ways: (i) to 8 CDD versus PFam MSAs; (ii) to 40 realigned versus gold standard simulated MSAs; and (iii) to 31 CDD versus JackHMMER MSAs using various eCOMPASS hyperparameter settings. The numbers of aligned sequences for each domain are given in column 2. Lengths of MSA 1 and 2 are given in columns 3 and 5, respectively, and corresponding CDD and Pfam identifiers are given in columns 4 and 6, respectively. CDD alignments were obtained using, as input to MAPGAPS, the NCBI CDD hierarchical MSA and the sequences present in the corresponding Pfam MSA, as was recently described <ref type="bibr">(Neuwald, et al., 2020)</ref>. Each Pfam MSAs had been generated automatically by creating a hidden Markov model profile from a Pfam seed alignment and then aligning related sequences to the profile <ref type="bibr">(Sonnhammer, et al., 1998)</ref>. For each analysis, the number of reference structures and the average % identity shared among aligned regions of known structure are given in columns 7 and 8, respectively.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.2">CDD versus Pfam MSAs</head><p>We illustrate eCOMPASS using 8 pairs of MSAs (Table <ref type="table">1</ref>), each consisting of one CDD-based MSA (obtained as described in Table <ref type="table">1</ref>) and one Pfam MSA <ref type="bibr">(El-Gebali, et al., 2019)</ref>. These MSA pairs represent the following protein superfamilies: C2 domains (C2); cupredoxins (CuDX); haloacid dehalogenase-like hydrolases (HAD); class B metal &#946;-lactamases (MBL); pleckstrin homology domains (PH); phosphotransferase system subunit IIB (PTS); rhodanese homology domain (RHOD); and sulfatases (SFTS). We obtained a mean of 25 reference structures per domain. Over their domain footprints, on average these share 19% sequence identity, and each structure shares &lt; 50% identity with all other structures. Thus, these represent well the diversity of each superfamily. The eCOMPASS output files are available as Supplementary Material. "CDD" MSAs achieved, on average, higher S-scores than Pfam MSAs (Table <ref type="table">2</ref>). However, because both types of alignments depend on some degree of manual curation, we draw no general conclusion regarding which of these tend to be more accurate. Rather, our aim here is merely to describe eCOMPASS and illustrate its application.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.3">CDD vs PFam subgroup-specific analyses</head><p>Because a protein superfamily is typically composed of multiple families and subfamilies, which may be aligned with differing accuracy, the &#916;&#119878; scores for different structures should not be considered as drawn from the same underlying distribution and their variance may therefore be very high. Accordingly, when asking which is the more accurate of two MSAs overall, it is better to consider each score as a separate vote. Assuming &#916;&#119878; independence for simplicity, we calculate the significance of the majority vote using the two-tailed p-value for the equiprobable binomial distribution. We expect these p-values to correlate to some extent with , the mean score, but these two quantities may vary considerably in &#916;&#119878; &#916;&#119878; implied significance, or, in principle, even disagree on which is the better MSA. Also, we recognize that even two structures with low sequence identity are not truly independent, so that our calculated p-values must be discounted to some extent.</p><p>In Table <ref type="table">2</ref>, we present a summary of eCOMPASS's results for the eight domains considered. After putatively misaligned reference structures are excluded, for four domains (C2, MBL, PH and PTS) eCOMPASS finds unanimity among the remaining structures favoring one of the MSAs. These agreements are statistically significant, with the Pfam MSA favored for C2, and the CDD MSA favored for MBL, PH and PTS. (This frequent unanimity is evidence that the score is no mere random artifact but is &#916;&#119878; a valid measure for the greater ability of one MSA to encode structural features as directly coupled residue pairs.) For the remaining four domains, neither MSA is preferred with an estimated p &lt; 0.001, and the SD of the values exceeds their absolute mean. &#916;&#119878; <ref type="table">Table 2</ref> </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>eCOMPASS</head><p>To illustrate and study our procedure for excluding structures, we consider in detail its operation on the PTS domain. In Table <ref type="table">3</ref>, we show the specific values of S and &#916;&#120071; i for each of the 13 reference structures and each MSA. As is apparent, only for structure 3czcA and MSA 1 does &#916;&#120071; i exceed the mean by over two SDs, so we exclude this one structure as unreliably aligned. (When the mean and SD for the remaining &#916;&#120071; i for MSA 1 are recalculated, no further structures are excluded.) Note that this has the effect of eliminating the one negative , leaving unanimous &#916;&#119878; preference for MSA 1 among the remaining structures. An examination of the structures eliminated by our procedure for the other seven domains shows that they very often yield outlying values of , although this is &#916;&#119878; neither expected nor observed to be universally the case. structurally realigned using Dali <ref type="bibr">(Holm and Rosenstrom, 2010)</ref>, its &#916;&#120071; i decreased to 2.35 &#197; (1.5 SD above the mean) and its S score increased to 41.5, providing further evidence that it was originally misaligned. The realigned region is highlighted in black; numbers correspond to the residue positions at each end.</p><p>It is not eCOMPASS's function to amend the MSAs with which it is supplied. However, to study further the validity of eCOMPASS's procedure for rejecting structures as misaligned, and their corresponding &#916; as unreliable, we used Dali <ref type="bibr">(Holm and Rosenstrom, 2010)</ref> to structurally &#119878; realign 3czcA to the other structures. As shown in Fig. <ref type="figure">1</ref>, given the resulting modified MSA 1, &#916;&#120071; i for 3czcA is no longer an outlier, and the for 3czcA turns positive. Note, however, that sequences closely related &#916;&#119878; to 3czcA in MSA 1 were not realigned; if they had been, presumably the &#916; would have increased further. &#119878; One may object to our procedure for excluding a structure, from one or both MSAs, based upon internal evidence that it has been misaligned. Such a structure generally represents not only itself but also the alignment of closely related sequences, and arguably should have a vote equal to that of other structures regarding which alignment is better. In Table <ref type="table">4</ref> we give the results of our analysis if no structures are excluded. As might be expected, the values of in Table <ref type="table">4</ref> are higher, although this need not &#916;&#120071; always be the case because the removal of a structure due to a significantly high &#916;&#120071; i for one MSA may decrease for the other MSA. Also, for all &#916;&#120071; domains except CuDX, the standard deviation of the is higher. This &#916;&#119878; too is expected, because, although structures are removed with no reference to , misaligned structures have a strong tendency to produce &#916;&#119878; outlying values for , as illustrated, for example, in Table <ref type="table">3</ref>. Most &#916;&#119878; importantly, however, for all domains the assessment of which is the better MSA is essentially unchanged, by the measure either of or of the &#916;&#119878; binomial vote N 1 vs. N 2 . There appears to be a slight tendency for both | | and -log 10 (p) to decrease with the inclusion of all structures, but this is &#916;&#119878; neither systematic nor coordinated. The advantage of excluding apparently misaligned structures is that this focuses more on the overall quality of the MSAs, as measured by their direct coupling signal, and less on the alignment accuracy of the relatively small number of structures considered. To help assess such distinctions, eCOMPASS computes results using both approaches. For some superfamilies neither MSA was significantly favored based on the binomial p-value. For example, for the sulfatases (SFTS) p = 0.06 and, among the retained scores, 14 were positive (favoring MSA 1) &#916;&#119878; and 5 were negative (favoring MSA 2). The variability in scores was &#916;&#119878; very high with a SD of 19.7 and a mean of 15.5. Similar results were obtained when using all scores. This suggests that MSA 1 better aligns &#916;&#119878; some functionally divergent subgroups while MSA 2 better aligns others. This may occur, for example, when an MSA is generated by a query-based iterative alignment method, such as PSI-BLAST <ref type="bibr">(Altschul, et al., 1997)</ref> or JackHMMER <ref type="bibr">(Johnson, et al., 2010)</ref>, resulting in subgroups closely related to the query being more accurately aligned than distantly-related subgroups. The Pfam MSAs used for this study were generated using a similar profile-based alignment method.</p><p>By providing a more articulated description of relative alignment quality than would a single measure of overall quality, eCOMPASS may aid the curation of hierarchical MSAs <ref type="bibr">(Yang, et al., 2020)</ref>, which were provided as input to MAPGAPS to generate the MSA 1 alignments used here. For instance, for the SFTS domain, the structure 4uplA, which is a member of the phosphonate monoester hydrolase family (i.e., cd16028), has the lowest score (-53.2) and the highest &#916;&#120071; i (2.99 &#197;) for MSA 1 &#916;&#119878; (see Supplementary Data). This suggests that, by further curating the cd16028 subgroup, one could improve the CDD hierarchical MSA and thus the SFTS MSA generated from it.</p><p>Finally, as discussed above, scores should only be compared with &#916;&#120071; caution because both the numbers and the nature of the residue pairs used to compute C&#945;-C&#945; distances differ between MSAs. For example, unlike other domains, the C2 MSA deemed superior by the measure of &#916;&#119878; (Tables <ref type="table">2</ref> and<ref type="table">4</ref>) yielded higher</p><p>. This illustrates how relying on &#916;&#120071; &#916;&#120071; scores may miss distinctions between MSAs revealed by better justified and statistically based scores. &#916;&#119878; </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.4">Program-aligned vs gold standard simulated MSAs</head><p>Using the procedure described in Methods, we created 40 simulated gold standard MSAs, each with a single associated structure. We realigned the sequences of each MSA using four programs: GISMO (v3.1) <ref type="bibr">(Neuwald and Altschul, 2016)</ref>, Kalign 3 <ref type="bibr">(Lassmann, 2020)</ref>, <ref type="bibr">MAFFT (v7.471)</ref>  <ref type="bibr">(Katoh and Standley, 2014)</ref>, and MUSCLE (v3.7) <ref type="bibr">(Edgar, 2004)</ref>. To compute each realigned MSA's distance from its associated gold standard, we calculated an SP-score (from "Sum of the Pairs"), which is the proportion of aligned pairs of residues within the gold standard that are aligned identically within the realigned MSA. We then used eCOMPASS to compare each realigned MSA to its corresponding gold standard MSA. As described above, given two MSAs eCOMPASS generates directly comparable scores, which we here denote as S for the realigned MSA and as S&#176; for the gold standard MSA. Notably, as expected, in all cases the Sscore is less than the S&#176;-score. To study how well the relative values of S and S&#176; correspond to the distance between the realigned and gold standard MSAs, we plot in Fig. <ref type="figure">2</ref> S/S&#176; versus SP for each case. There is clearly a strong and close to linear correlation between S/S&#176; and SP, with the Pearson correlation coefficient equal to 0.92. The regression line has a slope of 1.117 and a y intercept of -0.077, suggesting that S/S&#176; is a good and relatively direct proxy for gold standard distance. Hence, for real protein sequence alignments, where we do not have gold standards for comparison, we may use comparable S scores as proxies for alignment accuracy.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.5">CDD vs JackHMMER MSA analyses</head><p>To further explore the utility and robustness of eCOMPASS, we compared the 40 CDD MSAs, upon which our simulated MSAs were based, to corresponding MSAs aligned with JackHMMER (JHM) <ref type="bibr">(Johnson, et al., 2010)</ref> using an arbitrary sequence as the query (Table <ref type="table">S1</ref>). To reduce sequence redundancy, we removed from each MSA all but one sequence among those sharing &#8805;95% sequence identity using either cd-hit <ref type="bibr">(Fu, et al., 2012)</ref> or PurgeMSA <ref type="bibr">(Neuwald, et al., 2020)</ref>. Note that this analysis allows the inclusion of more reference structures because, unlike the CDD vs Pfam analysis, the number of structures included was not predefined by Pfam. To identify domains for which a clearly significant distinction was at least possible, we focused on 31 of the 40 domains having at least 18 distinct structures, which could, in principle, yield a two tailed binomial probability p &lt; 10 -5 . Among these the CDD MSA was significantly better at the p &lt; 10 -3 level for 12 domains whereas the JHM MSA was significantly better for 6 domains (Fig. <ref type="figure">3</ref>). To evaluate the robustness of eCOMPASS, we reran each of these analyses using various CCMpred hyperparameter settings. (Another variable is the DCA implementation used, which, however, is too technically challenging to investigate here.) Using either flat (uniform) priors or Jeffreys uninformed priors [28] yielded essentially identical results (Fig. <ref type="figure">S1</ref>). We also ran eCOMPASS with maximum residue pair 3D contact cutoffs of 4, 5, and 6 &#197; (Fig. <ref type="figure">4</ref>), with alternative CCMpred eCOMPASS sequence reweighting thresholds of 70, 80, and 90% (Fig. <ref type="figure">5</ref> top), and with L1 regularization strengths of 0.1, 0.2, and 0.3 (Fig. <ref type="figure">5</ref> bottom). Notably, in only one case did two different parameter settings yield conflicting results both at a significance level &#8804; 0.01. This arose for the L1 regularization parameter and the AAT_1 domain, for which conflicting results were reported with p-values of 0.005 and 0.002.  The observed variability in the binomial probability yielded by different parameter settings is likely due to changes the implicit nature of the MSAs, of the ICA array or of both. For example, decreasing the CCMpred reweighting threshold <ref type="bibr">(Seemayer, et al., 2014)</ref> is likely to decrease the DCA signal from highly populated subgroups.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4">Discussion</head><p>eCOMPASS computes a statistical score ( ) that compares the accuracy &#916;&#119878; of two large MSAs and that is based on all the aligned sequences and on a set of reference structures. This score exploits the DC-signal implicit in each alignment and whose strength presumably depends on the degree to which homologous residues are accurately aligned. eCOMPASS's strategy constitutes a departure from current approaches. These typically rely upon a benchmark set, consisting of a small number of sequences aligned using structural data. However, they are essentially blind to the alignment accuracy of sequences absent from the set. Unlike other programs for assessing MSA quality <ref type="bibr">(Ahola, et al., 2008;</ref><ref type="bibr">Lassmann and Sonnhammer, 2005;</ref><ref type="bibr">O'Sullivan, et al., 2003;</ref><ref type="bibr">Pei and Grishin, 2001;</ref><ref type="bibr">Song, et al., 2006;</ref><ref type="bibr">Thompson, et al., 2001)</ref>, eCOMPASS provides measures of statistical significance, can handle extremely large MSAs, requires neither a gold standard MSA nor a structural alignment, and can assess the alignment quality of subgroups within an MSA. Almost all multiple alignment construction methods employ some objective function of alignment quality which they attempt to optimize. For assessing the relative accuracy of two multiple alignments, relying upon the objective function used for either's construction will of course bias the results, so it is best to seek an independent measure. The congruence of structural contacts with alignment-derived DCA scores provides a convenient such measure, and one that avoids reliance upon a set of gold standard alignments.</p><p>Several recent multiple alignment construction methods <ref type="bibr">(Muntoni, et al., 2020;</ref><ref type="bibr">Talibart and Coste, 2020;</ref><ref type="bibr">Talibart and Coste, 2020;</ref><ref type="bibr">Wilburn and Eddy, 2020)</ref> incorporate DCA models into the objective functions they seek to optimize. To the extent that these models have been derived from particular structures, applying eCOMPASS to their evaluation using these very structures is likely to bias eCOMPASS's results in favor of the resulting multiple alignments. How to extend eCOMPASS to the comparison of such multiple alignments, or at least how to mitigate any confounding effects, is a question for further research. In this paper, however, none of the alignments of real proteins studied here were constructed with the use of a Potts model.</p><p>Recently, <ref type="bibr">Muntoni et al. (2020)</ref>, in comparing the alignments constructed by their program DCAalign to those produced by other programs, used one method very similar in spirit to that of eCOMPASS. From alignment-derived pairwise coupling scores, they predicted contacting residue pairs and then, with reference to a known structure, plotted the true positive prediction rate as a function of the number of predictions made. It should be possible to derive from the resulting graphs a statistically-based measure, similar to our &#916;S, for the relative accuracy of the two alignments. Following, for example, the approach of <ref type="bibr">(Schaffer, et al., 2001)</ref>, one could calculate a ROC (receiver operating characteristic) score from a variant of each graph, and then infer p-values for the difference of these scores. Whether such a statistical approach is superior to the one taken here is an avenue for further study.</p><p>Ideally, eCOMPASS should be applied using a set of reference structures representing diverse subgroups within a superfamily, as in the examples here. Then, in addition to providing an assessment of overall alignment accuracy, eCOMPASS can identify those subgroups that are least accurately aligned, as an aid to improving MSA methods. This raises the issue of multiple conformations for the same protein, which is a major concern for DCA. A future version of eCOMPASS might provide the option of choosing the highest DC-score among alternative conformations for each residue pair. In order to investigate directly coupled residue pairs corresponding to a subgroup specific conformation, such as we reported recently <ref type="bibr">(Tondnevis, et al., 2020)</ref> , it may be useful to apply eCOMPASS to subgroup alignments within a superfamily MSA.</p><p>For MSA methods that fail to incorporate information from DCA into their objective functions, the statistical significance of the agreement between DC-scores and 3D contacts within available structures serves as a measure of alignment accuracy that is independent of the criteria used in constructing the MSA. In any case, eCOMPASS should be uniquely useful for evaluating the extremely large MSAs typically required for deep learning protein sequence analyses and for statistical analyses requiring a vast amount of sequence data.</p></div><note xmlns="http://www.tei-c.org/ns/1.0" place="foot" xml:id="foot_0"><p>Downloaded from https://academic.oup.com/bioinformatics/advance-article/doi/10.1093/bioinformatics/btab374/6275262 by Columbia University user on 06 June 2021</p></note>
		</body>
		</text>
</TEI>
