





















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!






















Dynamic Programming Algorithm, continued End gaps Affine versus linear gap penalties Gloabl, local-global and local alignment SeqLab: using GenBank Features Seqlab: optimizing parameters for BestFit
Linear versus Affine gap penalty linear gap penalty affine gap penalty number of gaps number of gaps Gap penalty for the whole sequence is just the number of gaps times a constant. Gap penalty for the whole sequence is the affine function. N(gap initiation penalty) + E(gap extension penalty)
Affine gap penalty scoring AGGCTACT~T~TCA GGCTACTATATCA AGGCTACTTT~~CA GGCTACTATATCA gap initiation = -5 gap extension = -
M = match matrix I = insertion matrix D = deletion matrix scores for alignments currently in a match state scores for alignments with gap in first sequence. scores for alignments with gap in second sequence. M(i,j) is the max over three diagonal arrows I(i,j) is the max over three down arrows D(i,j) is the max over three right arrows A D P Q F G A K L K L D Q F G P A K L K L D Q F G P A K L K L D Q F G P A D P Q F G A D P Q F G Note: I wrote the sequences in the gap rows!!
Special rules may apply for going from I to D and D to I. AGGCTACT~TATCA GGCTACTA~ATCA If you think this alignment does not make sense, then D to I and I to D can simply be disallowed in the DP algorithm. Most programs do this. [Exception: For a global alignment, D-to-I or I-to-D arrows are allowed at the ends of alignments because there is no other way to complete the matrix.]
M = match matrix I = insertion matrix D = deletion matrix scores for alignments currently in a match state scores for alignments with gap in first sequence. scores for alignments with gap in second sequence.
The traceback is a sequence of M I or D , but this is NOT the traceback of the letters. Instead it is a traceback of the location of the letters (which matrix they are in), since the location (the matrix) defines the direction of the next arrow.
G T T C A G C T T T C A C T
First: Ignore starting gap penalties , set gap rows to zero (keep the traceback arrows, though).
G T T C A G C T T T C A C T
Second: Start the traceback with the MAX score at the end of either sequence. (i.e. last row, or last column)
If we penalize end gaps in sequence 1 but not in sequence 2, we are asking for an alignment that contains all of sequence 1 within sequence 2.
Global, global-local, and local alignment
...is the most generally applicable alignment method, since it has the fewest assumptions.
If the maximum score in the alignment matrix is < 0., then the optimal local alignment has score = 0 and looks like this: