# An Improved Scoring Matrix for Multiple Sequence Alignment

Authors: Jian-Jun Shu; Kian Yan Yong; Weng Kong Chan
Journal: Mathematical Problems in Engineering
 (2012)

---

## Abstract

The way for performing multiple sequence alignment is based on the criterion of the maximum-scored information content computed from a weight matrix, but it is possible to have two or more alignments to have the same highest score leading to ambiguities in selecting the best alignment. This paper addresses this issue by introducing the concept of joint weight matrix to eliminate the randomness in selecting the best multiple sequence alignment. Alignments with equal scores are iteratively rescored with the joint weight matrix of increasing level (nucleotide pairs, triplets, and so on) until one single best alignment is eventually found. This method for resolving ambiguity in multiple sequence alignment can be easily implemented by use of the improved scoring matrix.


---

## Body

## 1. Introduction

In the search for DNA regulatory elements such as binding sites, promoter, donor sites, TATA box, and genes, the multiple sequences containing these elements have to be aligned against each other. These elements are highly but not absolutely conserved and a weight matrix is used to represent and score the multiple sequences [1]. However, the current motif discovery algorithms based on the weight matrix technique for scoring multiple sequence alignment in terms of information content are not without their limitations [2]. From the analysis of these algorithms, the highest performance coefficient on the binding site level of search is only 30.2% using Motif Sampler [3], which is an algorithm modified from the widely adopted Gibbs sampling method [4]. This may be a result of randomness in selecting the best alignment from cases whereby there are multiple peaks. Hence, there are rooms for improvement, which is evident from many different approaches that have been developed [5–9].In this paper, a method of removing the randomness in selection is proposed. Randomness in selection occurs when there is more than one choice of alignments with the highest information content [10]. If one peak is randomly selected, the accuracy of multiple sequence alignment is compromised. This may be the reason that methods based on applied information theory cannot achieve much higher sensitivity, specificity, and performance. For example, by randomly selecting two peaks of similar information content, there is a 50% chance of selecting the wrong peak.In order to overcome this problem, a simple method is proposed to eliminate the randomness of peak selection and to provide the best alignment, through the use of joint weight matrix (JWM) in this paper. Its flexibility means that a higher-level JWM can be used to work with cases with multiple peaks. The higher the level of JWM used, the lesser will the number of peaks be, until eventually a single peak is obtained. In this paper, JWM has been shown to reduce successfully the number of peaks in multiple sequence alignment.


## 2. Systems and Methods

The concept of JWM is presented here to demonstrate how two or more ambiguous selections can be reduced. Two sequences are used in this example. The longer one represents the DNA sequence and the shorter one represents a motif sequence, which is aligned to the former. The motif is assumed to be a perfect weight matrix with 100% base weightage at each position. The score is then either 1 for match or 0 for mismatch at each position for simplicity of demonstration.Since the sequence is 7 bp (base pair) long and the motif is 4 bp, the total number of possible shift positions without introducing gaps is7-4+1=4 in Figure 1. Table 1 shows the sequence alignment.Table 1
Tabulated score for match between DNA and motif based on base by base.
Position1234567DNAATTGTTCMotifTTAGScore2211Figure 1
Scoring a DNA sequence with a motif.The score for the four possible alignments presents an ambiguous choice between positions 1 and 2, which are possible alignments with the highest score of 2. Since there is more than one peak or alignment, the second-level JWM is used to score the alignment. Table2 shows the result using the second-level comparison.Table 2
Tabulated score of match between DNA and motif based on two bases.
Position1234567DNAATTGTTCMotifTTAGScore0100The result clearly shows that between positions 1 and 2, the better match for the motif with the DNA is the position 2 with the matching score of 1 as compared with the position 1 with 0.


## 3. Algorithm

Here it is shown how JWM can be integrated with sequence alignment tool to remove the randomness of selection during the alignment process. The following are the additional steps added using JWM.Step 1.
Determine a weight matrix(3.1)w(b,i)=n(b,i)∑b∈{A,T,G,C}n(b,i),
where n(b,i) is the number of each base b∈{A,T,G,C} at each position i.Step 2.
Calculate the second-level JWM(3.2)w2(b1b2,i)=w(b1,i)w(b2,i+1).
For the second-level JWM, the number of possible combinations of the four bases is 42=16. Hence, JWM is a matrix size of 16 by window length.Step 3.
From the weight matrix, the uncertainty of each combination of bases is(3.3)Hs(i)=-∑j=1m∑bj∈{A,T,G,C}wm(b1b2⋯bm,i)log2wm(b1b2⋯bm,i).
For the second-level JWM, m is the value of 2.Step 4.
The information content for each base is then(3.4)R(i)=2m-Hs(i)-e[n(i)],
where e[n(i)] is a small sample correction for Hs(i) [11].Step 5.
The score for one shifting position is then(3.5)Rshift(sp)=∑iR(i).
The shift position (sp) ranges from negative to positive shifting parameter.Step 6.
Shift JWM as predetermined to get the alignment score plot of information content versus shifting position. From the alignment score plot, the highest peak is chosen among the ambiguous choice of the previous set of peaks to be generated.Step 7.
If there is still ambiguity after using the second-level JWM, a higher-level JWM (three or higher) should be calculated(3.6)wm(b1b2⋯bm,i)=w(b1,i)w(b2,i+1)⋯w(bm,i+m-1).
Repeat the Steps 3 to 6 using the higher-level JWM in (3.6) when there is ambiguity in peak selection if using any lower-level JWM.


## 4. Implementation

An example of how JWM is used to eliminate or reduce ambiguity is shown using data from 16 randomly generated sequences of 15 bp (Tables3 and 4) that bind to OxyR [12]. For illustration purpose, the centre 9th base is taken to be the start site of transcription, labeled as the position 0. The alignment score is obtained by using the window of 5 bases from −1 to +3 and the range of shifting position set from −8 to +6 with respect to the start site. The sequences are shifted one base at a time and the new alignment score is recalculated based on the simplified sequence logo [13] in Figure 2(a).Table 3
Weight matrix of 16 OxyR-binding sequences from base positions −8 to +6.
−8−7−6−5−4−3−2−10+1+2+3+4+5+61TCACACCGACTTGTG2ACTTATCGATCCGCA3CATTAACAATAGGGC4TACGATAATAGGCAA5CGTACATTATCCATA6CTATTATTGTAACAG7ACTTTCCCAGAGTTC8CAGAGATCGCTCTAA9ACTAAACTTCTGATA10AGTTATCGGTATAAT11ACGATGGAATCCATA12CAGAGATCGCTCTAA13ATCACTGACTACAAT14ATTAGCGATTACCGT15ATTACCTATCGCTGC16CTATTATTGTAACAGA843867166172577C652134631538413T258644644942453G023131335124333%A0.500.250.190.500.380.440.060.380.380.060.440.130.310.440.44%C0.380.310.130.060.190.250.380.190.060.310.190.500.250.060.19%T0.130.310.500.380.250.250.380.250.250.560.250.130.250.310.19%G0.000.130.190.060.190.060.190.190.310.060.130.250.190.190.19Table 4
The second-level of JWM for 16 OxyR-binding sequences.
−7−5−3−113AA0.04690.21090.04690.09770.02730.0469AC0.04690.10550.11720.03910.01170.0313AT0.10940.14060.14060.07810.01560.0313AG0.04690.10550.07030.09770.00780.0156CA0.05860.02340.03130.07810.16410.2109CC0.05860.01170.07810.03130.07030.1406CT0.13670.01560.09380.06250.09380.1406CG0.05860.01170.04690.07810.04690.0703TA0.05860.11720.03910.07810.21880.0469TC0.05860.05860.09770.03130.09380.0313TT0.13670.07810.11720.06250.12500.0313TG0.05860.05860.05860.07810.06250.0156GA0.02340.02340.00780.05860.02730.0703GC0.02340.01170.01950.02340.01170.0469GT0.05470.01560.02340.04690.01560.0469GG0.02340.01170.01170.05860.00780.0234Graphical results of OxyR-binding sites. (a) Simplified sequence logo, (b) information content of each shift positions of a randomly selected sequence using conventional weight matrix, (c) simplified sequence logo (JWM), (d) the same scanning process in (b) using JWM.
(a)(b)(c)(d)Window and shifting parameters are selected such that an ambiguous choice of more than one peak is resolved. By shifting one of the sequences from −8 to +6, the alignment score based on window from −1 to +3 show two peaks at shift positions −5 and 0 in Figure2(b). From the simplified sequence logo, the information content prior to shifting of any sequence is
(4.1)Rshift(0)=0.0637+0.1950+0.5087+0.1504+0.2500=1.1678bits.One of the sequences is randomly selected and shifted about its position. The weight matrix is calculated for each new position and a set ofRshift(sp) is obtained by the end of the shift. The amount of shift required for the 16 sequences to produce Rshift is plotted in Figure 2(b), where two peaks are located at shift positions −5 and 0. The situation is ambiguous and a higher-level search is required by using JWM. The weight matrix is replaced by the second-level JWM in the new search. The new Rshift plot based on the higher-level JWM is shown in Figure 2(d).The new alignment score using JWM shows clearly that the shift position 0 has higher information content, as compared with the shift position −5. Hence, the best alignment is the original position 0. Instead of randomly selecting one of the peaks, it is rational to select the peak with higher information content.


## 5. Discussion and Conclusions

In the selection of the best multiple sequence alignment using the conventional weight matrix, it is assumed that the probability of each base is independent of its neighboring one. Output from a multiple sequence alignment program is not always the same. This can be attributed to several factors. One of the important contributing factors is the conventional scoring matrix. The best alignment at each stage is decided by the highest score with the conventional scoring matrix. However, there are cases whereby there is more than one of such score. This creates an ambiguity in selecting the best alignment. A random choice can be made, but it may result in a less than optimal alignment.The following shows examples of ambiguities found using the conventional scoring matrix. The benchmark database (Table5) consists of DNA sequences containing amelogenin protein in the study of its origin and evolutionary path [14]. Cases of ambiguity during multiple sequence alignment using the conventional scoring matrix are shown in Figure 3. For example, the ambiguity is found when the sequence 2 (DMSPARC), at position 0 and 3 of window, with window placed at the 18th base from the start (first base on the left).Table 5
Ambiguities in sequence alignment using the window size of 5 bases.
No.NamesSequencesWindow positionAmbiguity positions2DMSPARCATGCGCTCCCTTTGGCTGCTGCTCGGCTTGGGCCTGCTGGCTGTGAGCCACGTCCAGGCCT180, 34RATSC1ATGAAGGCCGTGCTTCTCCTCCTGTATGCCTTGGGGATCGCTGCTGCAGTCCCG180, 35MOUSESC1ATGAAGGCTGTGCTTCTCCTCCTGTGCGCCTTGGGAACCGCTGTGGCAATCCCG180, 36HUMANHEVINATGAAGACTGGGCCTTTTTTCCTATGTCTCTTGGGAACTGCAGCTGCAATCCCG11−5, −47BOVINAMEXATGGGGACCTGGATTTTGTTTGCCTGCCTCCTGGGAGCAGCCTTCTCTATGCCT20−4, 010XENOPUS2AMATGAGGCCATTGGTAATGCTAACAGCTCTCATTGGAGCAGCCTTTTCTCTTCCT7−1, 012MOUSEAMEXATGGGGACCTGGATTTTGTTTGCCTGCCTCCTGGGAGCAGCTTTTGCTATGCCC20−4, 013RATAMEXATGGGGACCTGGATTTTGTTTGCCTGCCTCCTGGGAGCAGCTTTTGCTATGCCC20−4,016HUMANAMEYATGGGGACCTGGATTTTGTTTGCCTGCCTTGTGGGAGCAGCTTTTGCCATGCCT20−4, 017HUMAMAMEXATGGGGACCTGGATTTTATTTGCCTGCCTCCTGGGAGCAGCTTTTGCCATGCCT20−4, 018CAVIAAMEXATGGGAACCTGGATTTTGTTTGCCTGCCTCTTGGGAACAGCCTTTGCTATGCCT20−4, 023CHICKENSPAATGAGAACCTGGATTTTCTTCTTCCTCTGCCTGGCAGGCAAAGCCCTGGCAGCTCCG16−3, 024QUAILSPARCATGAGAGCCTGGATTTTCTTCCTCCTCTGCCTGGCAGGCAAAGCCCTGGCAGCCCCG19−3, 025ZEBRAFSPARATGAGGGTTTGGATCTTCTTCCTGTTCTGCCTCGCTGGCAAGACTCTGGCAGCTCCA160, 326TROUTSPARCATGAGGGTGTGGATTGTCTTCCTCCTGTGCCTAGCTGGTCAGGCATTCACCGCTTCC7−4, 527XENOPUSSPAATGAGGGTCTGGGTCTTCTTCGTCTTGTGCCTGGCTGGCAAAGCACTAGCTGCCCCT160, 3Alignment score plot of information content versus shifting position.
(a)(b)(c)The examples above show that ambiguities are frequent enough to be of concern during multiple sequence alignment, which may result in a suboptimal alignment. This problem can be overcome by using the proposed joint weight matrix for scoring. The proposed scoring matrix allows a closer look at each alignment by considering two or more bases for each scoring element. By comparing two bases at one time, the probability of the next base is affected by what appears before it. In fact, there are 16 probabilities of a pair of bases as compared with just 4 probabilities if only one base is considered. This increases the depth of search to reduce the number of peaks. Under Section4, it is shown how the second-level JWM can identify the highest peak when a conventional weight matrix could not. This reduces the error that may occur when “conflicts are resolved” by making a “pseudorandom choice” [10].The higher-level of JWM can be used depending on the level of accuracy required. For example, the second-level JWM may be able to reduce the number of peaks from 5 to 3. The randomness is reduced when one is choosing the best peak from 3 instead of 5 possible sites. However, if the application requires a level of match to be of greater accuracy, a higher-level of JWM may be needed to proceed. The higher-level of JWM can further filter out more peaks till only one obvious choice is left. Although the higher-level of JWM may require more computation time and additional scan, this may be compensated by the faster convergence of results as a better alignment is selected early in the iterations. This is true especially for cases whereby a large number of iterations are required before a satisfactory convergence can be found [15]. JWM can be used to improve applications using conventional weight matrix system in bioinformatics. Besides aligning DNA sequences, JWM can also be implemented in protein sequence alignment.



---

*Source: 490649-2012-01-11.xml*