Module Comparing Two Biological Sequences - Google Slides
Module Comparing Two Biological Sequences - Google Slides
Antibiotic 🡨 “a substance that kills bacteria” We will study Tyrocidine B1, an antibiotic produced by
Bacillus Brevis
Bioinformatics Algorithms: An Active Learning Approach. Edward Tatum Bioinformatics Algorithms: An Active Learning Approach. Edward Tatum
Copyright 2018 Compeau and Pevzner. Copyright 2018 Compeau and Pevzner.
Dodging the Dogma NRP Synthetase Adds One Amino Acid at a Time
Transcription Translation
DNA RNA Polymerase
RNA Ribosome
Protein
Bioinformatics Algorithms: An Active Learning Approach. Bioinformatics Algorithms: An Active Learning Approach.
Copyright 2018 Compeau and Pevzner. Copyright 2018 Compeau and Pevzner.
-AFDVSAGDFARA LLTGGQLIVCPNEVKMDPASLYAII KKYDITIFEATPALVIPLMEYIYEQKLDISQLQILIVGSDSCSMEDFKTLVSRFGSTIRIVNSYGVTEACIDS -AFDVSAGDFARA LLTGGQLIVCPNEVKMDPASLYAII KKYDITIFEATPALVIPLMEYI -YEQKLDISQ LQILIVGSDSCSME DFKTLVSRF GSTIRIVNSYGVTEACIDS
Bioinformatics Algorithms: An Active Learning Approach. Bioinformatics Algorithms: An Active Learning Approach.
Copyright 2018 Compeau and Pevzner. Copyright 2018 Compeau and Pevzner.
Red Positions Encode Conservative Core of A-domains
Blue Positions in A-domains Define Non-Ribosomal Code
YAFDLGYTCMFPV LLGGGELHIVQKETYTAPDEIAHYI KEHGITYIKLTPSLFHTIVNTASFAFDANFES LRLIVLGGEKIIPI DVIAFRKMY GHTE-FINHYGPTEATIGA YAFDLGYTCMFPVLLGGGELHIVQKETYTAPDEIAHYI KEHGITYIKLTPSLFHTIVNTASFAFDANFES LRLIVLGGEKIIPI DVIAFRKMY GHTE-FINHYGPTEATIGA
-AFDVSAGDFARA LLTGGQLIVCPNEVKMDPASLYAII KKYDITIFEATPALVIPLMEYI -YEQKLDISQ LQILIVGSDSCSME DFKTLVSRF GSTIRIVNSYGVTEACIDS -AFDVSAGDFARALLTGGQLIVCPNEVKMDPASLYAII KKYDITIFEATPALVIPLMEYI -YEQKLDISQ LQILIVGSDSCSME DFKTLVSRF GSTIRIVNSYGVTEACIDS
IAFDASSWEIYAP LLNGGTVVCIDYYTTIDIKALEAVF KQHHIRGAMLPPALLKQCLVSA ----PTMISSLEILFAAGDRLSSQ DAILARRAV GSGV-Y-NAYGPTENTVLS IAFDASSWEIYAPLLNGGTVVCIDYYTTIDIKALEAVF KQHHIRGAMLPPALLKQCLVSA ----PTMISSLEILFAAGDRLSSQ DAILARRAV GSGV-Y-NAYGPTENTVLS
Which positions are responsible for encoding different amino acids Asp, Orn, Val? LTKVGHIG Asp
VGEIGSID Orn
AWMFAAVL Val
Bioinformatics Algorithms: An Active Learning Approach. Bioinformatics Algorithms: An Active Learning Approach.
Copyright 2018 Compeau and Pevzner. Copyright 2018 Compeau and Pevzner.
Bioinformatics Algorithms: An Active Learning Approach. Bioinformatics Algorithms: An Active Learning Approach.
Copyright 2018 Compeau and Pevzner. Copyright 2018 Compeau and Pevzner.
A T G T T A T A A T G T T A T A
A T C G T C C A T C G T C C
+1 +1+1
Bioinformatics Algorithms: An Active Learning Approach. Bioinformatics Algorithms: An Active Learning Approach.
Copyright 2018 Compeau and Pevzner. Copyright 2018 Compeau and Pevzner.
The Alignment Game The Alignment Game
A T - G T T A T A A T - G T T A T A
A T C G T C C A T C G T C C
+1+1 +1+1 +1
Bioinformatics Algorithms: An Active Learning Approach. Bioinformatics Algorithms: An Active Learning Approach.
Copyright 2018 Compeau and Pevzner. Copyright 2018 Compeau and Pevzner.
A T - G T T A T A A T - G T T A T A
A T C G T C C A T C G T - C C
+1+1 +1+1 +1+1 +1+1
Bioinformatics Algorithms: An Active Learning Approach. Bioinformatics Algorithms: An Active Learning Approach.
Copyright 2018 Compeau and Pevzner. Copyright 2018 Compeau and Pevzner.
The Alignment Game The Alignment Game
A T - G T T A T A A T - G T T A T A
A T C G T - C C A T C G T - C - C
+1+1 +1+1 +1+1 +1+1
Bioinformatics Algorithms: An Active Learning Approach. Bioinformatics Algorithms: An Active Learning Approach.
Copyright 2018 Compeau and Pevzner. Copyright 2018 Compeau and Pevzner.
A T - G T T A T A A T - G T T A T A
A T C G T - C - C A T C G T - C - C
+1+1 +1+1 =4 +1+1 +1+1 =4
1st row: symbols of the 1st sequence (in order) interspersed by “-”
2nd row: symbols of the 2nd sequence (in order) interspersed by “-”
Bioinformatics Algorithms: An Active Learning Approach. Bioinformatics Algorithms: An Active Learning Approach.
Copyright 2018 Compeau and Pevzner. Copyright 2018 Compeau and Pevzner.
Longest Common Subsequence How Do We Compare Biological Sequences
• From Sequence Comparison to Biological Insights
• The Alignment Game and the Longest Common Subsequence
A T - G T T A T A • The Chandigarh Gedi route Problem
A T C G T - C - C • The Change Problem
Matches in alignment of two sequences (ATGT) form their • Dynamic Programming and Backtracking Pointers
Common Subsequence • From Chandigarh gedi route to the Alignment Graph
Longest Common Subsequence Problem: Find a longest • From Global to Local Alignment
common subsequence of two strings. • Penalizing Insertions and Deletions in Sequence Alignment
• Input: Two strings.
• Output: A longest common subsequence of these
strings.
Bioinformatics Algorithms: An Active Learning Approach. Bioinformatics Algorithms: An Active Learning Approach.
Copyright 2018 Compeau and Pevzner. Copyright 2018 Compeau and Pevzner.
Insights from the Most Boring City in India From Chandigarh to a Grid Graph
1 0 2 4 3
3 2 4 2
Chandigarh Gedi Problem: Find a longest path in a
rectangular city grid. 3 6 5 2 1
•Input: A weighted rectangular grid. Greedy 0 7 3 3
algorithm?
•Output: A longest path from the source to the sink in
the grid. 4 4 5 2 1
3 3 0 2
5 6 8 5 3
1 3 2 2
0
3 2 4 0 Search for Longest Paths in a Directed Graph
3 5 9
1 0 2 4 3
3 2 4 2
13
Longest Path in a Directed Graph Problem: Find a
3 6 5 2 1 longest path between two nodes in an edge-weighted
Greedy 0 7 3 3 directed graph.
algorithm? 15 19 • Input: An edge-weighted directed graph with
4 4 5 2 1 source and sink nodes.
3 3 0 2
• Output: A longest path from source to sink in
20 the directed graph.
5 6 8 5 3
1 3 2 2
23
Bioinformatics Algorithms: An Active Learning Approach.
Copyright 2018 Compeau and Pevzner.
Do You See a Connection between A T C G T C C
the “Chandigarh Gedi route” and the Alignment Game? A
?
alignment → path T
A T - G T T A T A
A T - G T T A T A A T C G T - C - C
G
A T C G T - C - C ↘ ↘ → ↘ ↘ ↓ ↘ ↓ ↘
↘ ↘ → ↘ ↘ ↓ ↘ ↓ ↘ T
T
A
T
A T C G T C C A T C G T C C
A A
? ?
alignment → path T path → alignment T
A T - G T T A T A A T G T T - A T A
A T C G T - C - C
G - - A T C G T C C
G
↘ ↘ → ↘ ↘ ↓ ↘ ↓ ↘ ↓ ↓ ↘ ↘ ↘ → ↘ ↘ ↘
T T
highest-scoring
T alignment T
=
A longest path in a A
Chandigarh gedi
T T
route
A A
A T C G T C C How Do We Compare Biological Sequences
How to build a A
“Chandigarh gedi • From Sequence Comparison to Biological Insights
route” for the T • The Alignment Game and the Longest Common Subsequence
Alignment Game • The Chandigarh Gedi Tourist Problem
and the G
• The Change Problem
Longest Common
Subsequence T • Dynamic Programming and Backtracking Pointers
Problem? • From Chandigarh Gedi route to the Alignment Graph
T
Diagonal red edges • From Global to Local Alignment
correspond to A • Penalizing Insertions and Deletions in Sequence Alignment
matching symbols
and have scores 1 T
A Bioinformatics Algorithms: An Active Learning Approach.
Copyright 2018 Compeau and Pevzner.
MinNumCoins(9)= ? MinNumCoins(9)= ?
Bioinformatics Algorithms: An Active Learning Approach. Bioinformatics Algorithms: An Active Learning Approach.
Copyright 2018 Compeau and Pevzner. Copyright 2018 Compeau and Pevzner.
Recursive Change Recursive Change
Given the denominations 6, 5, and 1, what is the minimum Given the denominations 6, 5, and 1, what is the minimum
number of coins needed to change 9 Rs? number of coins needed to change 9 cents?
money 1 2 3 4 5 6 7 8 9 10 11 12 money 1 2 3 4 5 6 7 8 9 10 11 12
MinNumCoins ? ? ? ? MinNumCoins ? ? ? ?
MinNumCoins(3)=
MinNumCoins(9-6)+1 = MinNumCoins(3)+1
MinNumCoins(4)=
MinNumCoins(8)=
?
MinNumCoins(9)= min{ MinNumCoins(9-5)+1 = MinNumCoins(4)+1
MinNumCoins(9-1)+1 = MinNumCoins(8)+1
Bioinformatics Algorithms: An Active Learning Approach. Bioinformatics Algorithms: An Active Learning Approach.
Copyright 2018 Compeau and Pevzner. Copyright 2018 Compeau and Pevzner.
Bioinformatics Algorithms: An Active Learning Approach. Bioinformatics Algorithms: An Active Learning Approach.
Copyright 2018 Compeau and Pevzner. Copyright 2018 Compeau and Pevzner.
Changing Money by Dynamic Programming Changing Money by Dynamic Programming
Hint. Wouldn’t it be nice to know all the values of Given the denominations 6, 5, and 1, what is the minimum
number of coins needed to change 9 cents?
MinNumCoins(money – coini)
money 0 1 2 3 4 5 6 7 8 9 10 11 12
by the time we need to compute
MinNumCoins 0 1 2 3 4 1 1 2 3 ?
MinNumCoins(money)?
Richard
Instead of the time-consuming calls: Bellman
RecursiveChange(money-coini, Coins, d)
we would simply look up the values of
MinNumCoins(money - coini)
Bioinformatics Algorithms: An Active Learning Approach. Bioinformatics Algorithms: An Active Learning Approach.
Copyright 2018 Compeau and Pevzner. Copyright 2018 Compeau and Pevzner.
Bioinformatics Algorithms: An Active Learning Approach. Bioinformatics Algorithms: An Active Learning Approach.
Copyright 2018 Compeau and Pevzner. Copyright 2018 Compeau and Pevzner.
How Do We Compare Biological Sequences 3 4
2 0
• From Sequence Comparison to Biological Insights
There are 1 0 2 4 3
• The Alignment Game and the Longest Common Subsequence only 2 ways
3 2 4 2
• The Chandigarh Gedi Tourist Problem to arrive to
• The Change Problem the sink:
by moving 3 6 5 2 1
• Dynamic Programming and Backtracking Pointers South ↓ 0 7 3 3
• From Chandigarh Gedi route to the Alignment Graph or by moving
East → 4 4 5 2 1
• From Global to Local Alignment
• Penalizing Insertions and Deletions in Sequence Alignment 3 3 0 2
5 6 8 5 3
South
1 3 2 2
or
Bioinformatics Algorithms: An Active Learning Approach. Bioinformatics Algorithms: An Active Learning Approach.
Copyright 2018 Compeau and Pevzner. Copyright 2018 Compeau and Pevzner. East?
South or East? 0
3 2 4 0
1 0 2 4 3
SouthOrEast(n,m)
if n=0 and m=0 3 2 4 2
1
return 0
4 6 5 2 1
if n>0 and m>0
0 7 3 3
x 🡨 SouthOrEast(n-1,m)+weight of edge “↓”into (n,m) 5
y 🡨 SouthOrEast(n,m-1)+ weight of edge “→”into (n,m) 4 4 5 2 1
return max{x,y} 3 3 0 2
return -infinity
5 6 8 5 3
1 3 2 2
Bioinformatics Algorithms: An Active Learning Approach. Bioinformatics Algorithms: An Active Learning Approach.
Copyright 2018 Compeau and Pevzner. Copyright 2018 Compeau and Pevzner.
3 2 4 0 3 2 4 0
0 3 5 9 9 0 3 5 9 9
South
1 0 2 4 3 or 1 0 2 4 3
3 2 4 2 East? 3 2 4 2
1 1 4
1+3 > 3+0
4 6 5 2 1 4 6 5 2 1
0 7 3 3 0 7 3 3
5 5
4 4 5 2 1 4 4 5 2 1
3 3 0 2 3 3 0 2
9 9
5 6 8 5 3 5 6 8 5 3
1 3 2 2 1 3 2 2
14 14
Bioinformatics Algorithms: An Active Learning Approach. Bioinformatics Algorithms: An Active Learning Approach.
Copyright 2018 Compeau and Pevzner. Copyright 2018 Compeau and Pevzner.
3 2 4 0 3 2 4 0
0 3 5 9 9 0 3 5 9 9
We arrived South
to (1,1) 1 0 2 4 3 or 1 0 2 4 3
by the bold
3 2 4 2 East? 3 2 4 2
edge: 1 4 1 4
5+0 < 4+6
3 4 6 5 2 1 4 6 5 2 1
4
0 7 3 3 0 7 3 3
5 5 10
4 4 5 2 1 4 4 5 2 1
3 3 0 2 3 3 0 2
9 9
5 6 8 5 3 5 6 8 5 3
1 3 2 2 1 3 2 2
14 14
Bioinformatics Algorithms: An Active Learning Approach. Bioinformatics Algorithms: An Active Learning Approach.
Copyright 2018 Compeau and Pevzner. Copyright 2018 Compeau and Pevzner.
3 2 4 0 3 2 4 0
0 3 5 9 9 0 3 5 9 9
We arrived
to (2,1) 1 0 2 4 3 1 0 2 4 3
by the bold
3 2 4 2 3 2 4 2
edge: 1 4 1 4
4 6 5 2 1 4 6 5 2 1
6
0 7 3 3 0 7 3 3
5 10 5 10
10
4 4 5 2 1 4 4 5 2 1
3 3 0 2 3 3 0 2
9 9 14
5 6 8 5 3 5 6 8 5 3
1 3 2 2 1 3 2 2
14 14 20
Bioinformatics Algorithms: An Active Learning Approach. Bioinformatics Algorithms: An Active Learning Approach.
Copyright 2018 Compeau and Pevzner. Copyright 2018 Compeau and Pevzner.
3 2 4 0 3 2 4 0
0 3 5 9 9 0 3 5 9 9
South South
or 1 0 2 4 3 or 1 0 2 4 3
East? 3 2 4 2 East? 3 2 4 2
1 4 7 1 4 7
5+2 > 4+2 5+2 > 4+2
4 6 5 2 1 4 6 5 2 1
0 7 3 3 0 7 3 3
5 10 5 10
4 4 5 2 1 4 4 5 2 1
3 3 0 2 3 3 0 2
9 14 9 14
5 6 8 5 3 5 6 8 5 3
1 3 2 2 1 3 2 2
14 20 14 20
Bioinformatics Algorithms: An Active Learning Approach. Bioinformatics Algorithms: An Active Learning Approach.
Copyright 2018 Compeau and Pevzner. Copyright 2018 Compeau and Pevzner.
3 2 4 0 3 2 4 0
0 3 5 9 9 0 3 5 9 9
1 0 2 4 3 1 2 4
Backtracking
3 2 4 2 pointers: 3 2
1 4 7 13 15 1 4 7 13 15
the best way
4 6 5 2 1 to get to 4 6
each node
0 7 3 3 7 3 3
5 10 17 20 24 5 10 17 20 24
4 4 5 2 1 4 4 5 2 1
3 3 0 2
9 14 22 22 25 9 14 22 22 25
5 6 8 5 3 5 6 8
1 3 2 2 2 2
14 20 30 32 34 14 20 30 32 34
Bioinformatics Algorithms: An Active Learning Approach. Bioinformatics Algorithms: An Active Learning Approach.
Copyright 2018 Compeau and Pevzner. Copyright 2018 Compeau and Pevzner.
Bioinformatics Algorithms: An Active Learning Approach. Bioinformatics Algorithms: An Active Learning Approach.
Copyright 2018 Compeau and Pevzner. Copyright 2018 Compeau and Pevzner.
Dynamic Programming Recurrence for the Dynamic Programming Recurrence for the
Alignment Graph Longest Common Subsequence Problem
si, j: the length of a longest path from (0,0) to (i,j) si, j: the length of a longest path from (0,0) to (i,j)
A T C G T C C A T C G T C C
A A
backtracking pointers backtracking pointers
for the Longest for the Longest
Common Subsequence
T Common Subsequence
T
A T C G T C C
3 2 4 0
0 3 5 9 9 A
What is the backtracking pointers
1 2 4 for the Longest
optimal T
Common Subsequence
alignment 1 3 4 7 13
2
15
path? G
4 6
7 3 3 T
5 10 17 20 24
4 4 5 2 1
T
9 14 22 22 25 A
5 6 8 T
2 2
14 20 30 32 34 A
LCSBACKTRACK(V, W)
for i0 to v
Si00
for j0 to [w
So.j0
for i 1 to
for j1 to w
Si-1,j
si - max Si,j-1
Si-1,j-1+1, if v; = wj
We now need to find a path from the source to the sink formed by the
if Si,j = Si-1.1 highlighted edges. The algorithm above solves the Longest Common
Backtracki,"" Subsequence Problem by using the information in Backtrack.
else if Si.j = Si,j-1
Backtracki,"" OUTPUTLCS(Backtrack, v, i, j) outputs an LCS between the i-prefix of v and
the j-prefix of w. The initial invocation that outputs an LCS of v and w is
else if Si,jSj-1,j-1+ 1
= and v; = Wj OUTPUTLCS(Backtrack, v, |v|, |w|)
Backtracki,j""
return Backtrack
IVNTASFAFDANFE-----S-LR-LIVLGG-----EKIIPIDVIAFRK-M---YGHTEFI---NHYGPTEATIGA
IPLMEYIY-----EQKLDISQLQILIV-GSDSCSME-----D---F-KTLVSRFGST--IRIVNSYGVTEACIDS To generalize the alignment scoring model, we still award +1 for
matches, but we also penalize mismatches by some positive
The frivolous matches hiding the real evolutionary scenario have appeared because constant µ (the mismatch penalty) and indels by some positive
nothing stopped us from introducing an excessive number of indels when building
constant s (the indel penalty). As a result, the score of an
an LCS. Recalling our original alignment game in which we rewarded matched sym-
bols, we need some way of penalizing indels and mismatches. First, let's handle indels.
alignment is equal to
Say that inaddition to assigning matches a premium of +1, we assess each indel a
penalty top-scoring alignment of the A-domains gets closer to the biologically
of -4. The
correct alignment, with six of the columns corresponding to correctly aligned signatures.
#matches − μ · #mismatches − σ ·
YAFDLGYTCMFP-VLL-GGGELHIV-QKETYTAPDEI-AHYIKEHGITYI-KLTPSLFHTIVNTASFAFDANFE
-AFDVS-AGDFARALLTGG-QL-IVCPNEVKMDPASLYA-IIKKYDIT-IFEATPAL--VIPLME-YIYEQKLD
#indels
-S-LR-LIVLGGEKIIPIDVIAFRKM---YGHTE-FINHYGPTEATIGA
ISQLQILIV-GSDSC-SME--DFKTLVSRFGSTIRIVNSYGVTEACIDS
Bioinformatics Algorithms: An Active Learning Approach.
Copyright 2018 Compeau and Pevzner.
Biologists have further refined this cost function to allow for the fact that some
Mismatches and Indel Penalties mutations may be more likely than others, which calls for mismatches and indel
penalties that differ depending on the specific symbols involved. We will extend the
k-letter alphabet to include the space symbol and then construct a (k + 1) ⇥ (k + 1)
#matches − 3 · #mismatches − 2 · #indels scoring matrix Score holding the score of aligning every pair of symbols. The scoring
matrix for comparing DNA sequences (k = 4) when all mismatches are penalized by µ
A T - G T T A T A and all indels are penalized by s is shown below.
A T C G T - C – C
+1+1-2+1+1-2-3-2-3=-7 A C G T −
A +1 −μ −μ −μ -σ
C −μ +1 −μ −μ -σ
G −μ −μ +1 −μ -σ
T −μ −μ –μ +1 -σ
− -σ -σ -σ -σ
Scoring matrix
Although scoring matrices for DNA sequence comparison are usually defined only
by the parameters µ and s, Scoring Matrices for Amino Acid Sequences
Y (Tyr) often mutates into F (score +7)
but rarely mutates into P (score -5)
-5 7
scoring matrices for protein sequence comparison weight
different mutations differently and become quite involved
Bioinformatics Algorithms: An Active Learning Approach.
Copyright 2018 Compeau and Pevzner.
Dynamic Programming Recurrence for the Dynamic Programming Recurrence for the
Alignment Graph Alignment Graph
si-1, j - σ
si-1, j + weight of edge “↓” into (i,j)
si, j-1 - σ
si, j= max { si, j-1 + weight of edge “→” into (i,j) si, j= max { si-1, j-1 + 1, if vi=wj
si-1, j-1+ weight of edge “↘” into (i,j)
si-1, j-1 - μ, if vi≠wj
Bioinformatics Algorithms: An Active Learning Approach. Bioinformatics Algorithms: An Active Learning Approach.
Copyright 2018 Compeau and Pevzner. Copyright 2018 Compeau and Pevzner.
Dynamic Programming Recurrence for the Global Alignment
Alignment Graph
Global Alignment Problem: Find the highest-scoring
si-1, j + score(vi,-)
alignment between two strings by using a scoring matrix.
si, j= max { si, j-1 + score(-,wj)
si-1, j-1+ score(vi,wj) • Input: Strings v and w as well as a matrix score.
Homeobox Genes
Which Alignment is Better?
• Two genes in different species
may be similar over short • Alignment 1: score = 22 (matches) - 20 (indels)=2.
conserved regions and dissimilar
over remaining regions. GCC-C-AGT--TATGT-CAGGGGGCACG--A-GCATGCAGA-
GCCGCC-GTCGT-T-TTCAG----CA-GTTATG--T-CAGAT
• Homeobox genes have a short
region called the homeodomain
that is highly conserved among • Alignment 2: score = 17 (matches) - 30 (indels)=-13.
species.
• A global alignment may not find the ---G----C-----C--CAGTTATGTCAGGGGGCACGAGCATGCAGA
homeodomain because it would try to GCCGCCGTCGTTTTCAGCAGTTATGTCAG-----A------T-----
align the entire sequence.
Bioinformatics Algorithms: An Active Learning Approach. Bioinformatics Algorithms: An Active Learning Approach.
Copyright 2018 Compeau and Pevzner. Copyright 2018 Compeau and Pevzner.
Which Alignment is Better? G
G C C G C C G T C G T T T T C A G C A G T T A T G T C A G A T
C
C
Bioinformatics Algorithms: An Active Learning Approach. Bioinformatics Algorithms: An Active Learning Approach.
Copyright 2018 Compeau and Pevzner. Copyright 2018 Compeau and Pevzner.
G
G C C G C C G T C G T T T T C A G C A G T T A T G T C A G A T
Local Alignment
C
C
C
A
G
T
T
A
T
G
T
C
A
G
G Global alignment
G
G
G
C
A
C
G
A
G
C
A
T
G
C
A
C
A
Bioinformatics Algorithms: An Active Learning Approach. Bioinformatics Algorithms: An Active Learning Approach.
Copyright 2018 Compeau and Pevzner. Copyright 2018 Compeau and Pevzner.
Local Alignment= Global Alignment in a Subrectangle Local Alignment Problem
Bioinformatics Algorithms: An Active Learning Approach. Bioinformatics Algorithms: An Active Learning Approach.
Copyright 2018 Compeau and Pevzner. Copyright 2018 Compeau and Pevzner.
to find the longest path connecting every pair of nodes in the alignment graph A
T Then you could reach the starting
(rather than just those connecting the source and sink, as in the Global G
T
node of the conserved interval for
free, instead of incurring heavy
Alignment Problem), and then to select the path having maximum weight over
C
A penalties as in global alignment -you
all these longest paths.
G
travel along the conserved interval to its
G
G end node, accumulating positive match
G scores and fewer penalties. Finally, you
Calculate the runtime of this approach? G
take another free ride from the end
C
A node of the conserved interval to the
C sink. The resulting score of this ride is
G
A equal to the alignment score of only the
G conserved intervals, as desired.
C
A
T Problem with the "free rides" idea is that
G we don’t know in advance where the
C local alignment starts and ends!
A
C
A
GCC−C−AGT−TATGT-CAGGGGGCACG−−A−GCATGCACA −−−G−−−−C−−−−−C−− CAGTTATGTCAGGGGGCACGAGCATGCACA
- GCCGCCGTCGTTTTCAG CAGTTATGTCAG−−−−−A−−−−−−T −−−−
GCCGCC−GTCGT-T-TTCAG----CA−GTTATG−T−CAGA Local alignment
T
Global alignment
What Do Free Ola Rides Mean in the Terms of the Alignment Graph? Building gedi route for the Local Alignment Problem
Dynamic Programming for the Local Alignment Dynamic Programming for the Local Alignment
weight of edge from (0,0) to (i,j) 0
si-1, j + weight of edge “↓” into (i,j) si-1, j + weight of edge “↓” into (i,j)
si, j= max { si, j-1 + weight of edge “→” into (i,j) si, j= max { si, j-1 + weight of edge “→” into (i,j)
si-1, j-1+ weight of edge “↘” into (i,j) si-1, j-1+ weight of edge “↘” into (i,j)
Bioinformatics Algorithms: An Active Learning Approach. Bioinformatics Algorithms: An Active Learning Approach.
Copyright 2018 Compeau and Pevzner. Copyright 2018 Compeau and Pevzner.
Modelling Affine Gap Penalties by Long Edges Building Gedi route with Affine Gap Penalties
σ+ε∙2
σ+ε σ+ε
loweri-1,j - ε σ
upper level loweri,j = max {
middlei-1,j - σ 0
bottom level (deletions) σ upperi,j-1 - ε
(insertions) upperi,j = max {
middlei,j-1 - σ
Bioinformatics Algorithms: An Active Learning Approach. Bioinformatics Algorithms: An Active Learning Approach.
Copyright 2018 Compeau and Pevzner. Copyright 2018 Compeau and Pevzner.
Percent Accepted Mutation
Scoring Matrices
(PAM or Dayhoff) Matrices
By Margaret Dayhoff in 1978
Amino acid substitutions were estimated using:
– Alignment of common protein sequences
Protein scoring matrices – PAM and BLOSUM – 1572 amino acid substitutions/changes in 71 groups of protein which are at least 85%
similar
“Because these changes are observed in closely related proteins, they represent amino
acid substitutions that do not significantly change the function of the protein. Hence they
are called "accepted mutations," defined as amino acid changes "accepted" by natural
selection.”
Scoring Matrices for Amino acids Scoring Matrices for Nucleic acids
• PAM (Percent Accepted Mutation) / MDM (Mutation Data Matrix ) / Dayhoff Two mutation models:
– Derived from global alignments of closely related sequences. – Jukes-Cantor Model of evolution: alpha = common rate of base substitution
– Matrices for greater evolutionary distances are extrapolated from lesser ones.
– The number with the matrix (PAM40, PAM100) refers to the evolutionary distance; – Kimura Model of Evolution: alpha = rate of transitions; beta= rate of transversions
greater numbers are greater distances. • Transitions (No change in ring size Pyrimidine to Pyrimidine, Purine to Purine)
– PAM-1 corresponds to about 1 million years of evolution • Transversions (Change in ring size Purine to Pyrimidine)
When comparing closely related proteins one should use lower PAM or higher BLOSUM
matrices, For distantly related proteins higher PAM or lower BLOSUM matrices.
Scoring Matrices for Nucleic acids Drawbacks of DP
Two mutation models: Guaranteed optimal alignment between 2 sequences
– Jukes-Cantor Model of evolution: alpha = common rate of base substitution
given a scoring scheme.
– Kimura Model of Evolution: alpha = rate of transitions; beta= rate of transversions
• Transitions (No change in ring size Pyrimidine to Pyrimidine, Purine to Purine)
• Transversions (Change in ring size Purine to Pyrimidine) 2 main drawbacks are
Rate of transitions > transversions compute - O(n2) and O(n3)
memory intensive - O(n2) space
Bioinformatics Algorithms: An Active Learning Approach. Bioinformatics Algorithms: An Active Learning Approach.
Copyright 2018 Compeau and Pevzner. Copyright 2018 Compeau and Pevzner.
Where Is the Cystic Fibrosis Gene? Where Is the Cystic Fibrosis Gene?
• In the late 1980s, biologists • In the late 1980s, biologists
narrowed the search for the CF gene narrowed the search for the CF gene
to a small region on chromosome 7. to a small region on chromosome 7.
• One of these genes was similar to • One of these genes was similar to
ATP binding proteins that act as ATP binding proteins that act as
transport channels responsible for Chromosome 7 transport channels responsible for
secretion. secretion.
• Hint: cystic fibrosis involves sweet • Hint: cystic fibrosis involves sweet
secretion with abnormally high secretion with abnormally high
sodium levels. sodium levels.
CFTR: Cystic Fibrosis Transmembrane Conductance Regulator What is the most prevalent genetically
inherited disease in India? (In course)
The CFTR protein controls the flow of
ions in and out of cells inside the lungs [Link]
[Link]
sicklecellanemia
[Link]