SlideShare a Scribd company logo
3
Most read
14
Most read
18
Most read
Needleman-Wunsch
Algorithm 1
11-Dec-2015
Presented By:
• Proshanta Kumar Shil
ID:141-15-3140
Section:B
Department of CSE
Daffodil International University
11-Dec-2015
2
What is Needleman-Wunsch algorithm?
The Needleman–Wunsch algorithm is an algorithm used
in bioinformatics to align protein or nucleotide sequences.
• It was one of the first applications of dynamic programming to compare
biological sequences.
• The algorithm was developed by Saul B. Needleman and Christian D.
Wunsch and published in 1970.
3
11-Dec-2015
Alignment methods
• Global and local sequence alignment methods
• Global : Needleman-Wunch
• Local : Smith-Waterman
• Database Search
• BLAST
• FASTA
4
11-Dec-2015
Goals of sequence databases
• To know about a newly sequenced database.
• To find the similarity of a unique sequence to another gene that
has a known function.
• To find the similarity of a new protein in a lower organism to a
protein from another species.
5
11-Dec-2015
Alignment Algorithms
• Global : Needleman-Wunch
• Local : Smith-Watermann
•  These two dynamic programming alignment algorithm are
guaranteed to give OPTIMAL alignments
•  But O(m*n) quadratic
6
11-Dec-2015
Needleman-Wunsch Method
• For example, the two hypothetical sequences
• abcdefghajklm
• abbdhijk
• could be aligned like this
• abcdefghajklm
• || | | ||
• abbd...hijk
• As shown, there are 6 matches,
• 2 mismatches, and one gap of length 3.
7
11-Dec-2015
Needleman-Wunsch Method
• The alignment is scored according to a payoff matrix
• $payoff = { match => $match,
• mismatch => $mismatch,
• gap_open => $gap_open,
• gap_extend => $gap_extend };
• For correct operation, match must be positive,
• and the other entries must be negative.
8
11-Dec-2015
Needleman-Wunsch Method
• Given the payoff matrix
• $payoff = { match => 4,
• mismatch => -3,
• gap_open => -2,
• gap_extend => -1 };
9
11-Dec-2015
Needleman-Wunsch Method
• The sequences
• abcdefghajklm
• abbdhijk
• are aligned and scored like this
• a b c d e f g h a j k l m
• | | | | | |
• a b b d . . . h i j k
• match 4 4 4 4 4 4
• mismatch -3 -3
• gap_open -2
• gap_extend -1-1-1
• for a total score of 24-6-2-3 = 13.
10
11-Dec-2015
Steps:
• 1. Initialization
• 2 Matrix fill or scoring
• 3. Traceback and alignment
11
11-Dec-2015
Lets see an example…
12
11-Dec-2015
Fill in the Table 13
11-Dec-2015
A G C
A
A
C
C
Two sequences will be aligned.
AGC (sequence #1)
AACC (sequence #2)
A simple scoring scheme will be used
Initialization step:
Create Matrix with M + 1
columns
and N + 1 rows.
For match=+1; Mismatch=-1;
Gap=-2
14
11-Dec-2015
A G C
0 -2 -4 -6
A -2
A -4
C -6
C -8
15
11-Dec-2015
Fill in the Table
A G C
0 -2 -4 -6
A -2 1
A -4
C -6
C -8
Matrix fill step: Each position Mi,j is defined to be the
MAXIMUM score at position i,j
Mi,j = MAXIMUM [
Mi-1, j-1 + si,,j (match or mismatch in the diagonal)
Mi, j-1 + w (gap in sequence #1)
Mi-1, j + w (gap in sequence #2)]
Continuing
the procedure 16
11-Dec-2015
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
Traceback step:
Position at current cell
and look at direct
predecessors
17
11-Dec-2015
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
Traceback step:
Position at current cell and
look at direct predecessors
18
11-Dec-2015
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
AG-C
AAAC
-AGC
AAAC
A-GC
AAAC
Summary
• The algorithm essentially divides a large problem into a series of
smaller problems and uses the solutions to the smaller problems to
reconstruct a solution to the larger problem.
• It is also sometimes referred to as the optimal matching algorithm
and the global alignment technique.
• The Needleman–Wunsch algorithm is still widely used for optimal
global alignment, particularly when the quality of the global
alignment is of the utmost importance.
11-Dec-2015
19
Any Question?
Thanks to All
20

More Related Content

PPTX
Dynamic programming and pairwise sequence alignment
GeethanjaliAnilkumar2
 
PPTX
Multiple Sequence Alignment
Meghaj Mallick
 
PPT
The Smith Waterman algorithm
avrilcoghlan
 
PPTX
Global and local alignment (bioinformatics)
Pritom Chaki
 
PPTX
Sequence alignment
Zeeshan Hanjra
 
PPT
The Needleman Wunsch algorithm
avrilcoghlan
 
PPTX
Multiple sequence alignment
Subhranil Bhattacharjee
 
PDF
Sequence Alignment
Ravi Gandham
 
Dynamic programming and pairwise sequence alignment
GeethanjaliAnilkumar2
 
Multiple Sequence Alignment
Meghaj Mallick
 
The Smith Waterman algorithm
avrilcoghlan
 
Global and local alignment (bioinformatics)
Pritom Chaki
 
Sequence alignment
Zeeshan Hanjra
 
The Needleman Wunsch algorithm
avrilcoghlan
 
Multiple sequence alignment
Subhranil Bhattacharjee
 
Sequence Alignment
Ravi Gandham
 

What's hot (20)

PPTX
Needleman-wunch algorithm harshita
Harshita Bhawsar
 
PDF
Sequence alignment
Vidya Kalaivani Rajkumar
 
DOCX
Protein structure visualization tools-RASMOL
Vidya Kalaivani Rajkumar
 
PPTX
PAM : Point Accepted Mutation
Amit Kyada
 
PPTX
Multiple sequence alignment
Ramya S
 
PPTX
smith - waterman algorithm.pptx
Dr. Vimal Priya subramanian
 
PPTX
Sequence Alignment
Meghaj Mallick
 
PPTX
Cath
Ramya S
 
PPTX
BLAST
Anushi Jain
 
PPTX
Gen bank databases
Hafiz Muhammad Zeeshan Raza
 
PPTX
blast bioinformatics
Sardar Harpreet Kalsi
 
PPTX
Clustal W - Multiple Sequence alignment
The Oxford College Engineering
 
PDF
sequence alignment
ammar kareem
 
PPTX
Site directed mutagenesis
Arunima Sur
 
PPTX
Blast and fasta
ALLIENU
 
PDF
Secondary Structure Prediction of proteins
Vijay Hemmadi
 
PPTX
Chou fasman algorithm for protein structure prediction
Roshan Karunarathna
 
PDF
Dot matrix
Tania Khan
 
Needleman-wunch algorithm harshita
Harshita Bhawsar
 
Sequence alignment
Vidya Kalaivani Rajkumar
 
Protein structure visualization tools-RASMOL
Vidya Kalaivani Rajkumar
 
PAM : Point Accepted Mutation
Amit Kyada
 
Multiple sequence alignment
Ramya S
 
smith - waterman algorithm.pptx
Dr. Vimal Priya subramanian
 
Sequence Alignment
Meghaj Mallick
 
Cath
Ramya S
 
Gen bank databases
Hafiz Muhammad Zeeshan Raza
 
blast bioinformatics
Sardar Harpreet Kalsi
 
Clustal W - Multiple Sequence alignment
The Oxford College Engineering
 
sequence alignment
ammar kareem
 
Site directed mutagenesis
Arunima Sur
 
Blast and fasta
ALLIENU
 
Secondary Structure Prediction of proteins
Vijay Hemmadi
 
Chou fasman algorithm for protein structure prediction
Roshan Karunarathna
 
Dot matrix
Tania Khan
 
Ad

Similar to Needleman-Wunsch Algorithm (20)

PPT
Sequence alignments complete coverage
Prasanthperceptron
 
PPTX
5. Global and Local Alignment Algorithms.pptx
ArupKhakhlari1
 
PDF
NeedlemanWunsch.pdf
Yogeshwari54
 
PPT
Needleman wunsch computional ppt
tarun shekhawat
 
PPTX
Needleman wunsch algorithm.pptx
WasimulKarim
 
PPT
seq alignment.ppt
AmandeepKaur836413
 
PDF
Sequence Alignment
Alexander Niema Moshiri
 
PDF
The Needleman-Wunsch Algorithm for Sequence Alignment
Parinda Rajapaksha
 
PPTX
Sequence alignment
Arindam Ghosh
 
PPTX
Dynamic Programming: Smith-Waterman
Rohan Prakash
 
PPTX
Sequence alignment global vs. local
benazeer fathima
 
PPTX
Sequence alignment unit 3
gyanikashukla
 
PPTX
Lecture 4
Owali Shawon
 
PPT
B.sc biochem i bobi u 3.2 algorithm + blast
Rai University
 
PPT
B.sc biochem i bobi u 3.2 algorithm + blast
Rai University
 
PPTX
Global and local alignment in Bioinformatics
Mahmudul Alam
 
PPTX
2015 bioinformatics alignments_wim_vancriekinge
Prof. Wim Van Criekinge
 
PPTX
2016 bioinformatics i_alignments_wim_vancriekinge
Prof. Wim Van Criekinge
 
PPTX
Dynamic programming
Zohaib HUSSAIN
 
PPTX
DYNAMIC PROGRAMMING, Bioinformatics.pptx
PraisePedzai
 
Sequence alignments complete coverage
Prasanthperceptron
 
5. Global and Local Alignment Algorithms.pptx
ArupKhakhlari1
 
NeedlemanWunsch.pdf
Yogeshwari54
 
Needleman wunsch computional ppt
tarun shekhawat
 
Needleman wunsch algorithm.pptx
WasimulKarim
 
seq alignment.ppt
AmandeepKaur836413
 
Sequence Alignment
Alexander Niema Moshiri
 
The Needleman-Wunsch Algorithm for Sequence Alignment
Parinda Rajapaksha
 
Sequence alignment
Arindam Ghosh
 
Dynamic Programming: Smith-Waterman
Rohan Prakash
 
Sequence alignment global vs. local
benazeer fathima
 
Sequence alignment unit 3
gyanikashukla
 
Lecture 4
Owali Shawon
 
B.sc biochem i bobi u 3.2 algorithm + blast
Rai University
 
B.sc biochem i bobi u 3.2 algorithm + blast
Rai University
 
Global and local alignment in Bioinformatics
Mahmudul Alam
 
2015 bioinformatics alignments_wim_vancriekinge
Prof. Wim Van Criekinge
 
2016 bioinformatics i_alignments_wim_vancriekinge
Prof. Wim Van Criekinge
 
Dynamic programming
Zohaib HUSSAIN
 
DYNAMIC PROGRAMMING, Bioinformatics.pptx
PraisePedzai
 
Ad

Recently uploaded (20)

PDF
2010_Book_EnvironmentalBioengineering (1).pdf
EmilianoRodriguezTll
 
PPTX
Tunnel Ventilation System in Kanpur Metro
220105053
 
PDF
67243-Cooling and Heating & Calculation.pdf
DHAKA POLYTECHNIC
 
PPTX
sunil mishra pptmmmmmmmmmmmmmmmmmmmmmmmmm
singhamit111
 
PDF
All chapters of Strength of materials.ppt
girmabiniyam1234
 
PPTX
MULTI LEVEL DATA TRACKING USING COOJA.pptx
dollysharma12ab
 
PDF
top-5-use-cases-for-splunk-security-analytics.pdf
yaghutialireza
 
PPTX
Victory Precisions_Supplier Profile.pptx
victoryprecisions199
 
PDF
The Effect of Artifact Removal from EEG Signals on the Detection of Epileptic...
Partho Prosad
 
PDF
Zero carbon Building Design Guidelines V4
BassemOsman1
 
PDF
Cryptography and Information :Security Fundamentals
Dr. Madhuri Jawale
 
PDF
CAD-CAM U-1 Combined Notes_57761226_2025_04_22_14_40.pdf
shailendrapratap2002
 
PDF
2025 Laurence Sigler - Advancing Decision Support. Content Management Ecommer...
Francisco Javier Mora Serrano
 
PDF
FLEX-LNG-Company-Presentation-Nov-2017.pdf
jbloggzs
 
PDF
20ME702-Mechatronics-UNIT-1,UNIT-2,UNIT-3,UNIT-4,UNIT-5, 2025-2026
Mohanumar S
 
PDF
67243-Cooling and Heating & Calculation.pdf
DHAKA POLYTECHNIC
 
PDF
LEAP-1B presedntation xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
hatem173148
 
PDF
Introduction to Ship Engine Room Systems.pdf
Mahmoud Moghtaderi
 
PPTX
Module2 Data Base Design- ER and NF.pptx
gomathisankariv2
 
PPTX
22PCOAM21 Session 2 Understanding Data Source.pptx
Guru Nanak Technical Institutions
 
2010_Book_EnvironmentalBioengineering (1).pdf
EmilianoRodriguezTll
 
Tunnel Ventilation System in Kanpur Metro
220105053
 
67243-Cooling and Heating & Calculation.pdf
DHAKA POLYTECHNIC
 
sunil mishra pptmmmmmmmmmmmmmmmmmmmmmmmmm
singhamit111
 
All chapters of Strength of materials.ppt
girmabiniyam1234
 
MULTI LEVEL DATA TRACKING USING COOJA.pptx
dollysharma12ab
 
top-5-use-cases-for-splunk-security-analytics.pdf
yaghutialireza
 
Victory Precisions_Supplier Profile.pptx
victoryprecisions199
 
The Effect of Artifact Removal from EEG Signals on the Detection of Epileptic...
Partho Prosad
 
Zero carbon Building Design Guidelines V4
BassemOsman1
 
Cryptography and Information :Security Fundamentals
Dr. Madhuri Jawale
 
CAD-CAM U-1 Combined Notes_57761226_2025_04_22_14_40.pdf
shailendrapratap2002
 
2025 Laurence Sigler - Advancing Decision Support. Content Management Ecommer...
Francisco Javier Mora Serrano
 
FLEX-LNG-Company-Presentation-Nov-2017.pdf
jbloggzs
 
20ME702-Mechatronics-UNIT-1,UNIT-2,UNIT-3,UNIT-4,UNIT-5, 2025-2026
Mohanumar S
 
67243-Cooling and Heating & Calculation.pdf
DHAKA POLYTECHNIC
 
LEAP-1B presedntation xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
hatem173148
 
Introduction to Ship Engine Room Systems.pdf
Mahmoud Moghtaderi
 
Module2 Data Base Design- ER and NF.pptx
gomathisankariv2
 
22PCOAM21 Session 2 Understanding Data Source.pptx
Guru Nanak Technical Institutions
 

Needleman-Wunsch Algorithm

  • 2. Presented By: • Proshanta Kumar Shil ID:141-15-3140 Section:B Department of CSE Daffodil International University 11-Dec-2015 2
  • 3. What is Needleman-Wunsch algorithm? The Needleman–Wunsch algorithm is an algorithm used in bioinformatics to align protein or nucleotide sequences. • It was one of the first applications of dynamic programming to compare biological sequences. • The algorithm was developed by Saul B. Needleman and Christian D. Wunsch and published in 1970. 3 11-Dec-2015
  • 4. Alignment methods • Global and local sequence alignment methods • Global : Needleman-Wunch • Local : Smith-Waterman • Database Search • BLAST • FASTA 4 11-Dec-2015
  • 5. Goals of sequence databases • To know about a newly sequenced database. • To find the similarity of a unique sequence to another gene that has a known function. • To find the similarity of a new protein in a lower organism to a protein from another species. 5 11-Dec-2015
  • 6. Alignment Algorithms • Global : Needleman-Wunch • Local : Smith-Watermann •  These two dynamic programming alignment algorithm are guaranteed to give OPTIMAL alignments •  But O(m*n) quadratic 6 11-Dec-2015
  • 7. Needleman-Wunsch Method • For example, the two hypothetical sequences • abcdefghajklm • abbdhijk • could be aligned like this • abcdefghajklm • || | | || • abbd...hijk • As shown, there are 6 matches, • 2 mismatches, and one gap of length 3. 7 11-Dec-2015
  • 8. Needleman-Wunsch Method • The alignment is scored according to a payoff matrix • $payoff = { match => $match, • mismatch => $mismatch, • gap_open => $gap_open, • gap_extend => $gap_extend }; • For correct operation, match must be positive, • and the other entries must be negative. 8 11-Dec-2015
  • 9. Needleman-Wunsch Method • Given the payoff matrix • $payoff = { match => 4, • mismatch => -3, • gap_open => -2, • gap_extend => -1 }; 9 11-Dec-2015
  • 10. Needleman-Wunsch Method • The sequences • abcdefghajklm • abbdhijk • are aligned and scored like this • a b c d e f g h a j k l m • | | | | | | • a b b d . . . h i j k • match 4 4 4 4 4 4 • mismatch -3 -3 • gap_open -2 • gap_extend -1-1-1 • for a total score of 24-6-2-3 = 13. 10 11-Dec-2015
  • 11. Steps: • 1. Initialization • 2 Matrix fill or scoring • 3. Traceback and alignment 11 11-Dec-2015
  • 12. Lets see an example… 12 11-Dec-2015
  • 13. Fill in the Table 13 11-Dec-2015 A G C A A C C Two sequences will be aligned. AGC (sequence #1) AACC (sequence #2) A simple scoring scheme will be used
  • 14. Initialization step: Create Matrix with M + 1 columns and N + 1 rows. For match=+1; Mismatch=-1; Gap=-2 14 11-Dec-2015 A G C 0 -2 -4 -6 A -2 A -4 C -6 C -8
  • 15. 15 11-Dec-2015 Fill in the Table A G C 0 -2 -4 -6 A -2 1 A -4 C -6 C -8 Matrix fill step: Each position Mi,j is defined to be the MAXIMUM score at position i,j Mi,j = MAXIMUM [ Mi-1, j-1 + si,,j (match or mismatch in the diagonal) Mi, j-1 + w (gap in sequence #1) Mi-1, j + w (gap in sequence #2)]
  • 16. Continuing the procedure 16 11-Dec-2015 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
  • 17. Traceback step: Position at current cell and look at direct predecessors 17 11-Dec-2015 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
  • 18. Traceback step: Position at current cell and look at direct predecessors 18 11-Dec-2015 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 AG-C AAAC -AGC AAAC A-GC AAAC
  • 19. Summary • The algorithm essentially divides a large problem into a series of smaller problems and uses the solutions to the smaller problems to reconstruct a solution to the larger problem. • It is also sometimes referred to as the optimal matching algorithm and the global alignment technique. • The Needleman–Wunsch algorithm is still widely used for optimal global alignment, particularly when the quality of the global alignment is of the utmost importance. 11-Dec-2015 19