






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!







genomic DNA sequence.Example: a shared common domain of two protein sequences; extended sections of
Sensitive to detect similarity in highly diverged sequences.
recurrence rules.Algorithm: similar to global alignment with modified boundary conditions and
The top row and left column are now filled with 0.
If the (sub-)alignment score becomes negative, restart the search:
i, j
max
i −
, j
s ( x
i , y
j ) ,
i −
, j
d,
i, j
d.
Traceback: from the maximum of
i, j
in the whole matrix
to the first 0.
AWGHE::AW-HE.Example: the optimal local alignment between HEAGAWGHEE and PAWHEAE is
Issue: In gapped alignments, the expected score for a random match may be positive.
Example: repeated domains in proteins.
the other.Asymetric alignment: finding multiple (non-overlapping) matches of one sequence in
We want each match’s score to be greater than
(^). The alignment score is the sum of
the match scores substracted by
score
alignment
∑
i ( score
match
i )
−
Boundary conditions:
i,
(^) 0) =
max
F ( i − 1 ,
i −
, j
T, j
, ..., m
Recurrence rules:
i, j
max
i,
i −
, j
s ( x
i , y
j ) ,
i −
, j
d,
i, j
d.
i,
y
1 ..m
to
x
1 ...
( i −
.
sequence may overlap the other, partially or completely.Example: when comparing fragments of genomic DNA sequence to each other, one
from the top or left border of the matrix, and finishes on the right or bottom border.This is similar to global alignment, except for overhaning ends. An alignment will start
Boundary conditions:
i, j
) = 0 if
i
= 0 or
j
Recurrence rules like those of the global alignment.
Repeat version:
i,
max
i
−
i
−
, j
) − T ; j = m
if
i
≤
n,
otherwise
j
= 1
..m
i, j
max
i
−
, j
s ( x
i (^) , y
j ) ,
i
−
, j
d,
i, j
d.
Variants can be formulated by changing boundary conditions and recurrence rules.
Example 1: to find mutiple matches of
y
that appear in tandem copies, we use
recurrence rules in the previous slide with a slight modification.
i,
max
i
−
s ( x
i , y
1 ) ,
i
−
, n
s ( x
i (^) , y
1 ) ,
i
−
d,
i,
d.
postprocess the results.practice, people use good implementations available for a few standard cases thenIdeally, we should be able to use algorithm designed with specific prior knowledge. In
2
i, j
), or
x ( i, j
), or
y ( i, j
) is respectively the best score given that
x i
is aligned to
y j , or
x
i
to a gap, or
y j
to a gap.
The recurrence rules:
i, j
max
i
−
, j
s ( x i (^) , y
j ) ,
I x ( i − 1
, j
s ( x
i , y
j ) ,
I y ( i − 1
, j
s ( x i (^) , y
j );
x ( i, j
max
i
−
, j
d,
I x ( i − 1
, j
e ;
y ( i, j
max
i, j
d,
y ( i, j
e.
true ifImplicit assumption: a deletion won’t be followed directly by an insertion. Generally
d
e
lowest mismatch score.
be turned into a HMM!The recurrence rules can be simulated by a finite state automation (FSA), which can
Simple to achieve if only maximal score is needed.
To find the optimal global alignment:
divide and conquer
principle.
Let
u
2 n (^)
and
v
be the row such that the cell (
u, v
) is on the optimal alignment.
Split the DP matrix into 2 smaller submatrices: one from (
u, v
), one from
u, v
) to (
n, m
O Recursively split down until the submatrices are small enough for using standard
n
2 ) DP procedure.
Runtime still
n
2 ).
Way to find
v : keep tracks of
c ( i, j
) such that
c ( i, j
v
for
i > u
. If the cell (
i ′ , j
′ )
precedes (
i, j
), set
c ( i, j
j
′
if
i
=
u
, else
c
( i, j
c ( i ′ , j
′ ).
x, y
) increases with
′
. If we fixed the prior log-odds ratio
log
( P^ (^) ( M
(^) )
P (^) ( R ) ) , we only
need to maximize
′ .
∑ i
log
p x i y i
q x i q y i
The substitution matrix contains the log likelihood ratio of residue pair (
a, b
) being
related as opposed to being unrelated:
s ( a, b
log
p ab
q a q b (^) )
p ab
tends to background frequency
q a q b , so scores should
correspond to expected divergence of the sequences.
Common matrices PAM and BLOSUM take the difficulties into account.
number of queries. Changing the ratio can corrigate this probability.match. When the ratio is fixed, the probability of finding a match increases with thePrior odds ratio becomes important when searching database for a possible significant