Sequence comparison: Local alignment
Genome 559: Introduction to Statistical and Computational Genomics
- Prof. James H. Thomas
Sequence comparison: Local alignment Genome 559: Introduction to - - PowerPoint PPT Presentation
Sequence comparison: Local alignment Genome 559: Introduction to Statistical and Computational Genomics Prof. James H. Thomas Review global alignment G A A T C 0 -4 -8 -12 -16 -20 C -4 -5 -9 -13 -12 -6 A -8 -4 5 1 -3
fill DP matrix from upper left to lower right, traceback alignment from lower right corner.
targets (e.g. genome contigs)
query matched regions returned in alignment
j i
j i
(corresponds to start of alignment)
j i y
A C G T A 2
C
2
G
2
T
2
1 , 1 j i F j i F , j i F , 1 1 , j i F
d d
j i y
x s ,
d = -5 initialize the same way as for global alignment
A C G T A 2
C
2
G
2
T
2
1 , 1 j i F j i F , j i F , 1 1 , j i F
d d
j i y
x s ,
d = -5
A C G T A 2
C
2
G
2
T
2
1 , 1 j i F j i F , j i F , 1 1 , j i F
d d
j i y
x s ,
d = -5
A C G T A 2
C
2
G
2
T
2
1 , 1 j i F j i F , j i F , 1 1 , j i F
d d
j i y
x s ,
2
d = -5
A C G T A 2
C
2
G
2
T
2
1 , 1 j i F j i F , j i F , 1 1 , j i F
d d
j i y
x s ,
d = -5
A A
A C G T A 2
C
2
G
2
T
2
1 , 1 j i F j i F , j i F , 1 1 , j i F
d d
j i y
x s ,
d = -5
A C G T A 2
C
2
G
2
T
2
1 , 1 j i F j i F , j i F , 1 1 , j i F
d d
j i y
x s ,
(you can signify no preceding alignment with no arrow)
d = -5
A C G T A 2
C
2
G
2
T
2
1 , 1 j i F j i F , j i F , 1 1 , j i F
d d
j i y
x s ,
(you can signify no preceding alignment with no arrow)
d = -5
A C G T A 2
C
2
G
2
T
2
1 , 1 j i F j i F , j i F , 1 1 , j i F
d d
j i y
x s ,
(you can signify no preceding alignment with no arrow)
d = -5
A C G T A 2
C
2
G
2
T
2
1 , 1 j i F j i F , j i F , 1 1 , j i F
d d
j i y
x s ,
(you can signify no preceding alignment with no arrow)
d = -5
A C G T A 2
C
2
G
2
T
2
1 , 1 j i F j i F , j i F , 1 1 , j i F
d d
j i y
x s ,
(you can signify no preceding alignment with no arrow)
d = -5
A C G T A 2
C
2
G
2
T
2
1 , 1 j i F j i F , j i F , 1 1 , j i F
d d
j i y
x s ,
d = -5
score along traceback to zero.
the two sequences.
1 2
A C G T A 2
C
2
G
2
T
2
Find the optimal local alignment of AAG and GAAGGC. Use a gap penalty of d = -5.
1 , 1 j i F j i F , j i F , 1 1 , j i F
d d
j i y
x s ,
0 = diagonal, -1 = gap left, +1 = gap top, -10 = no alignment
You don’t actually need first row and column
A C G T A 2
C
2
G
2
T
2
Find the optimal global alignment of AAG and GAAGGC. Use a gap penalty of d = -5.
1 , 1 j i F j i F , j i F , 1 1 , j i F
d d
j i y
x s ,
(contrast with the best local alignment)