SlideShare une entreprise Scribd logo
1  sur  21
NEEDLEMAN WUNCH
ALGORITHM
HARSHITA BHAWSAR
M.SC LIFE SCIENCE
NIT ROURKELA
What is Needleman-Wunsch
algorithm?
The Needleman–Wunsch algorithm is an algorithm used
in bioinformatics to align protein or nucleotide sequences.
 It performs a global alignment on two sequences.
 The algorithm was developed by Saul B. Needleman and Christian D.
Wunsch and published in 1970.
 It is an example of Dynamic Programming and It was one of the first
applications of dynamic programming to compare biological sequences.
 Even for relatively short sequences, there are lots of possible alignments.
But it will take a long time to assess each alignment one-by-one , to find
the best alignment.
 The Needleman-Wunsch algorithm saves us the trouble of assessing all the
many possible alignments to find the best one.
 The N-W algorithm takes time proportion to n2 to find the best alignment
of two sequences that are both n letters long.
.
Alignment methods
 Alignment:- Arranging the sequence of DNA/RNA or PROTEIN to identify
similarities.
 2 types:-
Global and local sequence alignment methods
 Global : Needleman-Wunch algorithm
 Local : Smith-Waterman algorithm
These two dynamic programming alignment algorithm are guaranteed to
give OPTIMAL alignments
Goals of sequence alignment
 Measure the similarity
 Observe patterns of sequence conservation between related biological
species and variability of sequences over time.
 Infer evolutionary relationships.
Algorithm
Steps
 1. Initialization
 2 Matrix fill or scoring
 3. Traceback and alignment
RULES
 Put the gap in the first
 Fill the first column and last row with gap values
 Value of Box beside + Gap value
 Value of Box bottom + Gap value
 Diagonal value + {match/mismatch}
Lets see an example….
TWO SEQUENCES WILL BE ALIGNED:-
GATC (#SEQUENCE 1)
GAGC (#SEQUENCE 2)
Initilization
Create Matrix with M + 1 columns and N + 1 rows.
M= sequence 1
N= sequence 2
0
C
G
A
G
-
- G A T C
Matrix Fill
Fill the first column and For match=+1; Mismatch= -1; Gap= -2
last row with gap values
We putting the values by adding the gap values
With the beside box
0 -2 -4
C
G
A
G
-
- G A T C
For match=+1; Mismatch= -1; Gap= -2
-8
-6
-4
-2
0 -2 -4 -6 -8
C
G
A
G
-
- G A T C
Scoring
Parameters
 Value of Box beside + Gap value match=+1; Mismatch= -1;
 Value of Box bottom + Gap value Gap= -2
 Diagonal value + {match/mismatch}
-8
-6
-4
-2
0 -2 -4 -6 -8
C
G
A
G
-
- G A T C
-
4 -4+1
1
Scoring
match=+1; Mismatch= -1; Gap= -2
-8
-6
-4
-2 1 -1 -3 -5
0 -2 -4 -6 -8
C
G
A
G
-
- G A T C
Continuing the procedure…
match= +1; Mismatch= -1; Gap= -2
-8 -5 -2 -1 2
-6 -3 0 1 -1
-4 -1 2 0 -2
-2 1 -1 -3 -5
0 -2 -4 -6 -8
C
G
A
G
-
- G A T C
Traceback Step
 After scoring is done we get the maximum global alignment score at the
end. It may be in negative or positive.
 The trace back step will determine the actual alingment(s) that result in the
maximum score.
 In this step we need to come back towards zero.
 Since we have kept the pointers
to all the predecessors, so the
traceback step become simple.
-8 -5 -2 -1 2
-6 -3 0 1 -1
-4 -1 2 0 -2
-2 1 -1 -3 -5
0 -2 -4 -6 -8
C
G
A
G
-
- G A T C
we follow the pointers
-8 -5 -2 -1 2
-6 -3 0 1 -1
-4 -1 2 0 -2
-2 1 -1 -3 -5
0 -2 -4 -6 -8
C
G
A
G
-
- G A T C
GAGC
It`s the optimal alignment
GA T C
-8 -5 -2 -1 2
-6 -3 0 1 -1
-4 -1 2 0 -2
-2 1 -1 -3 -5
0 -2 -4 -6 -8
C
G
A
G
-
- G A T C
Other example…
AGC and AACC
For alignment we need to look at the pointers:-
= sequence
= gaps
We got 3 optimal alignment:-
A-GC AG-C -AGC
AAAC AACC AACC
A G C
0 -2 -4 -6
A -2 1 -1 -3
A -4 -1 0 -2
C -6 -3 -2 -1
C -8 -5 -4 -1
Checking..!
 We can also check our alignment is right or not, by doing scoring
manually.
 Eg:- GAGC A-GC
GATC AACC
+1+1-1+1 +1-2-1+1
= 2 = -1
This score should must be equal to the maximum score of traceback.
If it is then it`s a perfect alingment.
Needleman-wunch algorithm  harshita

Contenu connexe

Tendances

Tendances (20)

Global and local alignment (bioinformatics)
Global and local alignment (bioinformatics)Global and local alignment (bioinformatics)
Global and local alignment (bioinformatics)
 
Scoring matrices
Scoring matricesScoring matrices
Scoring matrices
 
Sequence file formats
Sequence file formatsSequence file formats
Sequence file formats
 
methods for protein structure prediction
methods for protein structure predictionmethods for protein structure prediction
methods for protein structure prediction
 
Multiple sequence alignment
Multiple sequence alignmentMultiple sequence alignment
Multiple sequence alignment
 
Dynamic programming and pairwise sequence alignment
Dynamic programming and pairwise sequence alignmentDynamic programming and pairwise sequence alignment
Dynamic programming and pairwise sequence alignment
 
Needleman-Wunsch Algorithm
Needleman-Wunsch AlgorithmNeedleman-Wunsch Algorithm
Needleman-Wunsch Algorithm
 
Secondary Structure Prediction of proteins
Secondary Structure Prediction of proteins Secondary Structure Prediction of proteins
Secondary Structure Prediction of proteins
 
Cath
CathCath
Cath
 
Scop database
Scop databaseScop database
Scop database
 
Sequence alignment global vs. local
Sequence alignment  global vs. localSequence alignment  global vs. local
Sequence alignment global vs. local
 
Gene prediction methods vijay
Gene prediction methods  vijayGene prediction methods  vijay
Gene prediction methods vijay
 
multiple sequence alignment
multiple sequence alignmentmultiple sequence alignment
multiple sequence alignment
 
Global and Local Sequence Alignment
Global and Local Sequence AlignmentGlobal and Local Sequence Alignment
Global and Local Sequence Alignment
 
Sequence alignment
Sequence alignmentSequence alignment
Sequence alignment
 
Genome annotation
Genome annotationGenome annotation
Genome annotation
 
dot plot analysis
dot plot analysisdot plot analysis
dot plot analysis
 
Sequence comparison techniques
Sequence comparison techniquesSequence comparison techniques
Sequence comparison techniques
 
Gen bank databases
Gen bank databasesGen bank databases
Gen bank databases
 
Sequence alig Sequence Alignment Pairwise alignment:-
Sequence alig Sequence Alignment Pairwise alignment:-Sequence alig Sequence Alignment Pairwise alignment:-
Sequence alig Sequence Alignment Pairwise alignment:-
 

En vedette

The Needleman Wunsch algorithm
The Needleman Wunsch algorithmThe Needleman Wunsch algorithm
The Needleman Wunsch algorithm
avrilcoghlan
 
Pairwise sequence alignment
Pairwise sequence alignmentPairwise sequence alignment
Pairwise sequence alignment
avrilcoghlan
 
The Smith Waterman algorithm
The Smith Waterman algorithmThe Smith Waterman algorithm
The Smith Waterman algorithm
avrilcoghlan
 
Molecular docking
Molecular dockingMolecular docking
Molecular docking
palliyath91
 

En vedette (9)

The Needleman Wunsch algorithm
The Needleman Wunsch algorithmThe Needleman Wunsch algorithm
The Needleman Wunsch algorithm
 
Pairwise sequence alignment
Pairwise sequence alignmentPairwise sequence alignment
Pairwise sequence alignment
 
The Smith Waterman algorithm
The Smith Waterman algorithmThe Smith Waterman algorithm
The Smith Waterman algorithm
 
The Needleman-Wunsch Algorithm for Sequence Alignment
The Needleman-Wunsch Algorithm for Sequence Alignment The Needleman-Wunsch Algorithm for Sequence Alignment
The Needleman-Wunsch Algorithm for Sequence Alignment
 
Sequence Alignment,Blast, Fasta, MSA
Sequence Alignment,Blast, Fasta, MSASequence Alignment,Blast, Fasta, MSA
Sequence Alignment,Blast, Fasta, MSA
 
Introduction to sequence alignment
Introduction to sequence alignmentIntroduction to sequence alignment
Introduction to sequence alignment
 
MOLECULAR DOCKING
MOLECULAR DOCKINGMOLECULAR DOCKING
MOLECULAR DOCKING
 
Molecular docking
Molecular dockingMolecular docking
Molecular docking
 
Molecular docking
Molecular dockingMolecular docking
Molecular docking
 

Similaire à Needleman-wunch algorithm harshita

20100515 bioinformatics kapushesky_lecture07
20100515 bioinformatics kapushesky_lecture0720100515 bioinformatics kapushesky_lecture07
20100515 bioinformatics kapushesky_lecture07
Computer Science Club
 
Seminar Report (Final)
Seminar Report (Final)Seminar Report (Final)
Seminar Report (Final)
Aruneel Das
 
Adjusting PageRank parameters and comparing results : REPORT
Adjusting PageRank parameters and comparing results : REPORTAdjusting PageRank parameters and comparing results : REPORT
Adjusting PageRank parameters and comparing results : REPORT
Subhajit Sahu
 

Similaire à Needleman-wunch algorithm harshita (20)

20100515 bioinformatics kapushesky_lecture07
20100515 bioinformatics kapushesky_lecture0720100515 bioinformatics kapushesky_lecture07
20100515 bioinformatics kapushesky_lecture07
 
Ch06 alignment
Ch06 alignmentCh06 alignment
Ch06 alignment
 
Lecture 4
Lecture 4Lecture 4
Lecture 4
 
PCB_Lect02_Pairwise_allign (1).pdf
PCB_Lect02_Pairwise_allign (1).pdfPCB_Lect02_Pairwise_allign (1).pdf
PCB_Lect02_Pairwise_allign (1).pdf
 
Sequence alignment unit 3
Sequence alignment unit 3Sequence alignment unit 3
Sequence alignment unit 3
 
Ch06 multalign
Ch06 multalignCh06 multalign
Ch06 multalign
 
NeedlemanWunsch.pdf
NeedlemanWunsch.pdfNeedlemanWunsch.pdf
NeedlemanWunsch.pdf
 
Merge sort analysis and its real time applications
Merge sort analysis and its real time applicationsMerge sort analysis and its real time applications
Merge sort analysis and its real time applications
 
5. Global and Local Alignment Algorithms.pptx
5. Global and Local Alignment Algorithms.pptx5. Global and Local Alignment Algorithms.pptx
5. Global and Local Alignment Algorithms.pptx
 
Seminar Report (Final)
Seminar Report (Final)Seminar Report (Final)
Seminar Report (Final)
 
Algorithm.ppt
Algorithm.pptAlgorithm.ppt
Algorithm.ppt
 
Dynamic Programming: Smith-Waterman
Dynamic Programming: Smith-WatermanDynamic Programming: Smith-Waterman
Dynamic Programming: Smith-Waterman
 
Backpropagation - Elisa Sayrol - UPC Barcelona 2018
Backpropagation - Elisa Sayrol - UPC Barcelona 2018Backpropagation - Elisa Sayrol - UPC Barcelona 2018
Backpropagation - Elisa Sayrol - UPC Barcelona 2018
 
Bioinformatics t5-databasesearching v2014
Bioinformatics t5-databasesearching v2014Bioinformatics t5-databasesearching v2014
Bioinformatics t5-databasesearching v2014
 
Diapositivas maqueta en coordenadas normales_y_tangenciales
Diapositivas maqueta en coordenadas normales_y_tangencialesDiapositivas maqueta en coordenadas normales_y_tangenciales
Diapositivas maqueta en coordenadas normales_y_tangenciales
 
Global and local alignment in Bioinformatics
Global and local alignment in BioinformaticsGlobal and local alignment in Bioinformatics
Global and local alignment in Bioinformatics
 
Adjusting PageRank parameters and comparing results : REPORT
Adjusting PageRank parameters and comparing results : REPORTAdjusting PageRank parameters and comparing results : REPORT
Adjusting PageRank parameters and comparing results : REPORT
 
Matrix Multiplication(An example of concurrent programming)
Matrix Multiplication(An example of concurrent programming)Matrix Multiplication(An example of concurrent programming)
Matrix Multiplication(An example of concurrent programming)
 
C1 - Insertion Sort
C1 - Insertion SortC1 - Insertion Sort
C1 - Insertion Sort
 
Seq alignment
Seq alignment Seq alignment
Seq alignment
 

Dernier

+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 
Asymmetry in the atmosphere of the ultra-hot Jupiter WASP-76 b
Asymmetry in the atmosphere of the ultra-hot Jupiter WASP-76 bAsymmetry in the atmosphere of the ultra-hot Jupiter WASP-76 b
Asymmetry in the atmosphere of the ultra-hot Jupiter WASP-76 b
Sérgio Sacani
 
Pests of cotton_Borer_Pests_Binomics_Dr.UPR.pdf
Pests of cotton_Borer_Pests_Binomics_Dr.UPR.pdfPests of cotton_Borer_Pests_Binomics_Dr.UPR.pdf
Pests of cotton_Borer_Pests_Binomics_Dr.UPR.pdf
PirithiRaju
 
Pests of cotton_Sucking_Pests_Dr.UPR.pdf
Pests of cotton_Sucking_Pests_Dr.UPR.pdfPests of cotton_Sucking_Pests_Dr.UPR.pdf
Pests of cotton_Sucking_Pests_Dr.UPR.pdf
PirithiRaju
 
Pests of mustard_Identification_Management_Dr.UPR.pdf
Pests of mustard_Identification_Management_Dr.UPR.pdfPests of mustard_Identification_Management_Dr.UPR.pdf
Pests of mustard_Identification_Management_Dr.UPR.pdf
PirithiRaju
 

Dernier (20)

SAMASTIPUR CALL GIRL 7857803690 LOW PRICE ESCORT SERVICE
SAMASTIPUR CALL GIRL 7857803690  LOW PRICE  ESCORT SERVICESAMASTIPUR CALL GIRL 7857803690  LOW PRICE  ESCORT SERVICE
SAMASTIPUR CALL GIRL 7857803690 LOW PRICE ESCORT SERVICE
 
Proteomics: types, protein profiling steps etc.
Proteomics: types, protein profiling steps etc.Proteomics: types, protein profiling steps etc.
Proteomics: types, protein profiling steps etc.
 
9999266834 Call Girls In Noida Sector 22 (Delhi) Call Girl Service
9999266834 Call Girls In Noida Sector 22 (Delhi) Call Girl Service9999266834 Call Girls In Noida Sector 22 (Delhi) Call Girl Service
9999266834 Call Girls In Noida Sector 22 (Delhi) Call Girl Service
 
Zoology 5th semester notes( Sumit_yadav).pdf
Zoology 5th semester notes( Sumit_yadav).pdfZoology 5th semester notes( Sumit_yadav).pdf
Zoology 5th semester notes( Sumit_yadav).pdf
 
Call Girls Ahmedabad +917728919243 call me Independent Escort Service
Call Girls Ahmedabad +917728919243 call me Independent Escort ServiceCall Girls Ahmedabad +917728919243 call me Independent Escort Service
Call Girls Ahmedabad +917728919243 call me Independent Escort Service
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Asymmetry in the atmosphere of the ultra-hot Jupiter WASP-76 b
Asymmetry in the atmosphere of the ultra-hot Jupiter WASP-76 bAsymmetry in the atmosphere of the ultra-hot Jupiter WASP-76 b
Asymmetry in the atmosphere of the ultra-hot Jupiter WASP-76 b
 
High Class Escorts in Hyderabad ₹7.5k Pick Up & Drop With Cash Payment 969456...
High Class Escorts in Hyderabad ₹7.5k Pick Up & Drop With Cash Payment 969456...High Class Escorts in Hyderabad ₹7.5k Pick Up & Drop With Cash Payment 969456...
High Class Escorts in Hyderabad ₹7.5k Pick Up & Drop With Cash Payment 969456...
 
Pests of cotton_Borer_Pests_Binomics_Dr.UPR.pdf
Pests of cotton_Borer_Pests_Binomics_Dr.UPR.pdfPests of cotton_Borer_Pests_Binomics_Dr.UPR.pdf
Pests of cotton_Borer_Pests_Binomics_Dr.UPR.pdf
 
Human & Veterinary Respiratory Physilogy_DR.E.Muralinath_Associate Professor....
Human & Veterinary Respiratory Physilogy_DR.E.Muralinath_Associate Professor....Human & Veterinary Respiratory Physilogy_DR.E.Muralinath_Associate Professor....
Human & Veterinary Respiratory Physilogy_DR.E.Muralinath_Associate Professor....
 
Kochi ❤CALL GIRL 84099*07087 ❤CALL GIRLS IN Kochi ESCORT SERVICE❤CALL GIRL
Kochi ❤CALL GIRL 84099*07087 ❤CALL GIRLS IN Kochi ESCORT SERVICE❤CALL GIRLKochi ❤CALL GIRL 84099*07087 ❤CALL GIRLS IN Kochi ESCORT SERVICE❤CALL GIRL
Kochi ❤CALL GIRL 84099*07087 ❤CALL GIRLS IN Kochi ESCORT SERVICE❤CALL GIRL
 
Forensic Biology & Its biological significance.pdf
Forensic Biology & Its biological significance.pdfForensic Biology & Its biological significance.pdf
Forensic Biology & Its biological significance.pdf
 
Grade 7 - Lesson 1 - Microscope and Its Functions
Grade 7 - Lesson 1 - Microscope and Its FunctionsGrade 7 - Lesson 1 - Microscope and Its Functions
Grade 7 - Lesson 1 - Microscope and Its Functions
 
Pests of cotton_Sucking_Pests_Dr.UPR.pdf
Pests of cotton_Sucking_Pests_Dr.UPR.pdfPests of cotton_Sucking_Pests_Dr.UPR.pdf
Pests of cotton_Sucking_Pests_Dr.UPR.pdf
 
9654467111 Call Girls In Raj Nagar Delhi Short 1500 Night 6000
9654467111 Call Girls In Raj Nagar Delhi Short 1500 Night 60009654467111 Call Girls In Raj Nagar Delhi Short 1500 Night 6000
9654467111 Call Girls In Raj Nagar Delhi Short 1500 Night 6000
 
Pests of mustard_Identification_Management_Dr.UPR.pdf
Pests of mustard_Identification_Management_Dr.UPR.pdfPests of mustard_Identification_Management_Dr.UPR.pdf
Pests of mustard_Identification_Management_Dr.UPR.pdf
 
Locating and isolating a gene, FISH, GISH, Chromosome walking and jumping, te...
Locating and isolating a gene, FISH, GISH, Chromosome walking and jumping, te...Locating and isolating a gene, FISH, GISH, Chromosome walking and jumping, te...
Locating and isolating a gene, FISH, GISH, Chromosome walking and jumping, te...
 
PSYCHOSOCIAL NEEDS. in nursing II sem pptx
PSYCHOSOCIAL NEEDS. in nursing II sem pptxPSYCHOSOCIAL NEEDS. in nursing II sem pptx
PSYCHOSOCIAL NEEDS. in nursing II sem pptx
 
Thyroid Physiology_Dr.E. Muralinath_ Associate Professor
Thyroid Physiology_Dr.E. Muralinath_ Associate ProfessorThyroid Physiology_Dr.E. Muralinath_ Associate Professor
Thyroid Physiology_Dr.E. Muralinath_ Associate Professor
 
GBSN - Biochemistry (Unit 1)
GBSN - Biochemistry (Unit 1)GBSN - Biochemistry (Unit 1)
GBSN - Biochemistry (Unit 1)
 

Needleman-wunch algorithm harshita

  • 2. What is Needleman-Wunsch algorithm? The Needleman–Wunsch algorithm is an algorithm used in bioinformatics to align protein or nucleotide sequences.  It performs a global alignment on two sequences.  The algorithm was developed by Saul B. Needleman and Christian D. Wunsch and published in 1970.  It is an example of Dynamic Programming and It was one of the first applications of dynamic programming to compare biological sequences.
  • 3.  Even for relatively short sequences, there are lots of possible alignments. But it will take a long time to assess each alignment one-by-one , to find the best alignment.  The Needleman-Wunsch algorithm saves us the trouble of assessing all the many possible alignments to find the best one.  The N-W algorithm takes time proportion to n2 to find the best alignment of two sequences that are both n letters long. .
  • 4. Alignment methods  Alignment:- Arranging the sequence of DNA/RNA or PROTEIN to identify similarities.  2 types:- Global and local sequence alignment methods  Global : Needleman-Wunch algorithm  Local : Smith-Waterman algorithm These two dynamic programming alignment algorithm are guaranteed to give OPTIMAL alignments
  • 5. Goals of sequence alignment  Measure the similarity  Observe patterns of sequence conservation between related biological species and variability of sequences over time.  Infer evolutionary relationships.
  • 7. Steps  1. Initialization  2 Matrix fill or scoring  3. Traceback and alignment
  • 8. RULES  Put the gap in the first  Fill the first column and last row with gap values  Value of Box beside + Gap value  Value of Box bottom + Gap value  Diagonal value + {match/mismatch}
  • 9. Lets see an example…. TWO SEQUENCES WILL BE ALIGNED:- GATC (#SEQUENCE 1) GAGC (#SEQUENCE 2)
  • 10. Initilization Create Matrix with M + 1 columns and N + 1 rows. M= sequence 1 N= sequence 2 0 C G A G - - G A T C
  • 11. Matrix Fill Fill the first column and For match=+1; Mismatch= -1; Gap= -2 last row with gap values We putting the values by adding the gap values With the beside box 0 -2 -4 C G A G - - G A T C
  • 12. For match=+1; Mismatch= -1; Gap= -2 -8 -6 -4 -2 0 -2 -4 -6 -8 C G A G - - G A T C
  • 13. Scoring Parameters  Value of Box beside + Gap value match=+1; Mismatch= -1;  Value of Box bottom + Gap value Gap= -2  Diagonal value + {match/mismatch} -8 -6 -4 -2 0 -2 -4 -6 -8 C G A G - - G A T C - 4 -4+1 1
  • 14. Scoring match=+1; Mismatch= -1; Gap= -2 -8 -6 -4 -2 1 -1 -3 -5 0 -2 -4 -6 -8 C G A G - - G A T C
  • 15. Continuing the procedure… match= +1; Mismatch= -1; Gap= -2 -8 -5 -2 -1 2 -6 -3 0 1 -1 -4 -1 2 0 -2 -2 1 -1 -3 -5 0 -2 -4 -6 -8 C G A G - - G A T C
  • 16. Traceback Step  After scoring is done we get the maximum global alignment score at the end. It may be in negative or positive.  The trace back step will determine the actual alingment(s) that result in the maximum score.  In this step we need to come back towards zero.  Since we have kept the pointers to all the predecessors, so the traceback step become simple. -8 -5 -2 -1 2 -6 -3 0 1 -1 -4 -1 2 0 -2 -2 1 -1 -3 -5 0 -2 -4 -6 -8 C G A G - - G A T C
  • 17. we follow the pointers -8 -5 -2 -1 2 -6 -3 0 1 -1 -4 -1 2 0 -2 -2 1 -1 -3 -5 0 -2 -4 -6 -8 C G A G - - G A T C
  • 18. GAGC It`s the optimal alignment GA T C -8 -5 -2 -1 2 -6 -3 0 1 -1 -4 -1 2 0 -2 -2 1 -1 -3 -5 0 -2 -4 -6 -8 C G A G - - G A T C
  • 19. Other example… AGC and AACC For alignment we need to look at the pointers:- = sequence = gaps We got 3 optimal alignment:- A-GC AG-C -AGC AAAC AACC AACC A G C 0 -2 -4 -6 A -2 1 -1 -3 A -4 -1 0 -2 C -6 -3 -2 -1 C -8 -5 -4 -1
  • 20. Checking..!  We can also check our alignment is right or not, by doing scoring manually.  Eg:- GAGC A-GC GATC AACC +1+1-1+1 +1-2-1+1 = 2 = -1 This score should must be equal to the maximum score of traceback. If it is then it`s a perfect alingment.