Docsity

Efficient Constrained Multiple Sequence Alignment with Performance Guarantee | CAP 5515, Papers of Computer Science

Toggle sidebar
bg1
Efficient Constrained Multiple Sequence Alignment
with Performance Guarantee
Francis Y.L. Chin∗N.L. Ho T.W. Lam†Prudence W.H. Wong M.Y. Chan
Department of Computer Science and Information Systems,
The University of Hong Kong, Hong Kong.
{chin,nlho,twlam,whwong,mychan}@csis.hku.hk
Abstract
The Constrained Multiple Sequence Alignment problem
is to align a set of sequences subject to a given constrained
sequence, which arises from some knowledge of the struc-
ture of the sequences. This paper presents new algorithms
for this problem, which are more efficient in terms of time
and space (memory) than the previous algorithms [14], and
with a worst-case guarantee on the quality of the alignment.
Saving the space requirement by a quadratic factor is par-
ticularly significant as the previous O(n4)-space algorithm
has limited application due to its huge memory requirement.
Experiments on real data sets confirm that our new algo-
rithms show improvements in both alignment quality and
resource requirements.
1. Introduction
Multiple sequence alignment (MSA) is one of the prob-
lems in computational biology that have been studied ex-
tensively [2, 5, 8, 6, 10, 12, 13]. Roughly speaking, given
a set of k≥2sequences, the MSA problem is to align
similar subsequences in the same region. From the com-
putational point of view, the optimal alignment of two se-
quences can be found in O(n2)time, where nis the length
of the longer sequence. Yet, for three or more sequences, it
has been proved that finding the optimal alignment is NP-
hard, i.e., intractable1[2, 16]. In the literature, there are
a number of MSA algorithms that attempt to approximate
the optimal alignments, some of them can provide a worst-
∗This research was supported in part by Hong Kong RGC Grant
HKU7019/00E
†This research was supported in part by Hong Kong RGC Grant
10204076
1There are several possible ways to define the optimal alignment. In
this paper we adopt the widely-used Sum-of-Pair (SP) score, which asks
for an alignment that minimizes the sum of the alignment cost of all pairs
of sequences.
case approximation ratio [1, 4, 11], while some others work
well in practice [9, 15]. Notice that with all these algo-
rithms, users (biologists) can only control the alignment re-
sults by adjusting parameters like the scoring function and
gap penalty. In other words, users could not incorporate
their knowledge of the functionalities or structures of the
input sequences, which is indeed very useful for accurate
and biologically meaningful alignment. This naturally trig-
gers the studies of sequence alignment that allows users to
provide additional constraints.
Tang et al. [14] were the first to investigate the MSA
problem with an additional input of a constrained sequence,
which imposes a structure on the alignment by requiring
every character in the constrained sequence to appear in an
entire column in the alignment of the multiple sequences.
As an example, Tang et al. considered the alignment of
RNase sequences. Such sequences are all known to contain
three active-site residues His(H), Lyn(K), His(H)
that are essential for RNA degrading. Therefore, one would
expect that in an alignment of RNase sequences, each of
these three residues should be aligned in the same col-
umn, i.e., an alignment satisfying the constrained sequence
“HKH”.
Tang et al. [14] presented the first algorithm for find-
ing an optimal constrained sequence alignment for two se-
quences; both the time and space (memory) requirements
of the algorithm are O(αn4), where αis the length of con-
strained sequence. For aligning k≥3sequences, they gave
a heuristic algorithm (called progressive alignment algo-
rithm) with time and space requirements being O(αkn4)
and O(αn4), respectively. When applied to align multi-
ple RNase sequences, this algorithm produces satisfactory
alignments. Yet the application of the algorithm is limited
as the memory requirement is too big and it runs too long.
For example, for aligning sequences of length 250 with a
constraint of length 3, the memory requirement already ex-
ceeds 15 Gigabytes. Nowadays ordinary workstations are
equipped with at most 4 Gigabytes.
This paper attempts to improve the results of Tang et al.
Proceedings of the Computational Systems Bioinformatics (CSB’03)
0-7695-2000-6/03 $17.00 © 2003 IEEE
pf3
pf4
pf5
pf8
pf9
pfa

Partial preview of the text

Download Efficient Constrained Multiple Sequence Alignment with Performance Guarantee | CAP 5515 and more Papers Computer Science in PDF only on Docsity!

Efficient Constrained Multiple Sequence Alignment

with Performance Guarantee

Francis Y.L. Chin∗^ N.L. Ho T.W. Lam†^ Prudence W.H. Wong M.Y. Chan

Department of Computer Science and Information Systems,

The University of Hong Kong, Hong Kong.

{ chin,nlho,twlam,whwong,mychan } @csis.hku.hk

Abstract

The Constrained Multiple Sequence Alignment problem is to align a set of sequences subject to a given constrained sequence, which arises from some knowledge of the struc- ture of the sequences. This paper presents new algorithms for this problem, which are more efficient in terms of time and space (memory) than the previous algorithms [14], and with a worst-case guarantee on the quality of the alignment. Saving the space requirement by a quadratic factor is par- ticularly significant as the previous O(n^4 ) -space algorithm has limited application due to its huge memory requirement. Experiments on real data sets confirm that our new algo- rithms show improvements in both alignment quality and resource requirements.

1. Introduction

Multiple sequence alignment (MSA) is one of the prob- lems in computational biology that have been studied ex- tensively [2, 5, 8, 6, 10, 12, 13]. Roughly speaking, given a set of k ≥ 2 sequences, the MSA problem is to align similar subsequences in the same region. From the com- putational point of view, the optimal alignment of two se- quences can be found in O(n^2 ) time, where n is the length of the longer sequence. Yet, for three or more sequences, it has been proved that finding the optimal alignment is NP- hard, i.e., intractable 1 [2, 16]. In the literature, there are a number of MSA algorithms that attempt to approximate the optimal alignments, some of them can provide a worst- ∗This research was supported in part by Hong Kong RGC Grant HKU7019/00E †This research was supported in part by Hong Kong RGC Grant 10204076 (^1) There are several possible ways to define the optimal alignment. In this paper we adopt the widely-used Sum-of-Pair (SP) score, which asks for an alignment that minimizes the sum of the alignment cost of all pairs of sequences.

case approximation ratio [1, 4, 11], while some others work well in practice [9, 15]. Notice that with all these algo- rithms, users (biologists) can only control the alignment re- sults by adjusting parameters like the scoring function and gap penalty. In other words, users could not incorporate their knowledge of the functionalities or structures of the input sequences, which is indeed very useful for accurate and biologically meaningful alignment. This naturally trig- gers the studies of sequence alignment that allows users to provide additional constraints. Tang et al. [14] were the first to investigate the MSA problem with an additional input of a constrained sequence, which imposes a structure on the alignment by requiring every character in the constrained sequence to appear in an entire column in the alignment of the multiple sequences. As an example, Tang et al. considered the alignment of RNase sequences. Such sequences are all known to contain three active-site residues His(H), Lyn(K), His(H) that are essential for RNA degrading. Therefore, one would expect that in an alignment of RNase sequences, each of these three residues should be aligned in the same col- umn, i.e., an alignment satisfying the constrained sequence “HKH”. Tang et al. [14] presented the first algorithm for find- ing an optimal constrained sequence alignment for two se- quences; both the time and space (memory) requirements of the algorithm are O(αn^4 ), where α is the length of con- strained sequence. For aligning k ≥ 3 sequences, they gave a heuristic algorithm (called progressive alignment algo- rithm) with time and space requirements being O(αkn^4 ) and O(αn^4 ), respectively. When applied to align multi- ple RNase sequences, this algorithm produces satisfactory alignments. Yet the application of the algorithm is limited as the memory requirement is too big and it runs too long. For example, for aligning sequences of length 250 with a constraint of length 3, the memory requirement already ex- ceeds 15 Gigabytes. Nowadays ordinary workstations are equipped with at most 4 Gigabytes. This paper attempts to improve the results of Tang et al.

Proceedings of the Computational Systems Bioinformatics (CSB’03)

Time Space Approx. Ratio Tang et al. ’s algorithm O(αkn^4 ) O(αn^4 ) – [14] Improved Tang et al. ’s O(αk^2 n^2 ) O(αn^2 ) – algorithm (this paper)

Center-star O(αCk^2 n^2 ) O(αk^2 n^2 ) 2 − (^2) k (this paper)

Figure 1. Performance of constrained multi- ple sequence alignment approximation algo- rithms.

from a theoretical as well as a practical point of view. For pair-wise alignment, we give a new algorithm for finding the optimal constrained alignment that uses O(αn^2 ) time and O(αn^2 ) space. Based on this result, we can immedi- ately improve the time and space complexities of the Tang et al. ’s multiple sequence progressive alignment algorithm by a quadratic factor. Furthermore, we give an algorithm, called center-star, for constrained multiple sequence align- ment with worst-case performance guarantee; more pre- cisely, for aligning k sequences, the new algorithm can pro- duce an alignment that approximates the optimal alignment within a factor of (2 − (^2) k ). This algorithm adopts the frame- work of Gusfield’s (unconstrained) multiple sequence align- ment algorithm [4]. The time and space complexities of the new algorithm are respectively O(αCk^2 n^2 ) and O(αk^2 n^2 ), where C is the maximum number of occurrences of the constraint in individual sequences. The improved memory requirement allows us to handle sequences with thousands of characters on ordinary workstations. See Figure 1 for a summary of these results. We have implemented all the algorithms mentioned above and tested them with several real data sets. In all data sets, the center-star algorithm shows improvement in all as- pects. In particular, the quality of the alignment is 15% to 30% better, while the memory requirement is at most one- hundredths of Tang et al. ’s algorithm. Results are briefly summarized in Figure 2. More details will be given in Sec- tion 5. The rest of this paper is organized as follows. Section 2 defines the constrained sequence alignment, and Section 3 presents the new optimal constrained pair-wise sequence alignment algorithm. Section 4 presents algorithms for con- strained multiple sequence alignment. In particular, an ap- proximation algorithm is given with an approximation ra- tio (2 − (^2) k ). We report empirical results of our developed

No. sequences 7 6 6 5 Max length 125 185 186 327 Constraint (α) 3 3 4 3 Tang’s score 46319 71208 63315 *** Ctr-star score 40051 49874 45241 57325 Tang’s time (sec) 127 381 254 *** Ctr-star time (sec) 25 77 82 482 Tang’s space (MB) 425 1192 654 *** Ctr-star space (MB) 4.2 2.8 3.1 6.

*** – Memory exhausted

Figure 2. Alignment scores of CMSA algo- rithms

CMSA tools in Section 5. Finally, we conclude this paper by giving some further research directions in CMSA.

2. Preliminaries

Let Σ be the set of characters (residues), S = {S 1 , S 2 , ..., Sk} be a set of k sequences, with maximum length n, over Σ. Let Si[x..y] denote the sub-string of Si starting at the x-th character to the y-th character of Si, where 1 ≤ x < y ≤ n. In particular, let Si[x] denote the x-th character in the sequence Si. We define the pair-wise sequence alignment of two se- quences S 1 and S 2 as two equal-length sequences S′ 1 and S 2 ′ such that |S 1 ′| = |S′ 2 | = n′, and removing all space char- acters “−” from S 1 ′ and S 2 ′ gives S 1 and S 2 respectively. For a given distance function δ(x, y) which measures the mutation distance between two characters (residues), where x, y ∈ Σ ∪ {−}, the pair-wise score of two length-n′^ se- quences S 1 ′ and S 2 ′ is defined as

1 ≤x≤n′^ δ(S 1 ′[x], S 2 ′[x]). In the multiple sequence alignment (MSA) problem, we are given k sequences S = {S 1 , S 2 ,... , Sk}, an MSA is an alignment matrix A , with k rows and n′(≥ n) columns, such that removing space characters from the i-th row of A gives Si for 1 ≤ i ≤ k. The sum-of-pair (SP) score of an MSA is defined as the sum of the pair-wise scores of all pairs of the sequences,

1 ≤p<q≤k

1 ≤x≤n′^ δ(Ap,x, Aq,x)^ where each row of the alignment matrix is treated as a sequence, Ap is the p-th row of the alignment matrix A and Ap,x is the character at the p-th row and the x-th column of A. It is shown in [2, 16] that finding an alignment matrix with the minimum sum-of-pair alignment score is NP-complete. In the constrained multiple sequence alignment prob- lem (CMSA) , we are given, in addition to the inputs of the MSA problem, a constrained sequence P = (P [1], P [2],... , P [α]), where P is a common subsequence of Si ∈ {S 1 , S 2 ,... , Sk}. The solution of a CMSA prob-

Proceedings of the Computational Systems Bioinformatics (CSB’03)

Algorithm 1 The dynamic programming algorithm for the optimal CPSA score.

  1. Initialize D(0, 0 , 0) = 0 , D(i, 0 , γ) = ∞, and D(0, j, γ) = ∞ for 0 ≤ i ≤ n 1 , 0 ≤ j ≤ n 2 , and 1 ≤ γ ≤ α.
  2. For γ = 0 to α do

For i = 0 to n 1 do For j = 0 to n 2 do If D(i, j, γ) is not initialized, compute D(i, j, γ) according to Theorem 3.1 in terms of D(i− 1 , j− 1 , γ − 1), D(i − 1 , j − 1 , γ), D(i − 1 , j, γ) and D(i, j − 1 , γ).

Based on Theorem 3.1, we can compute the sum-of-pair score of the optimal CPSA using dynamic programming (see Algorithm 1). After filling in the three dimensional table D(i, j, γ), we can obtain the CPSA by backtracking through the compu- tation path from D(n 1 , n 2 , α) to D(0, 0 , 0). Let S′ 1 and S 2 ′ be the aligned sequence for S 1 and S 2 , respectively. Ini- tially, set S′ 1 and S′ 2 to two empty strings, and start back- tracking from D(n 1 , n 2 , α). If D(i, j, γ) is computed from D(i − 1 , j − 1 , γ) or D(i − 1 , j − 1 , γ − 1), prepend S 1 [i] and S 2 [j] to S 1 ′ and S′ 2 , respectively. If D(i, j, γ) is com- puted from D(i − 1 , j, γ), prepend S 1 [i] and a space to S′ 1 and S 2 ′, respectively. If D(i, j, γ) is computed from D(i, j − 1 , γ), prepend a space and S 2 [j] to S′ 1 and S′ 2 , respectively. Repeat backtracking until reaching D(0, 0 , 0), and ( S

′ 1 S′ 2 )^ is the optimal constrained sequence alignment of {S 1 , S 2 } with P.

Theorem 3.2 The optimal constrained pair-wise alignment can be computed in both O(αn 1 n 2 ) time and space, where |S 1 | = n 1 , |S 2 | = n 2 and |P | = α.

Proof. The 3-dimensional table D is of size [(n 1 +1)×(n 2 +

  1. × (α + 1)]. The computation of each entry D(i, j, γ) needs only the values of D(i − 1 , j − 1 , γ − 1), D(i − 1 , j − 1 , γ), D(i − 1 , j, γ) and D(i, j − 1 , γ), thus, each D(i, j, γ) can be computed in constant time. Therefore, the optimal CPSA score of two sequences of lengths n 1 and n 2 and constrained sequence P of length α can be computed in O(αn 1 n 2 ) time. On the other hand, in each step of the backtracking from D(n 1 , n 2 , α) to D(0, 0 , 0), at least one of the indexes i, j or γ decreases by one. Thus, there are at most α + n 1 + n 2 steps. Notice that each step takes constant time. Therefore, the backtracking takes O(α + n 1 + n 2 ) time. Thus, the whole algorithm takes O(αn 1 n 2 ) time.

Table D has O(αn 1 n 2 ) entries; each entry D(i, j, γ) re- quires constant amount of space (for storing the alignment score and the direction of the computation path). Therefore, the algorithm requires O(αn 1 n 2 ) space. Thus, the theorem follows. 

4. Constrained Multiple Sequence Alignment

In this section, we study the constrained multiple se- quence alignment problem. In Section 4.1, we reduce the time and space complexities of the progressive CMSA heuristic algorithm presented in [14] from O(αkn^4 ) to O(αk^2 n^2 ). In Section 4.2, we show an algorithm that computes the optimal CMSA in O(αnk) time based on the sum-of-pair score. In Section 4.3, we apply the center-star approximation algorithm [4] to the CMSA problem, and show that the constrained version of the center-star algo- rithm achieves an approximation ratio (2 − (^2) k ) in time com- plexity O(αCk^2 n^2 ), where C is the maximum number of occurrences of constraint P in S. Throughout this section, we assume that the distance function δ(x, y) follows the tri- angular inequality , i.e. δ(x, y) ≤ δ(x, z) + δ(z, y), for any x, y, z ∈ Σ

{−}, and δ(−, −) = 0.

4.1. Improved Progressive CMSA Algorithm

Tang et al. [14] presented an O(αkn^4 ) time and O(αn^4 ) space progressive heuristic algorithm for the CMSA prob- lem for a set of k sequences of length at most n and a con- strained sequence P of length α. In Tang et al. ’s algorithm, a k × k distance matrix of the k sequences is constructed, where the (i, j) entry represents the pair-wise sequence alignment score of Si and Sj (note that this alignment score does not consider the constrained sequence P ). A min- imum spanning tree (MST) is then constructed using the Kruskal algorithm [3] based on the distance matrix of these sequences. Sequences are then progressively aligned using the CPSA algorithm in the order of the construction of MST. This algorithm performs exactly (k − 1) constrained pair- wise sequence alignments. By using the constrained pair- wise alignment algorithm described in Section 3.2, the time and space complexities can be improved from O(αkn^4 ) and O(αn^4 ) to O(αk^2 n^2 ) and O(αn^2 ) respectively.

4.2. An Algorithm for the Optimal CMSA

In this section, we extend the optimal CPSA algorithm described in Section 3.2 to k sequences. This involves the construction of a (k + 1)-dimensional matrix D, which takes O(αnk) time and space. More precisely, let the multi-dimensional array D(i 1 , i 2 ,... , ik; γ) be the optimal

Proceedings of the Computational Systems Bioinformatics (CSB’03)

CMSA score matrix for {S 1 [1..i 1 ], S 2 [1..i 2 ],... , Sk[1..ik]} with P [1..γ] aligned in γ columns. Then the optimal align- ment score for {S 1... Sk} with respect to the constrained sequence P is given by D(n 1 , n 2 ,... , nk; α), where ni = |Si| for 1 ≤ i ≤ k. D(i 1 , i 2 ,... , ik, γ) can be computed by the following recurrence: i) D({ 0 }k; 0) = 0 ii) D(i 1 , i 2 ,... , ik; γ) =

min

D(i 1 − 1 , i 2 − 1 ,... , ik − 1; γ − 1)

  • δ(S 1 [i 1 ], S 2 [i 2 ],... , Sk[ik]) if S 1 [i 1 ] = S 2 [i 2 ] =... = Sk[ik] = P [γ],

min ∈{ 0 , 1 }k

(D(i 1 −  1 , i 2 −  2 ,... , ik − k; γ)

  • δ( 1 S 1 [i 1 ],  2 S 2 [i 2 ],... , kSk[ik])), where j = 0 or 1 , j Sj [ij ] with j = 0 represents a space character, and δ(x 1 ,... , xk) =

1 ≤i<j≤k δ(xi, xj^ ). Based on the above recurrence, we have a dynamic pro- gramming that computes the optimal CMSA for multiple sequences, which is a generalization of the dynamic pro- gramming for the CPSA problem. Practically, optimal CMSA can be computed for less than 6 short sequences of length at most 200 [7]. In the following section, we present another approximation algorithm for the CMSA problem.

4.3. The Center-star Alignment Approximation for

CMSA

For the unconstrained multiple sequence alignment prob- lem, Gusfield [4] presented the center-star algorithm which is an approximation algorithm with an approximation ratio (2 − (^) k^2 ). Based on the center-star approximation algorithm, we derive an approximation algorithm for CMSA that yields an approximation ratio (2 − (^2) k ). For a set of k sequences S = {S 1... Sk}, the center sequence Sc ∈ S is the sequence such that the sum of con- strained pair-wise alignment scores to the other (k − 1) se- quences is minimized, with the additional constraint that P must appear in the same list of positions of Sc in every con- strained pair-wise alignment of Sc with Sj , where j = c. The star-sum score of a CMSA with respect to a center sequence Sc is the sum of pair-wise score of Sc with all Sj ∈ S − {Sc}. The constrained center-star approximation algorithm is to find the CMSA and its center sequence Sc such that the star-sum score with respect to Sc is minimized.

The constrained version of the center-star approxima- tion algorithm

i) For each Si in S, treat Si as the center sequence Sc and for each list of positions (c 1 , c 2 ,... , cα) that Sc is aligned with P , i.e. P [γ] = Sc[cγ ] ∀ 1 ≤ γ ≤ α, align all other Sj with Sc at the positions specified by (c 1 , c 2 ,... , cα).

ii) Find the Sc and (c 1 , c 2 ,... , cα) with the minimum star-sum score.

iii) Merge the (k − 1) constrained pair-wise sequence alignments between Sc and other Sj under the posi- tions (c 1 , c 2 ,... , cα) into a constrained alignment ma- trix.

We elaborate on steps (i) to (iii) of the above algorithm in the discussion below.

Aligning a sequence and the center sequence with a list of constrained positions Without loss of generality, as- sume that the center sequence is S 1. Given c 1 , c 2 ,... , cα, we perform the CPSA algorithm of S 1 to S 2... Sk un- der (c 1 , c 2 ,... , cα), using a slightly modified recurrence in Theorem 3.1, treating Sc as S 1 and Si as S 2 ( 2 ≤ i ≤ k). D(i, j, γ) =

min

D(i − 1 , j − 1 , γ − 1) + δ(S 1 [i], S 2 [j]) if cγ = i, S 1 [i] = S 2 [j] = P [γ],

D(i − 1 , j − 1 , γ) + δ(S 1 [i], S 2 [j]) if i, j > 0 ,

D(i − 1 , j, γ) + δ(S 1 [i], −) if i > 0 ,

D(i, j − 1 , γ) + δ(−, S 2 [j]) if j > 0.

Suppose n 1 = |S 1 | and n 2 = |S 2 |. Notice that using the above recurrence, for any 1 ≤ γ ≤ α, the computation path from D(n 1 , n 2 , α) to D(0, 0 , 0) must pass through some points D(cγ , j, γ) with 1 ≤ j ≤ n 2. This implies that the alignment occurs in S 1 at the positions (c 1 , c 2 ,... , cα).

Optimal center sequence & the constrained positions Consider each sequence Si and a list of positions of oc- currence (c 1 , c 2 ,... , cα) of P in Si where 1 ≤ i ≤ k. The combination (Si; c 1 , c 2 ,... , cα) that gives the mini- mum sum of constrained pair-wise alignment scores with other sequences under the positions (c 1 , c 2 ,... , cα) is se- lected as the center sequence Sc and the list of positions to be aligned with P. The time for locating (Sc; c 1 , c 2 ,... , cα) is then O(αkCn^2 ) for k sequences, where C is the maxi- mum number of sets of positions that P appears in each sequence.

Merging the (k − 1) constrained pair-wise alignments Based on the optimal center sequence, we construct a CMSA, denoted by A. Suppose the center sequence of S is S 1 under a list of positions (c 1 , c 2 ,... , cα). There are (k − 1) constrained pair-wise alignments, one for S 1 align- ing with Sj , for 2 ≤ j ≤ k. Suppose |S 1 | = n, and

Proceedings of the Computational Systems Bioinformatics (CSB’03)

Tang’s Alg. Center-star Alg. Score Score Data set 0 38668 38668 Data set 1 69368 47216 Data set 2 63315 31776 Data set 3 62966 59021

Figure 4. Alignment scores of the two algo- rithms after the refinement by ClustalW

sets 0 to 3 using the constrained center-star algorithm are shown in Figures 6 to 9. Due to the page limit, the align- ment matrices are divided into blocks of 40 characters, the first 40 characters of each sequence are listed first before the subsequent blocks. Columns that match the constrained characters are marked by an asterisk (*). Comparing the alignment matrices produced by center- star approximation algorithm and Tang et la. ’s progressive CMSA algorithm [14] in data sets 1, 2 and 3, we note that the constrained characters P [1]..P [α] are aligned at dif- ferent columns of the alignment matrices. Computation- ally, the center-star approximation algorithm for CMSA produces sequence alignments with better SP alignment scores (see Figure 3).

5.2 Number of Constraint Occurrences

We refer to [14] for an application used for CMSA. In their experiments, 7 RNase sequences were aligned so that the three active-site residues, HKH, were in the same columns in the alignment matrix. This motivates the CMSA problem as all RNase sequences contain the active-site residues HKH that are essential for the main functionality of the RNase, degrading to RNA. In our experiment, we show that the number of occurrences (C) of the constraint HKH in each sequence is reasonably small. Since the value of C is relatively small, the running time of our center-star algorithm is more efficient than the O(αkn^4 ) algorithm de- scribed in [14]. There are total 2869 sequences from the NCBI. In these 2869 RNase sequences, a total of 2266 se- quences, or 78%, contained less than 500 residues. For each RNase, we measured the mean, mode and average number of occurrences of the constraint HKH and the result is re- ported in Figure 5. CMSA is usually done for a set of sequences of approx- imately the same length. As shown in the Figure 5, for CMSA of sequences with length below 500, C = 105 on average and C ≤ 241 for 90% of these sequences. Even among the longer RNase sequences, the average number of occurrences is only about 464. Thus, running time of our center-star algorithm has time complexity O(500αk^2 n^2 ) on average which is much shorter compared to the running

No. samples 1954 2351 Percentage 83.11% 100.0 % Max sequence length 500 3989 Median Occurrences 42 56 Average Occurrences 105 464 80 Percentile 124 413 90 Percentile 241 1248

Figure 5. Occurrences of constraint “ HKH ” in RNase sequences

time of O(αkn^4 ) in [14].

6. Conclusion

Using traditional MSA tools, biologists have limited control over the output of the sequence alignment. They can only choose high level alignment parameters such as gap penalty, scoring function etc. As such, they are unable to incorporate their knowledge about the sequences, such as known functionalities and structures of the input sequences for use by the sequence alignment tool. This information is essential for accurate and biologically meaningful sequence alignment. Constrained sequence alignment provides users with the ability to differentiate important residues that need to be aligned together over other residues. This problem was first studied by [14]. However, many existing tech- niques developed for MSA in the literature do not work for the CMSA problem due to the time and space complexities of O(αn^4 ). In this paper, we reduce the time and space complexities of solving the optimal pair-wise constrained alignment from O(αn^4 ) to O(αn^2 ). With this improve- ment, existing techniques for MSA can now be modified to solve the CMSA problem. We have demonstrated how the center star sequence approximation algorithm can be ap- plied to solve the CMSA problem. With the reduction in time and space complexities, it is hoped that the improved quality of sequence alignment can help biologists.

References

[1] V. Bafna, E. L. Lawler, and P. A. Pevzner. Approximation algorithms for multiple sequence alignment. In Theoretical Computer Science , volume 182, issues 1-2, pages 233–244. ACM Press, Aug 1997. [2] P. Bonizzoni and G. D. Vedova. The complexity of multiple sequence alignment with SP -score that is a metric. Theoret- ical Computer Science , 259(1–2):63–79, 2001. [3] T. H. Cormen, C. E. Leiserson, R. L. Rivest, and C. Stein. Chapter 23: Minimum Spanning Trees, Introduction to Al- gorithms, Second Edition. The MIT Press, 2001.

Proceedings of the Computational Systems Bioinformatics (CSB’03)

Tang’s Alg. Improved Tang’s Alg. Center-star Alg. Time Space Score Time Space Score Time Space score Data set 0 127 sec 425 MB 46319 < 1 sec 2.0 MB 46319 25 sec 4.2 MB 40051 Data set 1 381 sec 1192 MB 71208 < 1 sec 2.6 MB 71208 77 sec 2.8 MB 49875 Data set 2 254 sec 654 MB 63315 < 1 sec 2.7 MB 63315 82 sec 3.1 MB 45241 Data set 3 — memory exhausted — < 2 sec 6.2MB 60849 482sec 6.2 MB 57325

Figure 3. Alignment scores of CMSA algorithms

[4] D. Gusfield. Efficient methods for multiple sequence align- ment with guaranteed error bounds. In Bull. Math. Biol., 30 , volume 30, pages 141–154, 1993. [5] D. Gusfield, editor. Algorithms on Strings, Trees and Se- quences. Cambridge University Press, 1997. [6] T. Jiang, M. Zhang, and Y. Xu, editors. Chapter 4: Algorith- mic Methods for Multiple Sequence Alignment, Current Top- ics in Computational Molecular Biology. The MIT Press,

[7] D. J. Lipman, S. F, Altschul, and J. D. Kececioglu. A tool for multiple sequence alignment. In Proceedings of the Na- tional Academy of Sciences of the United States of America , volume 86-12, pages 4412–4415, Jun 1989. [8] H. J. Nicholas, A. Ropelewski, and D. D. II. Strategies for multiple sequence alignment. BioTechniques , 32:572–591, Mar 2002. [9] C. Notredame, D. Higgins, and J. Heringa. T-coffee: A novel method for multiple sequence alignments. In Journal of Molecular Biology , volume 302, page pp20, 2000. [10] R. B. Peter Clote. Computational Molecular Biology: An Introduction. John Wiley and Sons, Ltd, Aug 2000. [11] P. A. Pevzner. Multiple alignment, communication cost, and graph matching. In SIAM J. Applied Mathematics , vol- ume 52, pages 1763–1779, 1992. [12] A. Phillips, D. Janies, and W. Wheeler. Multiple sequence alignment in phylogenetic analysis. Molecular Phylogenet- ics and Evolution , 16-3:317–330, Sep 2000. [13] K. Reinert, H.-P. Lenhof, P. Mutzel, K. Mehlhorn, and J. D. Kececioglu. A branch-and-cut algorithm for multiple se- quence alignment. In Proceedings of the1st Annual Inter- national Conference on Computational Molecular Biology (RECOMB) , pages 241–250, Santa Fe, NM, 1997. ACM Press. [14] C. Y. Tang, C. L. Lu, M. D.-T. Chang, Y.-T. Tsai, Y.-J. Sun, K.-M. Chao, J.-M. Chang, Y.-H. Chiou, C.-M. Wu, H.- T. Chang, and W.-I. Chou. Constrained multiple sequence alignment tool development and its application to rnase fam- ily alignment. In Proceedings of the First IEEE Computer Society Bioinformatics Conference (CSB 2002) , pages 127– 137, 2002. [15] J. Thompson, D. Higgins, and T. Gibson. Clustalw: improv- ing the sensitivity of progressive multiple sequence align- ment through sequence weighting, positions-specific gap penalties and weight matrix choice. In Nucleic Acids Re- search , volume 22, pages 4673–4680, 1994. [16] L. Wang and T. Jiang. On the complexity of multiple se- quence alignment. In Journel of Computational Biology , volume 1, pages 337–348, 1994.

Data set 0 Number of sequences : 7 Max sequence length : 125 Constrained sequence : HKH Sequence ID Seq1: H-RNase Seq2: H-RNase Seq3: BP-RNaseA Seq4: BS-RNase Seq5: H-RNaseA Seq6: H-RNase Seq7: RC-RNase

-K--E-TA-A-AK-FERQHMDSSTSAASSSNYCNQMMKSR -RPPQFTR-A-QW-FAIQHI-S-LNPPR----CTIAMRAI MK--P-PQFTWAQWFETQHINM-TSQQCN-N-AMQVI-N- -K--E-SA-A-AK-FERQHIDSSTSSVSSSNYCNEMMTSR -K--E-SR-A-KK-FQRQHMDSDSSPSSSSTYCNQMMRRR -M--Q-DG-MYQR-FLRQHVHPEETGGSDR-YCNLMMQRR ----Q-NW-A-T--FQQKHI-INTPIINC-N--TIMDNNI

NLTKDRCKPVNTFVHESLADVQAVCSQKNVAC-KN-GQT- NNYRWRCKNQNTFLRTTFANVVNVCGNQSIRC-PH-NRTL NFQR-RCKNQNTFLRTTFANVVNVCGNPNITCPSNRSRN- NLTQDRCKPVNTFVHESLADVQAVCSQKNVAC-KN-GQT- NMTQGRCKPVNTFVHEPLVDVQNVCFQEKVTC-KN-GQG- KMTLYHCKRFNTFIHEDIWNIRSICSTTNIQC-KN-GKM- YIVGGQCKRVNTFIISSATTVKAICT--GVIN-MN-VLS-

N-CYQSYSTMSITDC--R-ETGSSKY-PNCAYKTTQANKH NNCHRSRFRVPLLHCDLI-NPGAQNI-SNCRYADRPGRRF N-CHHSGVQVPLIHC--NLTTPSPQNISNCRYAQTPANMF N-CYQSYSAMSITDC--R-ETGNSKY-PNCAYQTTQAEKH N-CYKSNSSMHITDC--R-LTNGSRY-PNCAYRTSPKERH N-CHEG--VVKVTDC--R-DTGSSRA-PNCRYRAIASTRR T--TR-FQ-LN-T-C--T-RTSITPR-P-CPYSSRTETNY

IIVACEG-NP------Y-V-PVHFDA-S--V YVVACDNRDPRDSPR-YPVVPVHLDT-T--I YIVACDNRDPRRDPPQYPVVPVHLD--R--I IIVACEG-NP------Y-V-PVHYDA-S--V IIVACEG-SP------Y-V-PVHFDA-S--V VVIACEG-NP------Q-V-PVHFDG----- ICVKCE--NQ------Y---PVHFAGIGRCP

Figure 6. Alignment of 7 sequences in data set 0, with P =HKH

Proceedings of the Computational Systems Bioinformatics (CSB’03)

Data set 3 Number of sequences : 6 Max sequence length : 185 Constrained sequence : HKH Sequence ID Seq1: gi|10068295|gb|AAE40716.1| Seq2: gi|17549935|ref|NP_510780.1| Seq3: gi|28509297|ref|XP_282983.1| Seq4: gi|28499937|ref|XP_204162.2| Seq5: gi|4902995|dbj|BAA77929.1|

Seq1: -MP--INIISDSVYVVNAVLALETAGNFKQSSPVSEILMK Seq2: MLRWLVALLSHSCFVSKGGGMFYAVRKGRQTGVYRTWAE- Seq3: -MR--VNGRNLTNLRFADDIVLIANHPNTASKMLQELVQK Seq4: -MP--INIISDSVYVVNAVLALETAGNFKQSSPVSEILMK Seq5: -M---V-LIS----LLNPETQ-NRSQNMSQNNPLRALLDK

Seq1: IQNCILMREHPFYIQHIRAHTSLPGPMVKGNAIADSATRD Seq2: CQQ-QVNRFPSASFKKFAT--EKEAWAFVGAGPPDGQQSA Seq3: CSE-VGLEINTGKTKVLRNRFADPSKVYFGSPSPTTQLDD Seq4: IQNCILMHEHPFYIQHIRAHTSLPGPMVKGNAIADSATRD Seq5: -QD-ILL------LDGAMA-TELEA---RGCNLAD-SLWS

Seq1: M---VFL---SQSSIESAKKFH-QLYYVPASTL--RQ-KF Seq2: P---AET--HGASAVAQENASH-RE-EPETDVLCCNACKR Seq3: VDEYIYLGRQINAQNNLMPEIH-R--RRRAA----WA-AF Seq4: M---VFL---SQSSIESAKNFH-QLYHVPASTL--RQ-KF Seq5: A---KVL---VENP-ELIREVHLDYYRAGAQCA--ITASY

Seq1: KLTRK--EARDIVLQCG-----KCVE--------FVNA-P Seq2: RYEQS--TNEEHTVRRA-----KHDE--------EQST-P Seq3: NGIKN--TTDSITDK-------K----------------I Seq4: KLTRK--EARNIVLQCG-----KCVE--------FVNA-P Seq5: QATPAGFAARGLDEAQSKALIGKSVELARKAREAYLAENP

Seq1: SVG-VNPRG-LRPLD-VWQMD--GMHIP-SFG-KLQ-YV- Seq2: VVS-EAKFSYMGEFAVVYTDGCCSGNGRNRARAGIGVYWG Seq3: RAN-LFDSI-VLPAL-TYGSE--AWTFTKALSERVR-IT- Seq4: SVG-VNPRG-LRPLD-VWQMD--VTHIP-SFG-KLQ-YV- Seq5: QAGTLLVAGSVRPYG-AYLTD--GSEYRGDYHCTVEAFQA

Seq1: --H-----------------------VSIDTSSGVLHASP Seq2: PGH------------------------------------P Seq3: --H-ASLERRLVG--ITLTQQRERDLHREDIRTMSLVRDP Seq4: --H-----------------------VSIDTSSGVLHASP Seq5: F-HRPRVEALLVAGADLLACETLPNFSEIEALAELLTAYP

Seq1: LTGEKAVH-VIS-HCLE-----AWAA----WGKPLVLKTD Seq2: LN-------ISE-R-LP-----GRQT-----N-------- Seq3: LN-----F-VKK-RKLGWAGHVARRK----DGRWTTLMTE Seq4: LTGEKAVH-VIS-HCLE-----AWAA----WGKPLVLKTD Seq5: RARAWFSFTLRDSEHLS-DGTPLRDVVALLAGYPQVVALG

Seq1: NGPAYTSSKFSQFCKQMQVKHITGLPYNPQG---QGIIER Seq2: ---------------------------------------- Seq3: WRPYGWKRPVGRPPMRWTDSLRKEITTRDAD---GEVITP Seq4: NGPAYTSSKFSQFCKQM----------------------- Seq5: INCIALENTTAALQHLHGLTVLPLVVYPNSGEHYDAVSKT

Seq1: AHHT------LKQYL-QKQKGGIEAMTPKMALSLTIFTLN Seq2: ---------------------------------------- Seq3: WSTI------AKDRK-EWLAVIRRNTTNS----------- Seq4: ---------------------------------------- Seq5: WHHHGEHCAQLADYLPQWQAAGARLIGGCCRTTPADIAAL

Seq1: F--- Seq2: ---- Seq3: ---- Seq4: ---- Seq5: KARS

Figure 9. Alignment of 5 sequences in data set 3, with P =HKH

Proceedings of the Computational Systems Bioinformatics (CSB’03)