































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!
































Each column is scored by summing thescores of all pairs of symbols in thatcolumn.
-^
E.g., match = 1, a mismatch = -1, gap = -2^ I - I V
= score(I,-) + score(I, I) +score(I,V) + score(-,I) + score (-,V) + score(I,V)= -2 + 1 + -1 + -2 + -2 + -1 = -
Used dynamic programming
-^
If two length n sequences: (n+1) x (n+1) array
-^
Fill out each box in the array by considering whathappens in the last column^ – 3 choices: align last letters from both sequences, align
last letter from 1
st^
sequence with gap, align last letter
from 2
nd
sequence with gap
2 ) algorithm
solutions If have
k
sequences of length
n
, array is of size
(n+1)
k
In considering last column, have 2
k- 1 choices
letter from one sequence and gaps in all others, etc.
Running time is exponential in the number ofsequences!
-^
Impractical … MSA packages use
heuristics
Merge using
Merge using
Merge using
alignments
alignments
alignments
with 1
st^ sequence
with 3
rd^ sequence
with 2
nd^
sequence
-acg---cgagac--
--acgcga---gac-
acg---cga---gac
1&2^ Order of merging matters! Note once a gap, always a gap …
1&
2&
Given
k
sequences, determine all pairwise global
alignments
-^
Use pairwise alignments to determine distancesbetween pairs of sequences^ – E.g., sequences QKLMN & KLVN, alignment is:
QKLMN-KLVN
Distance= # mismatches / #cols with no gaps
Underestimate
of actual distance!
Globintype
1
2
3
4
5
6
7
Hbb_human
1
Hbb_horse
2
.
Hba_human
3
.
.
Hba_horse
4
.
.
.
Myg_whale
5
.
.
.
.
Cyng_lamprey
6
.
.
.
.
.
Lgb_lupus
7
.
.
.
.
.
.
-distancesbetween 0and 1-smallerdistances,closer seqs
-^
Alignment 1:
ATACCA
Alignment 2:
TCAFETAT-ETATF-AGTFD
Score 1
st^
column of 1
st^ alignment against 2
nd^
column in the other alignments using:
= 1/8(score(A,C) + score(A,A) + score(A,A) + score(A,G) +score(C,C) + score(C,A) + score(C,A) + score
(C,G))