SlideShare a Scribd company logo
6
Most read
7
Most read
9
Most read
MARYAM BIBI
FA12-BTY-011
TOPIC : DYNAMIC PROGRAMING
SUBJECT : BIOINFIRMATICS
Alignment
used to uncover homologies between sequences
combined with phylogenetic studies
can determine orthologous and paralogous
relationships
Global Alignments
compares one whole sequence with other entire
sequence
computationally expensive
Local Alignment
uses a subset of a sequence and attempts to align it
to subset of other sequences
computationally less expensive
Dynamic Programming:
dynamic programing is solving complex
prblems by breaking them into a simpler
subproblems.
Problem can be divided into many smaller
parts.
Needleman and Wunsch were the first to
propose this method.
Needleman and Wunsch describes general
algorithm for sequence aignment.
Maximize a score of similarity to give maximun
match.
Maximun match= largest number of nucleotides
that can be match with others.
That want to quantify sequence similarity
between two sequences.
Dynamic programming in bioinformatics
Dynamic programming is widely used in
bioinformatics for the tasks such as sequence
alignment, protein folding, RNA structure
prediction and protein-DNA binding.
First dynamic programming algorithms for
protein-DNA binding were developed in the 1970s
independently by Charles Delisi in USA
and Georgii Gurskii and Alexanderr
zasedatelev in USSR.
Dynamic Programming in sequence alignment
There are three steps in dynamic programing.
1. initialization.
The first step in the global alignment dynamic programming
approach is to create a matrix with M + 1 columns and N + 1
rows where M and N correspond to the size of the sequences to
be aligned.
2. Matrix filling(scoring)
We fill the matrix with highest possible score.
To align with diagnol ( align in next position.)
Allign in off-diagonal requires inserion of crossponding gaps
3. Traceback and aligning
Move from last corner and follow arrow.
Global alignment via dynamic programing
1st column and 1st row will be empty.
Fill 1st block with zero
Then fill 1st row and 1st coulmn with gap penality multiples.
While filling the matrix there are three possible values
 horizental: score+ gap penality
 Verticle: score+ gap penality
 Diagonal: score+(match/mismatch)
We have to write max score from these values in a
cell
Let ,
match = + 1
mismatch= -1
gap penality= -2
Lets
Seq# 1 A A A C
Seq# 2 A G C -
A A T C
0 -2 -4 -6 -8
A -2
( 1) ( -4)
1
(-4)
-1 -6
-1
-1
-3 -5
G -4
-1 0 -2 -4
C -6
-3 -2 -1 -1
Backward tracking
In backward tracking we have to move
from last cell( lower corner) and follows
arrow from which cell the current cell’s
values come from and go ahead.
A A T C
0 -2 -4 -6 -8
A -2 1 -1 -3 -5
G -4
-1 0 -2 -4
C -6
-3 -2 -1 -1
A A T C
0 -2 -4 -6 -8
A -2 1 -1 -3 -5
G -4
-1 0 -2 -4
C -6
-3 -2 -1 -1
Path 1
Path 2
Backtracking
Now we have to allign this sequence.
For alligning there are 2 rules.
1. If the value come from column we will have
to write two sequences
2. If value come from horizontal or vertical
then we will have to write perpendicular
and add gap to other side.
Backtracking
Here we have two paths. So we will get two
possible sequences.
We will write sequence from 3’-end.
Path 1:
Seq#1 A A T C
Seq#2 - A G C
Backtracking
Path 2
Seq# 1 A A T C
Seq# 2 A G - C
Hense , we do global allignment in this way.
Local alignment via dynamic programing
Algorithim is same as in global alignment,
but there are some changes.
We fill 1st column and 1st row with zero.
If the value comes in negative number than
it is replaced by zero.
Backtracking will be start from maximun
value.
Local alignment
Let,
Match = 1
Mismatch = 0
Gap penality= 0
And sequence#1 GAATTCAGTTA
Squence#2 GGATCGA
G A A T T C A G T T A
0 0 0 0 0 0 0 0 0 0 0 0
G 0 1 1 1 1 1 1 1 1 1 1 1
G 0 1 1 1 1 1 1 1 2 2 2 2
A 0 1 2 2 2 2 2 2 2 2 2 3
T 0 1 2 2 3 3 3 3 3 3 3 3
C 0 1 2 2 3 3 4 4 4 4 4 4
G 0 1 2 2 3 3 4 4 5 5 5 5
A 0 1 2 3 3 3 3 4 5 5 5 6
Bactracking
After the matrix fill step, the maximum alignment
score for the two test sequences is 6. The traceback
step determines the actual alignment(s) that result
in the maximum score.
G A A T T C A G T T A
0 0 0 0 0 0 0 0 0 0 0 0
G 0 1 1 1 1 1 1 1 1 1 1 1
G 0 1 1 1 1 1 1 1 2 2 2 2
A 0 1 2 2 2 2 2 2 2 2 2 3
T 0 1 2 2 3 3 3 3 3 3 3 3
C 0 1 2 2 3 3 4 4 4 4 4 4
G 0 1 2 2 3 3 4 4 5 5 5 5
A 0 1 2 3 3 3 3 4 5 5 5 6
Backtracking
Rule will be same for this as in global
alignment
Sequence alignment :
Seq#1 G A A T T C A G T TA
Seq#2 G A - T C – G - - A
So in this way we align the sequence using
dynamic programing.

More Related Content

What's hot (20)

PPTX
Sequence alignment global vs. local
benazeer fathima
 
PPTX
Introduction OF BIOLOGICAL DATABASE
PrashantSharma807
 
PPTX
Needleman-wunch algorithm harshita
Harshita Bhawsar
 
PPTX
Swiss prot database
sagrika chugh
 
PPTX
Secondary protein structure prediction
Siva Dharshini R
 
PPTX
Scoring matrices
Ashwini
 
PPTX
BLAST
Anushi Jain
 
PPTX
BLAST (Basic local alignment search Tool)
Ariful Islam Sagar
 
PDF
Sequence alignment
Vidya Kalaivani Rajkumar
 
PPTX
Biological database
Iqbal college Peringammala TVM
 
PPTX
DNA data bank of japan (DDBJ)
ZoufishanY
 
PPTX
Sequence alig Sequence Alignment Pairwise alignment:-
naveed ul mushtaq
 
PPTX
BLAST AND FASTA.pptx
PiyushBehgal1
 
PPTX
PAM : Point Accepted Mutation
Amit Kyada
 
PPTX
Protein 3 d structure prediction
Samvartika Majumdar
 
PPTX
Entrez databases
Hafiz Muhammad Zeeshan Raza
 
PPTX
Cath
Ramya S
 
PPTX
Protein database
Rajpal Choudhary
 
PPTX
Blast and fasta
ALLIENU
 
PPTX
blast bioinformatics
Sardar Harpreet Kalsi
 
Sequence alignment global vs. local
benazeer fathima
 
Introduction OF BIOLOGICAL DATABASE
PrashantSharma807
 
Needleman-wunch algorithm harshita
Harshita Bhawsar
 
Swiss prot database
sagrika chugh
 
Secondary protein structure prediction
Siva Dharshini R
 
Scoring matrices
Ashwini
 
BLAST (Basic local alignment search Tool)
Ariful Islam Sagar
 
Sequence alignment
Vidya Kalaivani Rajkumar
 
Biological database
Iqbal college Peringammala TVM
 
DNA data bank of japan (DDBJ)
ZoufishanY
 
Sequence alig Sequence Alignment Pairwise alignment:-
naveed ul mushtaq
 
BLAST AND FASTA.pptx
PiyushBehgal1
 
PAM : Point Accepted Mutation
Amit Kyada
 
Protein 3 d structure prediction
Samvartika Majumdar
 
Entrez databases
Hafiz Muhammad Zeeshan Raza
 
Cath
Ramya S
 
Protein database
Rajpal Choudhary
 
Blast and fasta
ALLIENU
 
blast bioinformatics
Sardar Harpreet Kalsi
 

Viewers also liked (20)

PPTX
Dynamic Programming
Sahil Kumar
 
PPTX
Dynamic Programming
paramalways
 
PPT
Dynamic programming
Shakil Ahmed
 
PPT
Lecture 8 dynamic programming
Oye Tu
 
PPT
Dynamic programming
Gopi Saiteja
 
PPTX
Dynamic programming
Melaku Bayih Demessie
 
PPT
Dynamic pgmming
Dr. C.V. Suresh Babu
 
PPT
Pairwise sequence alignment
avrilcoghlan
 
PPTX
Dynamic programming Basics
Kvishnu Dahatonde
 
PDF
Dynamic programing 2
mansab MIRZA
 
PPT
Sequence alignments complete coverage
Prasanthperceptron
 
PPTX
Applying Hidden Markov Models to Bioinformatics
butest
 
PDF
DP
Subba Oota
 
PPTX
Elements of dynamic programming
Tafhim Islam
 
PPT
Mba i qt unit-1.3_linear programming in om
Rai University
 
PPTX
Daa:Dynamic Programing
rupali_2bonde
 
PPT
5.3 dynamic programming
Krish_ver2
 
PPTX
Sequence alignment
Arindam Ghosh
 
PPTX
Dynamic programming class 16
Kumar
 
PPTX
Global alignment
Pinky Vincent
 
Dynamic Programming
Sahil Kumar
 
Dynamic Programming
paramalways
 
Dynamic programming
Shakil Ahmed
 
Lecture 8 dynamic programming
Oye Tu
 
Dynamic programming
Gopi Saiteja
 
Dynamic programming
Melaku Bayih Demessie
 
Dynamic pgmming
Dr. C.V. Suresh Babu
 
Pairwise sequence alignment
avrilcoghlan
 
Dynamic programming Basics
Kvishnu Dahatonde
 
Dynamic programing 2
mansab MIRZA
 
Sequence alignments complete coverage
Prasanthperceptron
 
Applying Hidden Markov Models to Bioinformatics
butest
 
Elements of dynamic programming
Tafhim Islam
 
Mba i qt unit-1.3_linear programming in om
Rai University
 
Daa:Dynamic Programing
rupali_2bonde
 
5.3 dynamic programming
Krish_ver2
 
Sequence alignment
Arindam Ghosh
 
Dynamic programming class 16
Kumar
 
Global alignment
Pinky Vincent
 
Ad

Similar to Dynamic programming (20)

PDF
02-alignment.pdf
SivaAyyappan2
 
PPTX
5. Global and Local Alignment Algorithms.pptx
ArupKhakhlari1
 
PPTX
DYNAMIC PROGRAMMING, Bioinformatics.pptx
PraisePedzai
 
PDF
Swaati algorithm of alignment ppt
Swati Kumari
 
PDF
The Needleman-Wunsch Algorithm for Sequence Alignment
Parinda Rajapaksha
 
PDF
PCB_Lect02_Pairwise_allign (1).pdf
ssusera1eccd
 
PPTX
Sequence alignment unit 3
gyanikashukla
 
PPT
Needleman wunsch computional ppt
tarun shekhawat
 
PPTX
Dynamic Programming: Smith-Waterman
Rohan Prakash
 
PPTX
Global and local alignment (bioinformatics)
Pritom Chaki
 
PDF
sequence alignment
ammar kareem
 
PPT
Seq alignment
Nagendrasahu6
 
PDF
Ch06 alignment
BioinformaticsInstitute
 
PPTX
Global and local alignment in Bioinformatics
Mahmudul Alam
 
PPT
B.sc biochem i bobi u 3.1 sequence alignment
Rai University
 
PPT
B.sc biochem i bobi u 3.1 sequence alignment
Rai University
 
PPT
20100515 bioinformatics kapushesky_lecture07
Computer Science Club
 
PPT
lecture4.ppt Sequence Alignmentaldf sdfsadf
alizain9604
 
PPT
seq alignment.ppt
AmandeepKaur836413
 
PDF
Sequence-analysis-pairwise-alignment.pdf
sriaisvariyasundar
 
02-alignment.pdf
SivaAyyappan2
 
5. Global and Local Alignment Algorithms.pptx
ArupKhakhlari1
 
DYNAMIC PROGRAMMING, Bioinformatics.pptx
PraisePedzai
 
Swaati algorithm of alignment ppt
Swati Kumari
 
The Needleman-Wunsch Algorithm for Sequence Alignment
Parinda Rajapaksha
 
PCB_Lect02_Pairwise_allign (1).pdf
ssusera1eccd
 
Sequence alignment unit 3
gyanikashukla
 
Needleman wunsch computional ppt
tarun shekhawat
 
Dynamic Programming: Smith-Waterman
Rohan Prakash
 
Global and local alignment (bioinformatics)
Pritom Chaki
 
sequence alignment
ammar kareem
 
Seq alignment
Nagendrasahu6
 
Ch06 alignment
BioinformaticsInstitute
 
Global and local alignment in Bioinformatics
Mahmudul Alam
 
B.sc biochem i bobi u 3.1 sequence alignment
Rai University
 
B.sc biochem i bobi u 3.1 sequence alignment
Rai University
 
20100515 bioinformatics kapushesky_lecture07
Computer Science Club
 
lecture4.ppt Sequence Alignmentaldf sdfsadf
alizain9604
 
seq alignment.ppt
AmandeepKaur836413
 
Sequence-analysis-pairwise-alignment.pdf
sriaisvariyasundar
 
Ad

More from Zohaib HUSSAIN (20)

PPTX
Programmed Assembly of Synthetic Protocells into Thermoresponsive Prototissues
Zohaib HUSSAIN
 
PPTX
Bone Tissue Engineering
Zohaib HUSSAIN
 
PPTX
Large-scale Production of Stem Cells Utilizing Microcarriers
Zohaib HUSSAIN
 
PPTX
Burn Dressings
Zohaib HUSSAIN
 
PPTX
Characterization of Supramolecular Polymers
Zohaib HUSSAIN
 
PPTX
Translation Initiation in Eukaryotes
Zohaib HUSSAIN
 
PPTX
Mitochondrial Respiratory Complex
Zohaib HUSSAIN
 
PDF
How to Convert XRD, FTIR File Data to Word Table in Order to Draw Plot on Ori...
Zohaib HUSSAIN
 
PPTX
Abortion A Rising Issue In Medical Health Care Technology
Zohaib HUSSAIN
 
PPTX
PHOTOSYNTHESIS: What we have learned so far?
Zohaib HUSSAIN
 
DOCX
Industrial Production of Insulin
Zohaib HUSSAIN
 
PPTX
Oxidation & Reduction involves electron transfer & How enzymes find their sub...
Zohaib HUSSAIN
 
DOCX
Cellulase (Types, Sources, Mode of Action & Applications)
Zohaib HUSSAIN
 
DOCX
Amylases (Types, Sources, Mode of Action & Applications)
Zohaib HUSSAIN
 
DOCX
Life on Earth (By Alonso Ricardo and Jack W. Szostak) Summary (By Zohaib Hus...
Zohaib HUSSAIN
 
PPTX
Layout of the Cell Culture Room
Zohaib HUSSAIN
 
DOCX
Eukaryotic Gene Regulation: Detailed Review
Zohaib HUSSAIN
 
DOCX
Telomere, Functions & Role in Aging & Cancer
Zohaib HUSSAIN
 
DOCX
Eukaryotic and Prokaryotic Chromosomes
Zohaib HUSSAIN
 
DOCX
Chromosome: A Complete Overview
Zohaib HUSSAIN
 
Programmed Assembly of Synthetic Protocells into Thermoresponsive Prototissues
Zohaib HUSSAIN
 
Bone Tissue Engineering
Zohaib HUSSAIN
 
Large-scale Production of Stem Cells Utilizing Microcarriers
Zohaib HUSSAIN
 
Burn Dressings
Zohaib HUSSAIN
 
Characterization of Supramolecular Polymers
Zohaib HUSSAIN
 
Translation Initiation in Eukaryotes
Zohaib HUSSAIN
 
Mitochondrial Respiratory Complex
Zohaib HUSSAIN
 
How to Convert XRD, FTIR File Data to Word Table in Order to Draw Plot on Ori...
Zohaib HUSSAIN
 
Abortion A Rising Issue In Medical Health Care Technology
Zohaib HUSSAIN
 
PHOTOSYNTHESIS: What we have learned so far?
Zohaib HUSSAIN
 
Industrial Production of Insulin
Zohaib HUSSAIN
 
Oxidation & Reduction involves electron transfer & How enzymes find their sub...
Zohaib HUSSAIN
 
Cellulase (Types, Sources, Mode of Action & Applications)
Zohaib HUSSAIN
 
Amylases (Types, Sources, Mode of Action & Applications)
Zohaib HUSSAIN
 
Life on Earth (By Alonso Ricardo and Jack W. Szostak) Summary (By Zohaib Hus...
Zohaib HUSSAIN
 
Layout of the Cell Culture Room
Zohaib HUSSAIN
 
Eukaryotic Gene Regulation: Detailed Review
Zohaib HUSSAIN
 
Telomere, Functions & Role in Aging & Cancer
Zohaib HUSSAIN
 
Eukaryotic and Prokaryotic Chromosomes
Zohaib HUSSAIN
 
Chromosome: A Complete Overview
Zohaib HUSSAIN
 

Recently uploaded (20)

PDF
DevBcn - Building 10x Organizations Using Modern Productivity Metrics
Justin Reock
 
PDF
What Makes Contify’s News API Stand Out: Key Features at a Glance
Contify
 
PDF
"AI Transformation: Directions and Challenges", Pavlo Shaternik
Fwdays
 
PDF
Empower Inclusion Through Accessible Java Applications
Ana-Maria Mihalceanu
 
PPTX
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
PPTX
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
PDF
Transcript: New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
PPTX
OpenID AuthZEN - Analyst Briefing July 2025
David Brossard
 
PDF
Using FME to Develop Self-Service CAD Applications for a Major UK Police Force
Safe Software
 
PPTX
"Autonomy of LLM Agents: Current State and Future Prospects", Oles` Petriv
Fwdays
 
PDF
How Startups Are Growing Faster with App Developers in Australia.pdf
India App Developer
 
PDF
Biography of Daniel Podor.pdf
Daniel Podor
 
PPTX
Future Tech Innovations 2025 – A TechLists Insight
TechLists
 
DOCX
Python coding for beginners !! Start now!#
Rajni Bhardwaj Grover
 
PDF
Mastering Financial Management in Direct Selling
Epixel MLM Software
 
PDF
Newgen Beyond Frankenstein_Build vs Buy_Digital_version.pdf
darshakparmar
 
PDF
IoT-Powered Industrial Transformation – Smart Manufacturing to Connected Heal...
Rejig Digital
 
PDF
Transforming Utility Networks: Large-scale Data Migrations with FME
Safe Software
 
PDF
CIFDAQ Market Wrap for the week of 4th July 2025
CIFDAQ
 
PDF
Smart Trailers 2025 Update with History and Overview
Paul Menig
 
DevBcn - Building 10x Organizations Using Modern Productivity Metrics
Justin Reock
 
What Makes Contify’s News API Stand Out: Key Features at a Glance
Contify
 
"AI Transformation: Directions and Challenges", Pavlo Shaternik
Fwdays
 
Empower Inclusion Through Accessible Java Applications
Ana-Maria Mihalceanu
 
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
Transcript: New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
OpenID AuthZEN - Analyst Briefing July 2025
David Brossard
 
Using FME to Develop Self-Service CAD Applications for a Major UK Police Force
Safe Software
 
"Autonomy of LLM Agents: Current State and Future Prospects", Oles` Petriv
Fwdays
 
How Startups Are Growing Faster with App Developers in Australia.pdf
India App Developer
 
Biography of Daniel Podor.pdf
Daniel Podor
 
Future Tech Innovations 2025 – A TechLists Insight
TechLists
 
Python coding for beginners !! Start now!#
Rajni Bhardwaj Grover
 
Mastering Financial Management in Direct Selling
Epixel MLM Software
 
Newgen Beyond Frankenstein_Build vs Buy_Digital_version.pdf
darshakparmar
 
IoT-Powered Industrial Transformation – Smart Manufacturing to Connected Heal...
Rejig Digital
 
Transforming Utility Networks: Large-scale Data Migrations with FME
Safe Software
 
CIFDAQ Market Wrap for the week of 4th July 2025
CIFDAQ
 
Smart Trailers 2025 Update with History and Overview
Paul Menig
 

Dynamic programming

  • 1. MARYAM BIBI FA12-BTY-011 TOPIC : DYNAMIC PROGRAMING SUBJECT : BIOINFIRMATICS
  • 2. Alignment used to uncover homologies between sequences combined with phylogenetic studies can determine orthologous and paralogous relationships Global Alignments compares one whole sequence with other entire sequence computationally expensive Local Alignment uses a subset of a sequence and attempts to align it to subset of other sequences computationally less expensive
  • 3. Dynamic Programming: dynamic programing is solving complex prblems by breaking them into a simpler subproblems. Problem can be divided into many smaller parts. Needleman and Wunsch were the first to propose this method.
  • 4. Needleman and Wunsch describes general algorithm for sequence aignment. Maximize a score of similarity to give maximun match. Maximun match= largest number of nucleotides that can be match with others. That want to quantify sequence similarity between two sequences.
  • 5. Dynamic programming in bioinformatics Dynamic programming is widely used in bioinformatics for the tasks such as sequence alignment, protein folding, RNA structure prediction and protein-DNA binding. First dynamic programming algorithms for protein-DNA binding were developed in the 1970s independently by Charles Delisi in USA and Georgii Gurskii and Alexanderr zasedatelev in USSR.
  • 6. Dynamic Programming in sequence alignment There are three steps in dynamic programing. 1. initialization. The first step in the global alignment dynamic programming approach is to create a matrix with M + 1 columns and N + 1 rows where M and N correspond to the size of the sequences to be aligned. 2. Matrix filling(scoring) We fill the matrix with highest possible score. To align with diagnol ( align in next position.) Allign in off-diagonal requires inserion of crossponding gaps 3. Traceback and aligning Move from last corner and follow arrow.
  • 7. Global alignment via dynamic programing 1st column and 1st row will be empty. Fill 1st block with zero Then fill 1st row and 1st coulmn with gap penality multiples. While filling the matrix there are three possible values  horizental: score+ gap penality  Verticle: score+ gap penality  Diagonal: score+(match/mismatch) We have to write max score from these values in a cell Let , match = + 1 mismatch= -1 gap penality= -2
  • 8. Lets Seq# 1 A A A C Seq# 2 A G C -
  • 9. A A T C 0 -2 -4 -6 -8 A -2 ( 1) ( -4) 1 (-4) -1 -6 -1 -1 -3 -5 G -4 -1 0 -2 -4 C -6 -3 -2 -1 -1
  • 10. Backward tracking In backward tracking we have to move from last cell( lower corner) and follows arrow from which cell the current cell’s values come from and go ahead.
  • 11. A A T C 0 -2 -4 -6 -8 A -2 1 -1 -3 -5 G -4 -1 0 -2 -4 C -6 -3 -2 -1 -1
  • 12. A A T C 0 -2 -4 -6 -8 A -2 1 -1 -3 -5 G -4 -1 0 -2 -4 C -6 -3 -2 -1 -1 Path 1 Path 2
  • 13. Backtracking Now we have to allign this sequence. For alligning there are 2 rules. 1. If the value come from column we will have to write two sequences 2. If value come from horizontal or vertical then we will have to write perpendicular and add gap to other side.
  • 14. Backtracking Here we have two paths. So we will get two possible sequences. We will write sequence from 3’-end. Path 1: Seq#1 A A T C Seq#2 - A G C
  • 15. Backtracking Path 2 Seq# 1 A A T C Seq# 2 A G - C Hense , we do global allignment in this way.
  • 16. Local alignment via dynamic programing Algorithim is same as in global alignment, but there are some changes. We fill 1st column and 1st row with zero. If the value comes in negative number than it is replaced by zero. Backtracking will be start from maximun value.
  • 17. Local alignment Let, Match = 1 Mismatch = 0 Gap penality= 0 And sequence#1 GAATTCAGTTA Squence#2 GGATCGA
  • 18. G A A T T C A G T T A 0 0 0 0 0 0 0 0 0 0 0 0 G 0 1 1 1 1 1 1 1 1 1 1 1 G 0 1 1 1 1 1 1 1 2 2 2 2 A 0 1 2 2 2 2 2 2 2 2 2 3 T 0 1 2 2 3 3 3 3 3 3 3 3 C 0 1 2 2 3 3 4 4 4 4 4 4 G 0 1 2 2 3 3 4 4 5 5 5 5 A 0 1 2 3 3 3 3 4 5 5 5 6
  • 19. Bactracking After the matrix fill step, the maximum alignment score for the two test sequences is 6. The traceback step determines the actual alignment(s) that result in the maximum score.
  • 20. G A A T T C A G T T A 0 0 0 0 0 0 0 0 0 0 0 0 G 0 1 1 1 1 1 1 1 1 1 1 1 G 0 1 1 1 1 1 1 1 2 2 2 2 A 0 1 2 2 2 2 2 2 2 2 2 3 T 0 1 2 2 3 3 3 3 3 3 3 3 C 0 1 2 2 3 3 4 4 4 4 4 4 G 0 1 2 2 3 3 4 4 5 5 5 5 A 0 1 2 3 3 3 3 4 5 5 5 6
  • 21. Backtracking Rule will be same for this as in global alignment Sequence alignment : Seq#1 G A A T T C A G T TA Seq#2 G A - T C – G - - A So in this way we align the sequence using dynamic programing.