Download Multiple Sequence Alignment: Methods, Tools, and Applications and more Study notes Bioinformatics in PDF only on Docsity!
Dr. D. Andrew Carr
Introduction to Bioinformatics
BINF 630
Multiple Sequence Alignments
Multiple Sequence Alignment
Figure: Conserved catalytic motifs in the caspase-like superfamily of proteases.
© 2003 by Kluwer Academic Publishers.
Knowledge gain
In science, “knowledge” is in the
patterns/similarities. The interesting
questions, however, are in the differences.
Multiple Sequence Alignment
It is believed, based on finding similar protein sequences within
highly divergent species, that the over time the functional
components embedded within the sequences are conserved in
order to retain the function.
One of the most important elements of sequences is the phylogenetic
information that similarities represent.
The sequence similarities gives insight into the evolution of families
of protein or DNA sequences.
Knowledge to be gained:
Estimation of evolutionary distance
Mutation / Speciation
Note: Multiple Sequence Alignment methods are also employed in
assembly of DNA sequences from cloning vectors.
Multiple Sequence Alignment Methods
Global Alignment Tools:
Dynamic Programming Based
MSA [1] ClustalW Thompson et al. (1997) [1]
Iterative Methods
Simulated Annealing MSASA Genetic Algorithm SAGA and RAGA
Local alignment tools:
Gibbs based
GIBBS Lawrence (1993) BLOCKS Henikoff and Henikoff(1992) [1]
Hidden Markov Model
HMMER (Eddy 1998)
EM based
MEME Bailey and Elkan (1995)
[1] http://searchlauncher.bcm.tmc.edu/multi-align/multi-align.html [2] http://bayesweb.wadsworth.org/gibbs/gibbs.html
Global: Multiple Sequence Alignment
MSA (Multiple Sequence Alignment):
Based on dynamic programming
Aligns two sequences
Provides a measure of accuracy of alignments
Scores the alignment – level of significance
Different applications can handle indels as well as gaps.
Depends on choice of scoring system
Results change based on the scoring matrix
PAM : Evolutionary change
BLOSUM : Family membership
Different types of gap penalties
Affine gap
Most methods employ a phylogenetic tree building to
concatenate alignments.
Sequence Alignment Review
Dynamic Programming
Global
Needleman-Wunsch
Local
Waterman-Smith-Beyer
wherewistheweightofa gap
D wa
D wab
D w b ij D
D wa
D w b
D
i j i
i j i j
ij j ij
i
k
i k
j
k
j k
−
−−
−
=
=
, 0 min
1 ,
1 , 1
, 1 ,
1
, 0
1
0 ,
0 ,, 0
wisthesimilarityscore function
wheregkisthegappenaltyfunctionand
D gk
D wab
D gk ij S
D gi
D gj
D
kj ikj
i j i j
kj ijk ij
i
j
min( ())
min( ()) , 0 min
1 ,
1 , 1
1 , ,
, 0
0 ,
0 ,, 0
≤≤ −
− −
≤≤ −
Multiple Sequence Alignment –
Dynamic Programming
An extension of the pair wise sequence alignment
Alignment of k sequences to k sequences
k(k-1)/2 possible sequence comparisons.
Alignment algorithms operate in a similar manner as
before but now the distance matrix is (k
dimensional) and the weight function compares k
letters.
2D – simple matrix
3D – Hypercube
kD – k dimensional hyperspace
MSA: Dynamic Programming
Computationally expensive
Long sequences
Large number of sequences
Computational cost
For two sequences of lengths n and m
Needleman-Wunsch
O (nm) = O (n 2 ) for n >= m
Waterman-Smith-Beyer
O (nm(n+m) = O (n 3 ) for n >= m
Gotoh’s algorithm
O (nm) = O (n 2 ) for n >= m
For three sequences of lengths n, m and p
Most algorithms
O (nmp) = O (n 3 ) for n >= m >= p
MSA: Dynamic Programming
For k sequences we get O (n
k
) where n is the
longest sequence
If we compare 10 sequences of length <= 300
300 10 comparisons….
np-complete task
Global Alignment: Dynamic Programming
Solutions:
Sum of Pairs Carrillo and Lipman (1988)
Look at all pairs
Create parsimony tree
Build alignment along the tree
Take the best SP score
Problems:
Biased toward similar sets of sequences.
Order weighting important
TYDEP
T+YDEP
TTYDEP TYDDP
T+--DDP
TTYDEP
+T -Y
E to D
T+YDDP
TDDP Sequences
Global Alignment: Dynamic Programming
Progressive Methods
Dynamic Sequence alignment based on hierarchical sequence similarity.
Challenge:
To choose the correct
Sequence weighting Scoring matrix Gap penalties
Goal get the correct series of evolutionary changes
Programs:
CLUSTALW
Gaps between conserved regions down weighted Already occurring gaps down weighted New Gaps are costly
T-Coffee
Employs locally aligned (conserved regions/domains) to help find alignment
Crossover and Mutation
Crossover Point
Parent A
Parent B
Child AB
Child BA
Crossover
Parent A
Child B
Mutation Point
Mutation
Global MSA: Other methods… and what
works best.
Simulated Annealing
Pair-wise alignment driven
Heuristic algorithm to iterate and improve the score
MSASA (Kim et al. 1994)
Graph based methods
Directed acyclic graphs
Partial order graphs
Best??? (Lassman and Sonnhammer 2002)
DIALIGN (Best for low sequence identity)
T-COFFEE (Best for high sequence similarity)
Local MSA
Small Conserved regions DNA sequence Æ regulatory or coding region in DNA Protein Æ functional domains
The small regions are considered motifs or profiles Regular Expressions PSSM (position specific scoring matrix) HMM (allows gaps and indels)
Three main methods: Profile analysis Uses Conserved Regions of Global MSA Uses the conserved regions to build a profile. Block analysis Looks for regions in an Global MSA with no substitutions MOTIF then MOTOMAT Uses these regions for alignments Statistical and Pattern searching methods HMM EM Gibbs
KKFAQSTNLKSHILT
KQFSHSAQLRAHIST
GKFSDSNQLKSHMLV
KDISSSESLRTHMFK
KRFSHSGSYSSHISS
KRFSHSGSFSSHMTS
KTLSDRLEYQQHMLK
Local MSA: Sequence patterns
Regular Expressions
Patterns described in a standard way are known as regular expressions
x-x or x-x-x
not D or E
I or L or V
x(2,3)
{DE}
[ILV]
. END
>^ C-terminal
< N-terminal
- separator
( ) repetitions
{ } NOT
[ ] OR
x ANY
Regular Expressions
[AC]-x-V-x(4)-{ED}
[Ala or Cys]-any-Val-any-any-any-any-{any but Glu or Asp}
...LKHV A Y V FQALIYWIK...
...AVEM A G V KYLQVQHGS...
...LYTG A I V TNNDGPYMA...
...KEYK C K V EKELTDICN...
BLOCKS
Blocks are multiply aligned un-gapped segments corresponding to the most
highly conserved regions of proteins
Block IPB003143A ID D1_heme; BLOCK AC IPB003143A; distance from previous block=(7,88) DE Cytochrome d1, heme region BL ACG; width=36; seqs=12; 99.5%=1578; strength= NIRF_PSEAE|Q51480 ( 9) LLLTLLAGCSQQPPLRGSGDLGVLIERADGSVQILD 59 NIRS_PARDE|Q51700 ( 89) IYFERCAGCHGVLRKGATGKALTPDLTRDLGFDYLQ 32 NIRS_PSEAE|P24474 ( 67) IYFQRCAGCHGVLRKGATGKPLTPDITQQRGQQYLE 29 NIRF_PSEST|Q52521 ( 8) LAAVGLLTACAQQPLRGTGDLGVVVERATGSLQIIE 88 NIRS_PARPN|P72181 ( 89) IYFERCAGCHGVLRKGATGKALTPDLTRDLGFDYLQ 32 NIRS_PSEST|P24040 ( 42) IYFERCAGCHGVLRKGATGKNLEPHWSKTEADGKKT 51 Q9R9J9 ( 8) AALLLIAAPALADELRGTGDLGLIVEREAGSLLVVD 100 Q44012 ( 53) IYFERCAGCHGVLRKGATGKSLTPDITRARGTEYLK 36 Q9F0W9 ( 58) IYFQRCAGCHGVLRKGATGKPLTPDITQSRGQAYLE 32
Profile Method of Local MSA
Two types of profile method
Weighted
Strictly drawn from Dayhoff PAM matrices based on
amino acid frequency
Evolutionary
Rate of evolution is taken into account
Probability of the change between residues
Calculated as a log odds score of the Dayhoff method
The method for computation of the
Local MSA: Statistical Methods
EM (Expectation Maximization)
Initial guess is made as to the location of a motif
Expectation Step
The probability of finding the motif at any any point in each of the sequences is calculated based on the distribution of bases/amino acids within each column of the initial guess. The probabilities are used to redefine the initial distribution within each motif column.
Maximization Step
The new counts based on the probabilities are used to change the initial guess.
This is iterated until convergence
The size of a motif region can be determined by the EM algorithm based on
log likelihood scores after one iteration
GIBBS Sampler Method
Searches for the statistically most probable motifs.
The goal is to maximize the ratio of motif probability to background
probability.
Hidden Markov Models: Local MSA
Hidden Markov Models
Statistically based
Produce sound results
Provide representations of sequence domains or
protein families
Drawback …
Require lots of data to train…
Markov Chains
Probability for each state
is based only on a set number of preceding characters
# of preceding characters = order of the Markov Model
Probability of a sequence (order = 2):
P(s) = P{T} P{T,C} P{T,C,A} P{C,A,G} P{A,G,C} P{G,C,C} P{C,C,T}
Start T C A G C C T
Hidden Markov Models
A T C T A G
A 0.
T 0.
C 0.
G 0.
A 0.
T 0.
A 0.
T 0.
A 0.
T 0.
C 0.
G 0.
Observed
frequencies
Probabilistic model - true state is unknown
Hidden Markov Models
Adopted from Anders Krogh, 1998
ACA---ATG
TCAACTATC
ACAC--AGC
AGA---ATC
ACCG--ATC
probabilities
log-odds (log )
P(S)
0.25L
How HMMs are built/ trained
Start with a basic model structure and a given distribution of probabilities
Algorithms for training markov models
Forward and Backward Algorithms
Predictive Measures
Viterbi
Baum-Welch
Best practices to improve HMM performance
Alter prior distribution of amino acids
Knowledge added start point can emphasize convergence
Alter architecture based on familial knowledge
PSSM Calculation…
The goal of local MSA is to find small regions that are highly conserved.
Once these regions are found it is important to consider the underlying
distribution by which the motif was created.
What manner is the sequence to be compared
[FW] - [SGNH] - x - [GD] - {F} - [RKHPT] - {P} - C - [LIVMFAP] - [GAD] Does this contain sufficient variation? Most likely the search will be done with dynamic programming Thus the scoring matrix is important and must contain sufficient variation, but at the same time limit the number of false predictions. To do this we measure the scoring matrix how? Shannon Entropy measure:
H(x) = - Σ P
i
log
P
i
i =
M
In this case the x is the column in the motif and i is the amino acid/base. Pi is the frequency of the amino acid/base.
Total score for a scoring matrix can is the sum of all the column scores: Htotal = ∑ H(x)
The Logo Display of Shanon Entropy
Scores for heme BLOCK.