Sequence Alignment: Lecture - 4
Sequence Alignment: Lecture - 4
Alignment
Lecture – 4
Create 2D Matrix
- Row x Col 2D matrix draw (Row , Col
Final Alignment
size of seq1 and seq2 respectively)
- Start from Cell (Row, Col)
- Place 2 seqs as Row and Column
- If then, place
Header
character in both seq
- Cell (0,0) = 0
- If or then
- Cell (0,1) to Cell (0,Column) and Cell
character in start seq & gap in end
(1,0) to Cell (Row,0) value = delete
seq
gap value from previous cell value
- For other cell values, follow
equation in (1)
Global Alignment (Needleman-Wunsch) -
Example
Input
- seq1 = AAAC
-AGC A G C
- seq2 = AGC
AAAC 0 -2 -4 -6
Scoring Scheme Final
δ(x, x) = 1 (Match)
δ(x,-) = -2 (Gap)
Alignment
A -2 1 -1 -3
δ(x, y) = -1 (Mis match)
A -4 -1 0 -2
A -6 -3 -2 -1
Eq. 1: Cell
Value
C -8 -5 -4 -1
Local Alignment (Smith-
Waterman)
3 Major Steps Trace back
-Create 2D Matrix - Start from each Cell which has the maximum
-Trace back value in the entire matrix
-Final Alignment - Go back up to the Cell where first time 0
occurs
Create 2D Matrix
- Row x Col 2D matrix draw (Row , Col
Final Alignment
size of seq1 and seq2 respectively)
- Start from each Cell with max value
- Place 2 seqs as Row and Column
- If then, place character in both seq
Header
- If or then character in start
- First Row, First Column all value = 0
seq & gap in end seq
- For other cell values, follow
equation in (2)
Local Alignment (Smith-Waterman) - Example
Input
- seq1 = AAAC
-AAG A A G
- seq2 = AAG
AAAC 0 0 0 0
Scoring Scheme Final
δ(x, x) = 1 (Match)
δ(x,-) = -2 (Gap)
Alignment
A 0 1 1 0
δ(x, y) = -1 (Mis match)
A 0 1 2 0
A 0 1 2 1
Eq. 2: Cell
Value
C 0 0 0 1
4. Multiple Sequence Alignment
Progressive, Iterative
Progressive Method
▹ Two major steps – Guide Tree build up
and Multiple Pairwise Alignment
▹ Steps
- Take each pair, align
- Generate consensus of that
alignment
- Align new sequence with the
consensus of the previous one
- Go back, Until all sequences are
finished
▹ Example
- Clustal ω
- MAFFT
- KALIGN
- T-COFFEE
Iterative Method
2 gm DNA
Can contain digital information of whole world
1.8 Meter
Long DNA is squeezed into a space of 0.09 µm
TO BE
CONT
INUED
Shocked?
Youtube Links
▹Global Alignment Part 1 - https://www.youtube.com/watch?v=vqxc2EfPWdk