1
• Number of sequences >2
• Global alignment
• Seek an alignment that maximizes score
2
Multiple sequence alignment can be viewed as an extension of pairwise sequence alignment, but the complexity of the computation grows exponentially with the number of sequences being considered and their lengths and, therefore, it is not feasible to search exhaustively for the optimal alignment even for even a modest number of short sequences.
For example, there are approximately 10 38 possible alignments that can be produced from five 10-nucleotide-long sequences
3
38
4
• In addition to the scores employed by pairwise alignment, we have additional scores.
• However, we still seek an alignment that maximizes score
5
{4,0,0,0,0} = 1
{3,1,0,0,0} = 0.75
{2,2,0,0,0} = 0.5
{2,1,1,0,0} = 0.5
{1,1,1,1,0} = 0
5 character states: A, C, T, G, –
6
G T C GTAGTCGGC T CG A C
G T C TAGCGAGCG T GA T -
G C G AAGAGGCGA G C-
G C C GTCGCGTCG T AA C -
G T CGTA G TC G -G C -T C GAC
G T C-TA G -C G AG C GT GAT
G C -GAA G -A G -G C GA G-C
G C CGTC G -C G -T C GT A -AC
1*1 + 3*0.75 + 12*0.5 = 9.25
4*1 + 13*0.75 + 2*0.5 = 11.75
7
GCGGCCCA TCAGGTAGTT GGTGG
GCGGCCCA TCAGGTAGTT GGTGG
GCGTTCCA TCAGCTGGTT GGTGG
GCGTCCCA TCAGCTAGTT GGTGG
GCGGCGCA TTAGCTAGTT GGTGA
***...** *.**.*.*** ****.
TTGACATG CCGGGG ---A AACCG
T-GACATG CCGGTG --GT AAGCC
TTGGCATG -CTAGG---A ACGCG
TTGACATG -CTAGGGAAC A CGCG
TTGACATC -CTCTG---A ACGCG
* *.***. *...* . *..*.
Easy
Difficult
8
• Dynamic programming (exhaustive, exact)
– Consider 2 protein sequences of 100 amino acids in length.
– If it takes 100 2 (10 3 ) seconds to exhaustively align these sequences, then it will take 10 4 seconds to align 3 sequences, 10 5 to align 4 sequences, etc.
– It will take ~10 21 seconds to align 20 sequences.
One year is ~3
✕
10 7 seconds. The age of the visible universe is ~10 18 seconds.
• Progressive alignment (heuristic, approximate)
9
• Devised by Feng and Doolittle in 1987.
• Essentially a heuristic method and, as such, not guaranteed to find the “optimal” or “best” alignment.
• Requires pairwise alignments as a starting point
2
• One of the first successful implementation was Clustal
(by Des Higgins et al.)
10
• Sum of pairwise alignment scores
– For n sequences, there are n ( n -1)/2 pairs
• Based on pairwise alignment scores
– Build n by n table of pairwise scores
• Align similar sequences first
– After alignment, consider as single sequence
– Continue aligning with further sequences
G T CGTAG T CG-GC T C GAC
G T C TAG-CG A GCGT GA T
G C G A AGA G-GCG A G C
G C CGT C G-CGT CGT A AC
12
First step:
A
B
C
D
Compute the pairwise alignments for all against all
(6 pairwise alignments) the similarities are stored in a table
A
C
D
A
B 11
3
2
B
1
2
C
10
D
13
Second step:
Cluster the sequences to create a tree
( guide tree ):
• Represents the order in which pairs of sequences are to be aligned
• Similar sequences are neighbors in the tree
• Distant sequences are distant from each other in the tree
A
A
B
C
D
11
3
2
B
1
2
C
10
D
A
Guide tree
B
C
D
14
A guide tree is not a phylogenetic tree!
15
Third step:
A
B
C
D
Align most similar pairs
Align the alignments as if each of them was a single sequence
(replace with a single consensus sequence or use a profile)
16
X
M Q T F
L H T W
L Q S W M Q T - F
L H T - W
L Q S - W
L - T I F
M - T I W
Y
L T I F
M T I W
17
> Usually FASTA format
19
> Sulfolobus acidocaldarius gi|152927|gp|J03218|SSOATPMA_1
MVSEGRVVRVNGPLVIADGMREAQMFEVVYVSDLKLVGEITRIE
> Thermococcus sp. gi|2605627 ATPase alpha subunit
MGRIIRVTGPLVVADGMKGAKMYEVVRVGEMGLIGEIIRLEGDKAVIQVYEETAGIRPGE
PVEGTGSSLS
> Acetabularia acetabulum gi|1303673|gnl|PID|d1009732 adenosine triphosphatase A subunit
MSKAKEGDYGSIKKVSGPVVVADNMGGSAMYELVRVGTGELIGEIIRLEGDTATIQVYEE
TSGLTVGDGV
…
20
Sequences that are similar only in some smaller regions may be misaligned because MSA tries to find global, rather than local alignments.
Sequence that contains a large insertion compared to the rest may be misaligned because MSA tries to find global, rather than local alignments.
21
Sequence that contains a repetitive element
(such as a domain), while another sequence only contains one copy.
VS
22
• Pairwise alignment is an optimal algorithm.
• Multiple alignment is not an optimal algorithm.
Better alignments might exist!
• The algorithm yields a possible alignment, but not necessarily the best one.
23
24
• Sequence weighting (Should we treat all the sequences as equals?)
• Position weighting (Should we treat all positions in the sequences as equals?)
• Varying substitution matrices
• Residue-specific gap penalties and reduced penalties in hydrophilic regions (external regions of protein sequences), encourage gaps in loops rather than in core regions.
• Positions in early alignments where gaps have been opened receive locally reduced gap penalties to encourage openings in subsequent alignments
• Vary “gap opening penalty” and “gap extension penalty”
• Discourage too many gaps, too close to one another
• Take into account hydrophilic and hydrophobic structures
• Avoid divergent sequences, as they are the most difficult to align
25
• It is not very sensible to align the DNA sequences of protein-coding genes.
ATGCTGTTAGGG
ATGCTCGTAGGG
ATGCT-GTTAGGG
ATGCTCGTA-GGG
The result might be implausible and might not reflect what is known about biological processes.
It is much more sensible to translate the sequences into their corresponding amino acid sequences, align these protein sequences and then put the gaps in the DNA sequences according to the amino acid alignment.
26
Effect of gap penalties on amino-acid alignment
Human pancreatic hormone precursor versus chicken pancreatic hormone
(a) Penalty for gaps is 0
(b) Penalty for a gap of size k nucleotides is w k
= 1 + 0.1
k
(c) The same alignment as in (b), only the similarity between the two sequences is further enhanced by showing pairs of biochemically similar amino acids
27
The anchored-alignment procedure uses expert knowledge to improve multiple alignments. The user can specify a list of anchor points , each of which consists of a pair of equallength segments that are to be aligned by the program.
If residue x from one of the input sequences is paired to residue y from another sequence, then y is the only residue that can be aligned to x, and vice versa.
All residues to the left and the right of x are aligned, respectively, to the residues to the left and the right of y .
28
Consider, for example, the following example:
>seq1 WKKNADAPKRAMTSFMKAAY
>seq2 WNLDTNSPEEKQAYIQLAKDDRIRYD
>seq3 WRMDSNQKNPDSNNPKAAYNKGDANAPK
The non-anchored default version of DIALIGN would calculate the following alignment for this input sequence set: seq1 1 WKKNAD-----APKRamtsfmKAAY-----------seq2 1 WNLDTN-----SPEE------KQAYiqlaKDDriryd seq3 1 WRMDSNqknpdSNNP------KAAYn---KGDsnapk
29
Now let's assume, the user has some expert knowledge about a certain domain that is present in all of the input sequences; the domains in the three sequences are thought to be homologous to each other:
>seq1 WKK NADAPK RAMTSFMKAAY
>seq2 WNLDT NSPEEK QA YIQLAKDDRIRYD
>seq3 WRMDSNQKNP DSNNPK AA YNKGDANAPK
The user wants to define this motif as anchor and align the rest of the sequences automatically, given the pre-defined constraints imposed by this anchor.
Since anchor points are defined as pairs of equal-length segments, we need two anchor points to enforce alignment of the above motif.
30
For example, one could choose
Anchor point 1:
>seq1 WKK NADAPK RAMTSFMKAAY
>seq2 WNLDT NSPEEK QAYIQLAKDDRIRYD
>seq3 WRMDSNQKNPDSNNPKAAYNKGDANAPK
Anchor point 2:
>seq1 WKKNADAPKRAMTSFMKAAY
>seq2 WNLDT NSPEEKQA YIQLAKDDRIRYD
>seq3 WRMDSNQKNP DSNNPKAA YNKGDANAPK
If the above motif is to be aligned by our program, these two anchor points need to be specified.
31
Format for user-defined anchor points:
To specify a set of anchor points, a file with the coordinates of these anchor points is needed.
Since each anchor point corresponds to a equal-length segment pair involving two of the input sequences, coordinates for anchor points are defined as follows:
(1) first sequence involved
(2) second sequence involved
(3) start of anchor in first sequence
(4) start of anchor in second sequence
(5) length of anchor.
(6) specify a score of an anchor point.
This score is necessary to prioritize anchor point in case they are inconsistent with each other, i.e., if not all of them can be used simultaneously for the same alignment. the above coordinates (in the above given order).
32
1
4
6
2 6
Thus, the above two anchor points are specified as follows:
1 2 4 6 6 4.5
2 3 6 11 8 1.3
4.5 and 1.3 are (arbitrary) scores for anchor points 1 and 2.
33
• Progressive approach:
CLUSTALW (CLUSTALX)
T-COFFEE
PILEUP
• Iterative approach (Repeatedly realigned subsets of sequences):
MultAlin, DiAlign
• Statistical Methods (e.g., Hidden Markov Models)
SAM2K
• Genetic algorithms
SAGA
34
• An MSA program
• Uses principles similar to Clustal
• Combining sequence alignment method with structural alignment techniques
• More accurate but longer running time
• Limits to the number of sequences it can align (~100)
35
Giddy Landan and Dan Graur. 2007. Heads or Tails: A Simple
Reliability Check for Multiple Sequence Alignments. Molecular Biology and Evolution 24(6):1380-1383.
36
Genomic alignment (with MAUVE)