 Methodology article
 Open Access
 Published:
A fast structural multiple alignment method for long RNA sequences
BMC Bioinformatics volume 9, Article number: 33 (2008)
Abstract
Background
Aligning multiple RNA sequences is essential for analyzing noncoding RNAs. Although many alignment methods for noncoding RNAs, including Sankoff's algorithm for strict structural alignments, have been proposed, they are either inaccurate or computationally too expensive. Faster methods with reasonable accuracies are required for genomescale analyses.
Results
We propose a fast algorithm for multiple structural alignments of RNA sequences that is an extension of our pairwise structural alignment method (implemented in SCARNA). The accuracies of the implemented software, MXSCARNA, are at least as favorable as those of stateofart algorithms that are computationally much more expensive in time and memory.
Conclusion
The proposed method for structural alignment of multiple RNA sequences is fast enough for largescale analyses with accuracies at least comparable to those of existing algorithms. The source code of MXSCARNA and its web server are available at http://mxscarna.ncrna.org.
Background
Noncoding RNAs (ncRNAs) are transcribed RNA molecules that do not encode proteins. Their functions often depend on their 3Dstructures rather than their primary sequences. The secondary structures of RNA sequences can be identified by various methods, including minimization of the free energy [1–3]. However, it is not always possible to obtain the accurate secondary structures. More reliable predictions of the secondary structures are possible if we have a set of RNA sequences with a common secondary structure. For consensus structure prediction, RNAalifold [4], Pfold [5], and McCaskillMEA [6] are applicable only to sets of aligned RNA sequences. Multiple alignment tools that consider only sequence similarities, e.g. ClustalW [7], Dialign [8], and TCoffee [9], however, have limited accuracy for RNA sequences with low similarity.
Simultaneous prediction of the common secondary structure and optimal alignment of RNA sequences is computationally quite expensive, even if pseudoknotted structures are excluded. For example, the strict algorithm of Sankoff [10] requires O(L^{3N}) in time and O(L^{2N}) in memory for N sequences of length L. Its faster variants that restrict the distances of the base pairs in the primary sequences are proposed for pairwise alignments [11–14].
Although structural alignment of multiple RNA sequences with reasonable computational cost is difficult, several algorithms have been proposed. Hofacker et al. proposed a method for progressive multiple alignments by direct comparison of the basepairing probability matrices [12], implemented in PMmulti which was recently reimplemented in FoldalignM [15] and Locarna [16] by Torarinsson et al. and Will et al., respectively. In Stemloc, Holmes et al. incorporated a constraint approach that limits the range of structures and alignments to be considered by preprocessing the sequences [13, 14]. Siebert et al. proposed an approach distantly related to Sankoff's algorithm and implemented it in MARNA [17] that uses the structural information for pairwise alignments before combining them into multiple alignments with TCoffee [9]. Dalli et al. developed a new scoring approach, StrAl, that takes into account sequence similarities as well as basepairing probabilities [18]. Xu et al. proposed a new sampling based algorithm that finds the common structure between input sequences by probabilistically sampling aligned stems based on stem conservation calculated from intrasequence base pairing probabilities and intersequence base alignment probabilities, which was implemented in RNASampler [19]. Bauer et al. developed a graph based representation which modeled sequencestructured alignment as an integer linear program (ILP), and implemented it in RNAlara [20]. Kiryu et al. proposed a variant of Sankoff's algorithm with marked reduction of computation, which was implemented in Murlet [21]. All of these methods, however, are still too slow to apply to the RNA sequences longer than 1000 bases. Seibel et al. developed an alignment tool with an editor, which uses the secondary structure information of individual sequences to align multiple RNA sequences with low time complexities (4SALE) [22]. In order to extract the common secondary structure, it is also possible to find the structural motifs without aligning the whole sequences. For structural motif finding, Yao et al. proposed an algorithm based on covariance models (CMfinder) [23], and Hamada et al. proposed a graph mining approach (RNAmine) [24].
Here we propose a method, implemented in MXSCARNA, for fast multiple alignments of RNA sequences. This method extends our previous work in pairwise alignments (SCARNA) [25] to progressive multiple alignments with improved score functions, and simultaneously construct multiple alignments and the associated common secondary structures. The pairwise alignment in this progressive alignment is an heuristic algorithm that separately aligns 5' parts and 3' parts of the stems with rough consistency considerations.
In benchmark experiments, our method was at least as accurate as currently available stateofart multiple alignment methods, but unlike those methods, the computations were fast enough for largescale analyses, though the accuracies for the alignments of long sequences have not yet been confirmed.
Results and Discussion
Algorithm
Overview of the algorithm
The proposed method, implemented in MXSCARNA, progressively aligns multiple RNA sequences, in an extension of the pairwise structural alignment algorithm (implemented in SCARNA) of our previous work [25].
First the guide tree for the progressive alignment is built by Unweighted Pair Group Method with Arithmetic Mean (UPGMA) [26] by using the pairwise similarities of the RNA sequences. Second the basepairing probability matrices are calculated for all the RNA sequences by McCaskill's algorithm [27]. Those basepairing probabilities are used for extracting the potential stems and for the matching scores in the Dynamic Programming (DP) of the alignments. Third the RNA sequences are progressively aligned along the guide tree using SCARNA's pairwise alignment algorithm with improved score functions introduced in this paper.
At the first stage of the progressive alignment, which corresponds to the bottom level of the guide tree, the pairs of RNA sequences are aligned by engineered DP algorithm of SCARNA's pairwise alignment. The pairwise alignment is very fast because the potential stems extracted from the basepairing probability matrices are decomposed into 5' part and 3' part and those two parts are independently aligned. In each upperlevel step of the progressive alignment according to the guide tree, potential stems for groups of RNA sequences are extracted from the averaged basepairing probability matrices.
The DP algorithm of the pairwise alignment uses the approximated posterior probabilities as score functions. The approximation uses the product of the pairwise posterior probabilities of Maximum Expected Accuracy (MEA) alignments and the basepairing probabilities of the sequences. MEA alignment maximizes the expected number of positions where the two nucleotides are correctly aligned. To yield robust alignments, the pairwise posterior probabilities of MEA alignments are modified by the probability consistency transformation.
Definitions
Definition 1: Stem candidate
Given a basepairing probability matrix for an RNA sequence and a threshold τ (0 <τ < 1), stem candidate is a set of continuous base pairs of which the basepairing probabilities are greater than τ.
Definition 2: Stem fragment
Given a basepairing probability matrix for an RNA sequence, a threshold τ (0 <τ < 1), and an integer W, stem fragment is a set of continuous base pairs of length W, of which the basepairing probabilities are greater than τ.
A stem candidate longer than W is represented by a set of overlapping stem fragments of fixedlength W (Figure 1). Smaller values in W or τ increase the sensitivity of the predictions of the stems and decrease the specificity of them. W and τ are set to 2 and 0.01 respectively in all the computational experiments in this paper. For each stem fragment, the 5' stem component and the 3' stem component, which are representatives of the 5' and 3' portions of the stem fragment, respectively, are defined as follows.
Definition 3: Stem component
For each stem fragment, a stem component X_{ a }, either a 5' stem component or a 3' stem component, is an object that has the following properties:

p(X_{ a }): position, the position of the leftmost base of the 5' or 3' part of the stem fragment.

s(X_{ a }): sequence, the nucleotide sequence of the 5' or 3' part of the stem fragment.

c(X_{ a }): partner component, the complementary (3' or 5') stem component.

d(X_{ a }): loop distance, the distance to the complementary (3' or 5') stem component.
A stem fragment is written as [X_{ a }, X_{ a' }] by using the mutually complementary stem components, 5' stem component X_{ a }and 3' stem component X_{ a' }, which represent the 5' and 3' parts of the stem fragment. X_{ a }and X_{ a' }satisfyX_{ a }= c(X_{ a' }) and X_{ a' }= c(X_{ a }).
The loop distance d(X_{ a }) can be written asd(X_{ a }) = p(c(X_{ a }))  p(X_{ a })  W.
Definition 4: stem component sequence (SCS)
A stem component sequence (SCS) is a sorted sequence of all the stem components of an RNA sequence, in order of their positions and, if the positions are the same, according to their loop distances.
For i <j, a SCS X= X_{1}X_{2} ... X_{ m }satisfiesp(X_{ i }) <p(X_{ j }) or p(X_{ i }) = p(X_{ j }) &d(X_{ i }) <d(X_{ j }).
Definition 5: relations of stem fragments without an overlap
Two stem fragments, [X_{ a }, X_{ a' }] and [X_{ b }, X_{ b' }] of an RNA sequence are, parallel if and only ifp(X_{ a }) <p(X_{ a' }) <p(X_{ b }) <p(X_{ b' }) or p(X_{ b }) <p(X_{ b' }) <p(X_{ a }) <p(X_{ a' }),
nested if and only if p(X_{ a }) <p(X_{ b }) <p(X_{ b' }) <p(X_{ a' }) or p(X_{ b }) <p(X_{ a }) <p(X_{ a' }) <p(X_{ b' }),
pseudoknotted if and only if p(X_{ a }) <p(X_{ b }) <p(X_{ a' }) <p(X_{ b' }) or p(X_{ b }) <p(X_{ a }) <p(X_{ b' }) <p(X_{ a' }).
Definition 6: relations of overlapping stem fragments
Two stem fragments, [X_{ a }, X_{ a' }] and [X_{ b }, X_{ b' }] of an RNA sequence are, rcontinuous if and only ifr = p(X_{ b })  p(X_{ a }) = p(X_{ a' })  p(X_{ b' }),
illcontinuous if and only if X_{ a }overlaps X_{ b }and X_{ a' }overlaps X_{ b' }andp(X_{ b })  p(X_{ a }) ≠ p(X_{ a' })  p(X_{ b' }),
contradictory if and only if only one side, either 5' part or 3' part, of the stem fragments overlap.
The three possible relationships between stem fragments without an overlap: parallel, nested, and pseudoknotted, may exist in the same secondary structure of an RNA sequence. However, among the three possible relationships between overlapping stem fragments, only rcontinuous stem fragments may coexist in the same secondary structure of an RNA sequence. 1continuous, a special case of rcontinuous, means that the two stem fragments are adjacent in the RNA sequence and a part of a stem candidate with a length of W + 1 (Figure 1). As described later, two overlapping stem components in the alignment are controlled to belong to two rcontinuous stem fragments in DP.
Building stem component sequences
In a basepairing probability matrix, which is calculated by McCaskill's algorithm [27], a potential stem is located in two symmetry locations as continuous counterdiagonal positions which have high basepairing probabilities. Therefore, the stem components for each RNA sequence defined in previous section are extracted by scanning counterdiagonal windows of length W in the basepairing probability matrix and selecting the windows whose elements are greater than τ. Smaller value in W or τ increase the sensitivity of the predictions of the stems and decrease the specificity of them. W and τ are set to 2 and 0.01 respectively in all the computational experiments in this paper.
The stem components are sorted in order of their positions and loop distances to construct a stem component sequence (SCS).
For each group alignment in the progressive alignment, the average of the basepairing probability matrices is calculated directly according to the alignment of the group of RNA sequences. The stem components for the group are extracted from the averaged matrix, and the SCS is constructed by sorting the stem components.
Alignment of stem component sequences
Before the pairwise alignments or group alignments, RNA sequences or groups of RNA sequences are represented by their stem component sequences (SCSs). Those two SCSs are aligned by SCARNA's pairwise DP algorithm in each stage of the progressive alignment. The alignment of the two SCSs uses two DP matrices, M(i, j) and G(i, j). For two SCSs, {X_{ i }}(i = 1, ... X) and {Y_{ j }}(j = 1, ... Y), M(i, j) is the best score of the alignment of the pair X_{ i }and Y_{ j }, given that X_{ i }matches Y_{ j }, and G(i, j) is the best score given that X_{ i }mismatches Y_{ j }. The recursions for M(i, j) and G(i, j) are written as:
with the initial conditions; M(0, 0) = 0, M(·, 0) = M(0, ·) = G(0, 0) = G(·, 0) = G(0, ·) = ∞.
The first term of equation (1) controls the 1continuous case where the continuous matches of two overlapping stem components form a match of the corresponding stem longer than W. α_{ i }/β_{ j }are the indices (smaller than i/j) of the components that are 1continuous with X_{ i }/Y_{ j }. The positions of ${X}_{{\alpha}_{i}}/{Y}_{{\beta}_{j}}$ are adjacent to X_{ i }/Y_{ j }in the nucleotide sequences (Figures 1 and 2), i.e.
δ_{ s }(i, j) corresponds to the incremental score for the match of the overlapping stem components, which is discussed in the next section.
The second and third terms of equation (1) keep the stem components in the adjacent DP match from overlapping in the nucleotide sequences. p_{ i }/q_{ j }are the indices (smaller than i/j) of the nearest components that do not overlap with X_{ i }/Y_{ j }(Figure 2). s(i, j) is a match score for X_{ i }and Y_{ j }, which is discussed in the next section.
Equation (2) refers only adjacent positions in DP matrix because overlaps of X_{ i }and Y_{ j }with the other stem components are permitted. Because the 5' stem components and the 3' stem components are handled independently, there is no term for bifurcation in secondary structures in equations (1) and (2).
The traceback pointer keeps the triplets, indices of X, Y, and the selection of M or G, in the recursion (1) and (2). The first term of the triplet, the index of X, can be either α_{ i }, p_{ i }, i, or i  1, and the second term of the triplet, the index of Y, can be either β_{ j }, q_{ j }, j, or j  1. In the traceback of the DP, M(i, j) and G(i, j) are used jointly to obtain the optimal path and to select M or G, which gives the maximum score of the alignment. The alignments of SCSs are constructed by selecting the stem components that appear in the path with the selected M. All of the mismatched stem components are excluded from the alignment. The algorithm makes the adjacent DP matches of stem components either not overlapping in the nucleotide sequences or consistently overlapping (1continuous) as a match of the stems longer than W. Pairwise alignment of the SCSs requires only O(XY) in time and in memory. That computational complexities are evaluated as (L^{2}) for two RNA sequences of length L because the number of the stem components is regarded as a linear function of the length of the nucleotide sequence [25].
The pairwise alignment of SCSs allows some inconsistent matches by ignoring strict treatments of the complementary components. For two stem fragments, [X_{ a }, X_{ a' }] and [Y_{ b }, Y_{ b' }], if X_{ a }matches Y_{ b }in the SCS alignment, X_{ a' }should match Y_{ b' }. Let us define such a match as leftright consistent. Because 5' stem components and 3' stem components are aligned independently, leftright consistency is not guaranteed in general. Any match which is not leftright consistent is removed as a post process. If any two of the stem components of a same SCS appear in the SCS alignment and their complementary components overlap (i.e. contradictory in Definition 6), those complementary components do not appear together in the alignment because the alignment of complementary components are controlled to be either nonoverlapping or rcontinuous. Therefore, the post process also guarantees that no pair of contradictory stem fragments appears in the alignment [25].
The score function using the MEA alignment
In our previous work [25], a function of the RIBOSUM [28] score, loop distance, basepairing probabilities, and the stacking energy were used as the score s(i, j) in recursion (1). In MXSCARNA, the score function is replaced by an approximated posterior probability according to the principle of Maximum Expected Accuracy (MEA). Recent studies have shown that the accuracy of the resulting sequence alignment and secondary structure predictions is better than that of predictions made by the conventional maximum likelihood estimation (MLE) algorithms [21, 29–32].
In the following, for nucleotide sequences x and y, x_{ i }~ y_{ j }means that x_{ i }∈ x and y_{ i }∈ y are aligned on the same column in the alignment, and x_{ i }◇ x_{ j }means that x_{ i }, x_{ j }∈ x form a base pair. For two RNA sequences, x, y and k, l ∈ {1, ···, x}, m, n ∈ {1, ···, y}, let P(x_{ k }~ y_{ m }, x_{ l }~ y_{ n }, x_{ k }◇ x_{ l }, y_{ m }◇ y_{ n }x, y) be the posterior probability, i.e. the sum of the probabilities that two positions of the sequences, x_{ k }and y_{ m }, x_{ l }and y_{ n }, are aligned in the alignment, and that two pairs of the nucleotides, x_{ k }and x_{ l }, y_{ m }and y_{ n }, form base pairs in the secondary structures as well; this is computed by the insideoutside algorithm of the pair Stochastic Context Free Grammar (pair SCFG) [5] for structural pairwise alignments of RNA sequences. We wanted to use posterior probability as the score function s(i, j), but the computational costs, O(L^{6}) in time and O(L^{4}) in memory for sequences of length L, are impractical. We instead used the following approximated posterior probability introduced by Kiryu et al. [21].
P(x_{ k }◇ x_{ l }x) and P(y_{ m }◇ y_{ n }y) are the basepairing probabilities that the particular positions x_{ k }and x_{ l }, y_{ m }and y_{ n }, respectively, form base pairs; these probabilities are computed by McCaskill's algorithm [27].
$\tilde{P}$(x_{ k }~ y_{ m }x, y) and $\tilde{P}$(x_{ l }~ y_{ n }x, y) are the posterior probabilities modified by probability consistency transformation [32], which is computed as follows.
where S is the set of RNA sequences to be aligned. In this transformation, the probability of specific nucleotides of two sequences being aligned are replaced by the average over the products of probabilities that the two nucleotides are aligned to the same nucleotides in arbitrary third sequences. This calculation requires O(N^{3}L^{3}) in time and O(N^{2}L^{2}) in memory. The probability consistency transformations are applied twice in current implementation.
P(x_{ k }~ z_{ r }x, z) is the posterior probability, i.e. the sum of the probabilities that particular positions of the two sequences, x_{ k }and z_{ r }, are aligned in some alignment; this is computed by the forwardbackward algorithm of the pair Hidden Markov Model (pair HMM) [31] for pairwise alignment of the sequences. Our new matching scores in (1) are defined as follows.
where ${{X}^{\prime}}_{i}/{{Y}^{\prime}}_{j}$ are the complementary stem components of X_{ i }/Y_{ j }.
The sum of the probabilities, not the logarithms of the probabilities, is used for the matching score, in an effort to maximize the number of correctly aligned bases including the implicit prediction of the base pairs (MEA principle).
Alignment of loop region
The remaining loop regions (except the selected common stems) are aligned by using the consistencytransferred posterior probabilities, $\tilde{P}$(x_{ k }~ y_{ m }x, y), as the matching scores. The probabilities, not the logarithms of the probabilities, again are used, according to the MEA principle. The recursion is shown following.
Emission and transition probabilities for the pair HMM in MXSCARNA (Figure 3) were trained via ExpectationMaximization (EM) on a set of unaligned sequences that is extracted from the Rfam database and that do not overlap the sequences of the dataset for subsequent experiments.
Computational Experiments
Datasets
To test the empirical performance of MXSCARNA, we used three datasets for the benchmark multiple alignments: an original multiple alignment dataset, the BRAlibaseII multiple alignment dataset [33], and Kiryu et al.'s multiple alignment dataset [21].
Our original dataset comprised 1669 multiple alignments of 5 sequences, the secondary structures of which have been published, obtained from the Rfam 7.0 database [34]. There are 27 families of RNA sequences in the dataset and the sequence identities varied from 35% to 100%. Sequences that included bases other than A, C, G, and U were removed because some of the alignment programs were unable to align them. The BRAlibaseII benchmark dataset included 481 multiple alignments of 5 sequences. The sequences of each multiple alignment were extracted from tRNA, Intron_gpII, 5S_rRNA, and U5 families in the Rfam 5.0 database and the signal recognition particle RNA family (SRP) in the SRPDB database [35]. Because the dataset did not include consensus secondary structure annotations to the alignments, we used the secondary structure annotations recovered by Kiryu et al. [21].
Kiryu et al.'s multiple alignment benchmark dataset was generated from selected seed alignments in the Rfam 7.0 database that have published consensus structures [21]. For each sequence family, as many as 1000 random combinations of 10 sequences were generated. The alignments whose mean pairwise sequence identity exceeded 95% and whose gap characters accounted for more than 30% of the total number of characters aligned were removed. As such, this dataset consisted of 85 multiple alignments of 10 sequences, generated from 17 sequence families, with five alignments for each. The dataset was reasonably divergent, and its mean length varied from 54 to 291 bases, and mean pairwise sequence identities varied from 40% to 94%.
Evaluation measures
The qualities of the alignments were evaluated by the SumofPairs Score (SPS) for the accuracy of the alignments and by the Matthews Correlation Coefficient (MCC) [36] for the accuracy of the secondary structure predictions. The SPS and MCC of the alignment to be evaluated (named as a test alignment) for the reference alignment were defined as follows. The SPS was defined as the proportion of correctly aligned nucleotide pairs:
where I is the number of columns in the test alignment, J is the number of columns in the reference alignment, on column i in the test alignment ${\text{SP}}_{i}^{t}$ is the total number of "correct" nucleotide pairs which also appear in the reference alignment, on column j in the reference alignment ${\text{SP}}_{j}^{r}$ is the total number of nucleotide pairs. The MCC was defined as
where TP indicates the number of correctly predicted base pairs, TN the number of base pairs that were correctly predicted as unpaired, FP the number of incorrectly predicted base pairs, and FN the number of true base pairs that were not predicted. The term ξ accounts for predicted base pairs that were not present in the reference structure but were compatible with it. Compatible base pairs are not true positives but have to be neither inconsistent (one or both nucleotides being a part of a different base pair in the reference structure) nor pseudoknotted with respect to the reference structure [37]. In order to calculate MCC for each test alignment, the reference alignment and the "correct" consensus secondary structure are taken from the database. In order to compare the accuracies of the alignments in terms of the implicitly predicted common secondary structures, the common secondary structures for each test alignment by the alignment programs were predicted by the Pfold program [5].
Comparison of accuracies with those of other aligners
To compare the accuracies of the alignment methods we used a Linux machine with an AMD Opteron processor (2 GHz and 4 GB RAM).
We compared the performance of MXSCARNA with that of Murlet [21], ProbCons [32], MAFFT [38], ClustalW [7], StrAl [18], MARNA [17], RNASampler [19], RNAlara [20], FoldalignM [15], Locarna [16], PMmulti [12], and Stemloc [13] on the three datasets described earlier. Whereas ProbCons, MAFFT, and ClustalW align RNA sequences on the basis of sequence similarities only, StrAl, MARNA, RNASampler, RNAlara, FoldalignM, Locarna, PMmulti, Stemloc, and Murlet weigh both sequence similarities and secondary structures. The command line options for the programs in the experiments are shown in Table 1. The results for the original dataset are shown in Table 2. Because MARNA, Locarna, FoldalignM, PMmulti, and Stemloc impose high time and memory demands, those programs were executed only on families of which the average sequence lengths were less than or equal to 100 bases. The SPS of MXSCARNA was comparable to those of Murlet and ProbCons, which currently are the best performing aligners [21]. In addition, the MCC of MXSCARNA was one of the highest among aligners. In particular, the MCC of MXSCARNA is similar to that of Stemloc, which aligns only short sequences that have simple secondary structures.
The results from the BRAlibaseII benchmark multiple alignment dataset are shown in Table 3. Because of their prohibitive requirements for memory and time, Stemloc, FoldalignM, PMmulti, and MARNA were not applied to the SRP family data. Again, MXSCARNA was comparable to Murlet and ProbCons in terms of SPS and one of the best performers among multiple aligners according to the MCC. These trends continue in Table 4, which contains the results from Kiryu et al.'s benchmark dataset comprising 10 sequences for each alignment.
All results are summarized in Table 5.
Evaluation of new score function
In order to evaluate the performance of our new score function (4), we compared it in pairwise alignment with the previous score function of SCARNA, which is a linear combination of RIBOSUM score, stacking energy, loopdistance penalty, basepairing probability. Dowell's dataset [39], which consists of R100 dataset and percid dataset, are used for the evaluation. R100 is a dataset which consists of 100 pairwise alignments chosen randomly from tRNA and 5SrRNA families in Rfam 7.0 database [34] and percid is a balanced dataset of 100 pairwise alignments from the same families.
The SPS and MCC are shown in Table 6. It is observed that the new score function of MXSCARNA outperformed the previous score function of SCARNA.
Time and memory
The computational complexities of the proposed method for N sequences of length L were evaluated as follows. The construction of the guide tree using the alignments of all pairs of the sequences required O(N^{2}L^{2}) in time and O(L^{2} + N^{2}) in memory. The calculation of basepairing probability matrices for N sequences by McCaskill's algorithm [27] required O(NL^{3}) in time and O(NL^{2}) in memory. The probability consistency transformation (see (3) in Method) required O(N^{3}L^{3}) in time and O(N^{2}L^{2}) in memory. Pairwise alignment of stem component sequences required O(N^{2}L^{2}) in time and memory as is explained in Method. Therefore, the total computational complexities were O(N^{3}L^{3}) in time and O(N^{2}L^{2}) in memory. For the basepairing probabilities, the computational time for each sequence can be reduced to O(LW^{2}) by restricting the maximum distance of the base pairs to a fixed constant W [40]. The computation of probability consistency transformation for a pair of sequences can also be calculated in O(L^{2}) time by restricting the effective width of transformation to a fixed value. Those reductions reduce total time complexity to O(N^{3}L^{2}). We will address those improvements in future work.
Comparisons of alignment tools in regard to execution time for nucleotide sequences of various lengths are presented in Figures 4 and 5. Randomly generated sequences were allocated into groups of the same lengths and were used for alignment. Stemloc aligned sequences of not more than 100 bases; FoldalignM and Locarna were faster than Stemloc and aligned sequences of 500 bases or less. Because the lengths of the sequences were the same in each alignment task, the banded Dynamic Programming (DP) technique of these methods was effective. Although the Murlet program returned results for sequences as long as 4000 bases in the best case, it was much slower than MXSCARNA. MXSCARNA required only 17 seconds to align 5 sequences of 500 bases and returns alignments for sequences as long as 5000 bases, though the accuracies for sequences longer than 500 bases have not yet been evaluated. Similar comparisons for various numbers of the sequences are presented in Figure 6. The execution time of MXSCARNA is acceptable even for 50 sequences.
Sequence identities and alignment accuracies
Alignment methods based only on sequence similarities often fail to capture common secondary structures among their alignments, especially when the similarities between sequences are low. In contrast, current alignment methods that rely on information about secondary structures tend to produce inaccurate alignments for sequences of moderate to high similarity by putting too much weight on common secondary structures. The relationships between accuracy and sequence identity for three alignment tools MXSCARNA, ProbCons, and Stemloc are shown in Figures 7 and 8. ProbCons, one of the best of the aligners that ignore information regarding secondary structure, maintains a high SPS throughout low to high sequence similarities, but MCC markedly drops for low sequence identities. Stemloc, one of the best structural aligners (as seen in the previous section), achieved robust accuracies in MCC but failed to compete among the other aligners in regard to SPS for moderate sequence identities. MXSCARNA, which incorporates information on Maximum Expected Accuracy (MEA) alignment in its structural alignments, yielded robust accuracies in terms of both SPS and MCC throughout the tested range of sequence similarities.
Availability and requirements
Project name: ncRNA.org project;
Project home page: http://www.ncrna.org/;
Operating systems: Linux with gcc 3.0 and Cygwin with gcc 3.4;
Programming language: C++;
License: free software, except for inclusion to comertical software;
The source code of MXSCARNA and its web server, the dataset and its references are available at http://mxscarna.ncrna.org. On the web server W and τ correspond to "SCSLENGTH" and "BASEPROBTHRESHHOLD" respectively, and "BASEPAIRSCORECONST" is a parameter of McCaskillMEA [6] used for the secondary structure prediction, which controls the sensitivity and the specificity of the prediction (α in equation 4 in [6]).
Conclusion
We have developed MXSCARNA, a new structural multiple aligner of RNA sequences, which progressively applies the pairwise alignment algorithm used in SCARNA. The accuracies of MXSCARNA in terms of SPS and MCC were evaluated for three datasets: an original dataset, the BRAlibaseII benchmark multiple alignment dataset, and Kiryu et al.'s multiple alignment dataset. MXSCARNA's accuracies were at least comparable to those of current stateofart aligners. In addition, the accuracies of MXSCARNA were robust over a broad range of sequence similarities, whereas the other aligners tested showed reductions in SPS or MCC. The computational complexities of MXSCARNA were evaluated as O(N^{3}L^{3}) in time and O(N^{2}L^{2}) in memory for N sequences of length L. In the comparison of execution time for benchmark datasets, MXSCARNA was by far the fastest among the structural aligners and was fast enough for largescale analyses. MXSCARNA aligns even 5000base RNA sequences with acceptable computational costs though the accuracies of alignments for long sequences are not yet confirmed. The source code of MXSCARNA and its web server are available at the web site [41].
References
 1.
Mathews DH, Sabina J, Zuker M, Turner DH: Expanded sequence dependence of thermodynamic parameters improves prediction of RNA secondary structure. J Mol Biol 1999, 288(5):911–940. 10.1006/jmbi.1999.2700
 2.
Nussinov R, Pieczenik G, Griggs JR, Kleitman DJ: Algorithms for loop matchings. SIAM J App Math 1978, 35: 68–82. 10.1137/0135006
 3.
Zuker M, Stiegler P: Optimal computer folding of large RNA sequences using thermodynamics and auxiliary information. Nucl Acids Research 1981, 9: 133–148. 10.1093/nar/9.1.133
 4.
Hofacker I, Fekete M, Stadler P: Secondary structure prediction for aligned RNA sequences. J Mol Biol 2002, 319: 1059–1066. 10.1016/S00222836(02)00308X
 5.
Knudsen B, Hein J: Pfold: RNA secondary structure prediction using stochastic contextfree grammars. Nucl Acids Res 2003, 31: 3423–3428. 10.1093/nar/gkg614
 6.
Kiryu H, Kin T, Asai K: Robust prediction of consensus secondary structures using averaged base pairing probability matrices. Bioinformatics 2006, 23: 434–441. 10.1093/bioinformatics/btl636
 7.
Thompson J: CLUSTAL W: improving the sensitivity of progressive multiple sequence alignment through sequence weighting, positionspecific gap penalties and weight matrix choice. Nucleic Acids Res 1999, 27: 2682–2690. 10.1093/nar/27.13.2682
 8.
Morgenstern B: DIALIGN: finding local similarities by multiple sequence alignment. Bioinformatics 1998, 14: 290–294. 10.1093/bioinformatics/14.3.290
 9.
Notredame C, Higgins DG, Heringa J: TCoffee: A Novel Method for Fast and Accurate Multiple Sequence Alignment. Journal of Molecular Biology 2000, 302: 205–217. 10.1006/jmbi.2000.4042
 10.
Sankoff D: Simultaneous solution of the RNA folding, alignment, and protosequence problems. SIAM J App Math 1985, 45: 810–825. 10.1137/0145048
 11.
Havgaard JH, Lyngsø RB, Stormo GD, Gorodkin J: Pairwise local structural alignment of RNA sequences with sequence similarity less than 40%. Bioinformatics 2005, 21(9):1815–1824. 10.1093/bioinformatics/bti279
 12.
Hofacker I, Bernhart S, Stadler P: Alignment of RNA base pairing probability matrices. Bioinformatics 2004, 20: 2222–2227. 10.1093/bioinformatics/bth229
 13.
Holmes I: A probabilistic model for the evolution of RNA structure. BMC Bioinformatics 2004., 5(166):
 14.
Holmes I, Rubin GM: Pairwise RNA structure comparison with stochastic contextfree grammars. Pacific Symposium on Biocomputing 2002, 163–174.
 15.
Torarinsson E, Havgaard JH, Gorodkin J: Multiple structural alignment and clustering of RNA sequences. Bioinformatics 23: 926–932(7). 15 April 2007 10.1093/bioinformatics/btm049
 16.
Will S, Reiche K, Hofacker I, Stadler P, Backofen R: Inferring Noncoding RNA Families and Classes by Means of GenomeScale StructureBased Clustering. PLoS Computational Biology 2007, 3(4):e65+. 10.1371/journal.pcbi.0030065
 17.
Siebert S, Backofen R: MARNA: multiple alignment and consensus structure prediction of RNAs based on sequence strcture comparisons. Bioinformatics 2005, 21: 3352–3359. 10.1093/bioinformatics/bti550
 18.
Dalli D, Wilm A, Mains I, Steger G: STRAL:Progressive alignment of noncoding RNA using base pairing probability vectors in quadratic time. Bioinformatics 2006, 22(13):1593–1599. 10.1093/bioinformatics/btl142
 19.
Xu X, Ji Y, Stormo GD: RNASmpler: a new sampling based algorithm for common RNA secondary structure prediction and structure alignment. Bioinformaitcs 2007, 23: 1883–1891(15). 10.1093/bioinformatics/btm272
 20.
Bauer M, Klau GW, Reinert K: Accurate multiple sequencestructure alignment of RNA sequences using combinatorial optimization. BMC Bioinformatics 2007., 8:
 21.
Kiryu H, Tabei Y, Taishin K, Asai K: Murlet: a practical multiple alignment tool for structural RNA sequences. Bioinformatics 2007, 23: 1588–1598. 10.1093/bioinformatics/btm146
 22.
Seibel PN, Müller T, Dandekar T, Schultz J, Wolf M: 4SALE – A tool for synchronous RNA sequence and secondary structure alignment and editing. BMC Bioinformaitcs 2006, 7: 498. 10.1186/147121057498
 23.
Yao Z, Weinberg Z, Ruzzo W: CMfinder – a covariance model besed RNA motif finding algorithm. Bioinformaitcs 2006, 22: 445–452. 10.1093/bioinformatics/btk008
 24.
Hamada M, Tsuda K, Kudo T, Kin T, Asai K: Mining frequent stem patterns from unaligned RNA sequences. Bioinformaitcs 2006, 22: 2480–2487. 10.1093/bioinformatics/btl431
 25.
Tabei Y, Tsuda K, Taishin K, Asai K: SCARNA: fast and accurate structural alignment of RNA sequences by matching fixedlength stem fragments. Bioinformatics 2006, 22: 1723–1729. 10.1093/bioinformatics/btl177
 26.
Sokal RR, Michener CD: A statistical method for evaluating systematic relationships. University of Kansas Scientific Bulletin 1958, 28: 1409–1438.
 27.
McCaskill J: The equilibrium partition function and base pair binding probabilities for RNA secondary structure. Biopolymers 1990, 29: 1105–1119. 10.1002/bip.360290621
 28.
Klein R, Eddy S: RSEARCH: finding homologs of single structured RNA sequences. BMC Bioinformatics 2003., 4(44):
 29.
Miyazawa S: A reliable sequence alignment method based on probabilities of residue correspondences. Protein Engineering 1995, 8: 999–1009. 10.1093/protein/8.10.999
 30.
Holmes I, Durbin R: Dynamic programming alignment accuracy. J Comput Biol 1998, 5: 493–504.
 31.
Eddy R DurbinAKSR, Mitchison G: Biological Sequence Analysis. Chambridge, UK: Chambridge University Press; 1998.
 32.
Do CB, Mahabhashyam MS, Brudno M, Batzoglou S: ProbCons: Probabilistic consistencybased multiple sequence alignment. Genome Res 2005, 15(2):330–340. 10.1101/gr.2821705
 33.
Gardner P, Wilm A, Washietl S: A benchmark of multiple sequence alignment programs upon structural RNAs. Nucl Acids Res 2005, 33(8):2433–2439. 10.1093/nar/gki541
 34.
GriffithsJones S, Bateman A, Marshall M, Khanna A, Eddy S: Rfam: an RNA family database. Nucl Acids Res 2003, 31: 439–441. 10.1093/nar/gkg006
 35.
Rosenblad MA, Gorodkin J, Knudsen B, Zwieb C, Samuelsson T: SRPDB: Signal Recognition Particle Database. Nucleic Acids Res 2003, 31: 363–364. 10.1093/nar/gkg107
 36.
Matthews B: Comparison of the predicted and observed secondary structure of T4 phage lysozyme. Biochem Biophys Acta 1975, 405: 442–451.
 37.
Gardner PP, Giegerich R: A comprehensive comparison of comparative RNA structure prediction approaches. BMC Bioinformatics 2004., 5(140):
 38.
Katoh K, Misawa K, Kuma K, Miyata T: MAFFT:a novel method for rapid multiple sequence alignment based on fast Fourier transform. Nucleic Acids Res 2002, 30: 3059–3066. 10.1093/nar/gkf436
 39.
Dowell RD, Eddy SR: Efficient pairwise RNA structure prediction using probabilistic alignment constraints in Dynalign. BMC Bioinformatics 2007., 8:
 40.
Kiryu H, Kin T, Asai K: Rfold: An exact algorithm for computing local base pairing probabilities. Bioinformatics Advance Access 2007, in press. 10.1093/bioinformatics/btm591
 41.
MXSCARNA[http://mxscarna.ncrna.org/]
Acknowledgements
This work was supported in part by a GrantinAid for Scientific Research on Priority Areas "Comparative Genomics" from the Ministry of Education, Culture, Sports, Science and Technology of Japan and by the "Functional RNA Project" funded by the New Energy and Industrial Technology Development Organization (NEDO) of Japan. The authors thank the Japan Biological Informatics Consortium (JBIC) for its support through the "Functional RNA Project" and Michiaki Hamada, Kengo Sato, and colleagues in the Computational Biology Research Center (CBRC) for useful discussions.
Author information
Affiliations
Corresponding author
Additional information
Authors' contributions
YT and KA developed the algorithm, and together they wrote the manuscript with the help of TK. YT implemented the algorithm into the software (MXSCARNA) and executed all of the computational experiments. HK contributed to the design of the new score function and closely collaborated in the computational experiments. TK helped to design the computational experiments and to write the manuscript. With the help of YT, KA organized the development of the web server. All the authors have read and approved the final version of the manuscript.
Authors’ original submitted files for images
Below are the links to the authors’ original submitted files for images.
Rights and permissions
Open Access This article is published under license to BioMed Central Ltd. This is an Open Access article is distributed under the terms of the Creative Commons Attribution License ( https://creativecommons.org/licenses/by/2.0 ), which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.
About this article
Cite this article
Tabei, Y., Kiryu, H., Kin, T. et al. A fast structural multiple alignment method for long RNA sequences. BMC Bioinformatics 9, 33 (2008). https://doi.org/10.1186/14712105933
Received:
Accepted:
Published:
Keywords
 Pairwise Alignment
 Matthews Correlation Coefficient
 Reference Alignment
 Progressive Alignment
 Stem Fragment