Download Multiple Sequence Alignment: Profiles, Hidden Markov Models, and Algorithms and more Lecture notes Bioinformatics in PDF only on Docsity!
Patterns, Profiles, andM lti l^ Ali
t
Multiple Alignments
OutlineOutline •^ Profiles Position Specific Scoring Matrices•^ Profiles, Position Specific Scoring Matrices•^ Profile Hidden Markov Models•^ Alignment of Profiles•^ Alignment of Profiles•^ Multiple Alignment Algorithms•^ Problem definitionProblem definition•^ Can we use Dynamic Programming to solve MSA?•^ Progressive Alignment•^ ClustalW•^ Scoring Multiple AlignmentsEntropy•^ Entropy•^ Sum of Pairs (SP) Score• Sequence Pattern Discoveryq^
y
Profile Representation of Multiple SequencesProfile^ Representation of Multiple Sequences^ -^ A^ G^
G^ C^ T^ A^ T^ C^ A^
C^ C^ T^ G T^ A^ G^ –^ C^ T^ A^
C^ C^ A^ -^ -^ -^ G C^ A^ G^ –^ C^ T^ A^
C^ C^ A^ -^ -^ -^ G C^ A^ G^ –^ C^ T^ A^
T^ C^ A^ C^ –^ G^ G C^ A^ G^ –^ C^ T^ A^
T^ C^ G^ C^ –^ G^ G C^ A^ G^ C^ T^ A^
T^ C^ G^ C^ G^ G A^1
C^.^
1 .4^1.^
. G^1
2 4 1 G^1.^
.2^ .4^1 T^.^
1.^
.
-^ .2^.^
.4^ .8^.
Profile Representation of Multiple SequencesProfile^ Representation of Multiple Sequences^ -^ A^ G^
G^ C^ T^ A^ T^ C^ A^
C^ C^ T^ G T^ A^ G^ –^ C^ T^ A^
C^ C^ A^ -^ -^ -^ G T^ A^ G^ –^ C^ T^ A^
C^ C^ A^ -^ -^ -^ G C^ A^ G^ –^ C^ T^ A^
C^ C^ A^ -^ -^ -^ G C^ A^ G^ –^ C^ T^ A^
T^ C^ A^ C^ –^ G^ G C^ A^ G^ –^ C^ T^ A^
T^ C^ G^ C^ –^ G^ G A^1
C^.^
1 .4^1.^
. G^1
2 4 1 G^1.^
.2^ .4^1 T^.^
1.^
.
-^ .2^.^
.4^ .8^.
Earlier, we were aligning a
sequence against a sequence
Can we align a^ sequence against a profile
in order to find out
whether this sequence belongs to that protein family?
How to obtain PSSMs?How^ to obtain PSSMs? • Suppose we have a multiple alignment of Nsequences. To obtain the values of thePSSM matrix (
mu,b ), we can use the technique
we have used to align a sequence to a profile
g^ q^
p
and use the frequencies of amino acids ateach column as coefficients:each column as coefficients:^ nbu ,^ f^
=^ sfm ∑ bb^
, f = bu , N
sfm ∑ babuau ,,, residue b typesypes
A better way to weigh residue preferencesA^ better way to weigh residue preferences • It is better to give preferred residues extraweight, because residue types rarely foundare probably highly disfavored at that column• Use logarithmic weighting:Use logarithmic weighting:
′ f ) (^1) ln(− ∑ + =^
bu ba au
f s N m^ id
,^ , ,^
) (^1) ln( )) (^1) /( (^1) ln(
n , bu ′ = f , bu^1 + N
)) (^1) /( (^1) ln(
(^1) + N
If sufficient data is not availableIf^ sufficient data is not available • q^ will cause problems q will^ cause problems u,a^ • Amino acids that do not occur in a column will
f cause a score of -
∞
- A simple solution: assume at least oneoccurrence of each residue type
(^11) + n , = (^) , 20 + N au q au
- These additional counts are called
20 pseudocounts. ,^ + N
p
A better formulaA^ better formula • Incorporate background amino acidcomposition
β+ pn β +^ pn = β + N q^
aau , au ,^ β+ N • β is the total number of pseudocounts in a β is the total number of pseudocounts in acolumn. Can be adjusted based on theamount of data availableamount of data available.
Profile Hidden Markov ModelsProfile^ Hidden Markov Models • Using HMMs to represent a profile and toalign a sequence to a profile
Hidden Markov ModelHidden^ Markov Model • Hidden Markov models are^ probabilistic finite statemachines. A hidden Markov^ model^ λ^ is determined by thefollowing parameters: – A set of finite number of states:
S^ , 1^ ≤^ i^ ≤^ Ni
- The probability of starting in state
S^ ,^ π ii
-^ The transition probability from state
S^ to^ S^ ,^ a^ i^ jij
The^ transition probability from state
S to^ S ,^ ai^ jij
- The emission probability density of a symbol
in state^ S in^ state^ Si
Problems associated with HMMsProblems^
associated with HMMs
- There are three typical questions one can askregarding HMMs:•^ Given the parameters of the model, compute the probability of aparticular output sequence This problem is solved by theparticular output sequence. This problem is solved by theforward-backward procedure.•^ Given the parameters of the model, find the most likely sequenceof hidden states that could have generated a given outputsequence. This problem is solved by the Viterbi algorithm.•^ Given an output sequence or a set of such sequences find theGiven an output sequence or a set of such sequences, find themost likely set of state transition and output probabilities. In otherwords, train the parameters of the HMM given a dataset of outputsequences This problem is solved by the Baum Welch algorithmsequences. This problem is solved by the Baum-Welch algorithm.
Example (from Wikipedia)Example^ (from Wikipedia)^ Y^ h^ f i^ d^
h^ lk d il^
h^ h^ Y^ f i^ d
-^ You have a friend to whom you talk daily on the phone. Your friendis only interested in three activities: walking in the park, shopping,and cleaning his apartment. The choice of what to do is determinedexclusively by the weather on a given day. You have no definiteinformation about the weather where your friend lives, but you knowgeneral trends. Based on what he tells you he did each day, you tryg^
y^ y, y
y
to guess what the weather must have been like.Th^ t^ t t^
"R i^ "^ d "S^ " b t
t^ b
-^ There are two states, "Rainy" and "Sunny", but you cannot observethem directly, that is, they are
hidden^ from you. On each day, there
is a certain chance that your friend will perform one of the followingactivities, depending on the weather: "walk", "shop", or "clean".Since your friend tells you about his activities, those are the observations.
Example (from Wikipedia)Example^ (from Wikipedia) • Now, you talked to your friend for three days, and he toldyou that on the first day walked, the next day heshopped and the last day he cleaned.What is the most likely sequence of days that could haveproduced this outcome? (Solved by the Viterbi algorithm)Wh t i^ th^
ll^ b bilit^ f th^
b^ ti^? What is the overall probability of the observations?(Solved by forward-backward algorithm)
walk: 0.1^ walk: 0.6walk: 0.1walk: 0.6^ 0 40.4shop: 0.4shop: 0.3clean: 0.5clean: 0.1^ Rainy^ Sunnya^ y^ Su^ y 0.60.60.3^ 0.7^ t tstart0.
HMMs to represent a family of sequencesHMMs^ to represent a family of sequences^ • Given a multiple alignment of sequences, weG^ e^ a^ u^
p e a g^ e^ o seque ces,
e can use an HMM to model the sequences.Each column of the alignment may beEach column of the alignment may berepresented by a hidden state that producedthat column Insertions and deletions can bethat column. Insertions and deletions can berepresented by other states.