


Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!



I (.
Problem 1. Points: 20. (Dynamic programming for sequence alignment)
Consider the task of finding the optimal alignment of the following two sequences: AACG and ACTG.
The scoring function (called b in class) is: A MATCH scores S. That is, b(x,x) = 5 for any x E {A,C,G,T}.
A GAP scores -1. That is, b(x,-) =b(-,x) =-1 for any x E {A,C,G,T}.
As usual, we construct the dynamic programming table, and I've filled in some of the cells of this table.
?
2>
Z
4f~
2,1., \
9
7
'lIlt '
3/6,Z
2.p/ l
... 3641' '7..,^ I/~
8
~/7/
(a) Fill in the remaining cells of this Dynamic Programming table. (15 points)
(b) Report the optimal alignment score. (2 points)
13
(c) Write down an optimal alignment of the two sequences. (3 points)
A A C l I
ACT
BODE ODES ODOR DESK DOOR
--R
Consider an HMM with two possible states, "F" and "B". Each state emits one character, chosen from the alphabet {A,C,G,T}.
The transition probabilities of this HMM are:
aFF = aBB = % = 2-^0.
The emission probabilities are:
Now, you are told that the sequence emitted by this HMM is x = TTT. Show the calculations of the Viterbi algorithm to derive the most likely sequence of states, Le., Jt =Jt1Jt2Jt3, where each Jtds either 'F' or 'B', that maximizes Pr(x, Jt). Your answer should include
(ii) the probability Pr(x, Jt) you computed for the best Jt (2 points), and
,if -B~ /1-11'41"
-7'4Jl) -10'41S