Dynamic Programming Approach (1)
Dynamic Programming Approach (1)
BIOINFORMATICS
Progressive Method
Iterative Method
Dynamic Programming Approach
match
number of sequences
function
in practice
Rules
https://www.youtube.com/watch?v=ipp-pNRIp4g
Dynamic Programming Approach
Steps of Alignment:
1. Initialization.
2. Matrix filling.
3. Alignment.
Rules:
● 1st column and 1st row must be blank.
●1+M×1+N
● After 0 add the Progressive gap penalties.
● Fill the other boxes as: take the three values for
each box & Select the greater value.
1.Value from left + gap penalty
2.Value from top +gap penalty
3.Value from diagonal + match/mismatch scores.
Example #1
Sequence #1 AAAC
Sequence #2 AGC
Match = 1, Mismatch = - 1, Gap penalty = - 2.
A A A C
0 -2 -4 -6 -8
A -2 1 -1 -3 -5
G -4 -1 0 -2 -4
C -6 -3 -2 -1 -1
Example #1
Sequence #1 AAAC
Sequence #2 AGC
Match = 1, Mismatch = - 1, Gap penalty = - 2.
Trace back the arrows.
Trace back the values from right bottom corner
towards the left starting point.
-3 2
T -1 1
A 1 -1
How to align the sequence?
Sequence # 1 ATGCGT
Sequence # 2 ACGGCGT
A C G G C G T
0 -2 -4 -6 -8 -10 -12 -14
A -2 1 -1 -3 -5 -7 -9 -11
T -4 -1 0 -2 -4 -6 -8 -8
G -6 -3 -2 1 -1 -3 -5 -7
C -8 -5 -2 -1 0 0 -2 -4
G -10 -7 -4 -1 0 -1 1 -1
T -12 -9 -6 -3 -2 -1 -1 2
Alignment :
ACGGCGT
AT_GCGT
Match = 5
Mismatch = - 1
Gap penalty = - 1
Alignment score = 3
Dynamic Programming Approach
Dynamic Programming Approach
Dynamic Programming Approach
Dynamic Programming Approach
Dynamic Programming Approach