SlideShare a Scribd company logo
1 of 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

More Related Content

What's hot (20)

blast bioinformatics
blast bioinformaticsblast bioinformatics
blast bioinformatics
 
Sequence Alignment
Sequence AlignmentSequence Alignment
Sequence Alignment
 
Multiple sequence alignment
Multiple sequence alignmentMultiple sequence alignment
Multiple sequence alignment
 
Sequence alignment
Sequence alignmentSequence alignment
Sequence alignment
 
(Expasy)
(Expasy)(Expasy)
(Expasy)
 
Fasta
FastaFasta
Fasta
 
Pairwise sequence alignment
Pairwise sequence alignmentPairwise sequence alignment
Pairwise sequence alignment
 
Secondary protein structure prediction
Secondary protein structure predictionSecondary protein structure prediction
Secondary protein structure prediction
 
Fasta
FastaFasta
Fasta
 
sequence alignment
sequence alignmentsequence alignment
sequence alignment
 
Phylogenetic Tree, types and Applicantion
Phylogenetic Tree, types and Applicantion Phylogenetic Tree, types and Applicantion
Phylogenetic Tree, types and Applicantion
 
Upgma
UpgmaUpgma
Upgma
 
Clustal
ClustalClustal
Clustal
 
Clustal W - Multiple Sequence alignment
Clustal W - Multiple Sequence alignment   Clustal W - Multiple Sequence alignment
Clustal W - Multiple Sequence alignment
 
Sequence file formats
Sequence file formatsSequence file formats
Sequence file formats
 
smith - waterman algorithm.pptx
smith - waterman algorithm.pptxsmith - waterman algorithm.pptx
smith - waterman algorithm.pptx
 
Scoring matrices
Scoring matricesScoring matrices
Scoring matrices
 
Global alignment
Global alignmentGlobal alignment
Global alignment
 
Finding ORF
Finding ORFFinding ORF
Finding ORF
 
The Smith Waterman algorithm
The Smith Waterman algorithmThe Smith Waterman algorithm
The Smith Waterman algorithm
 

Viewers also liked

Needleman-Wunsch Algorithm
Needleman-Wunsch AlgorithmNeedleman-Wunsch Algorithm
Needleman-Wunsch AlgorithmProshantaShil
 
The Needleman Wunsch algorithm
The Needleman Wunsch algorithmThe Needleman Wunsch algorithm
The Needleman Wunsch algorithmavrilcoghlan
 
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 Parinda Rajapaksha
 
Sequence Alignment,Blast, Fasta, MSA
Sequence Alignment,Blast, Fasta, MSASequence Alignment,Blast, Fasta, MSA
Sequence Alignment,Blast, Fasta, MSASucheta Tripathy
 
Molecular docking
Molecular dockingMolecular docking
Molecular dockingpalliyath91
 
Molecular docking
Molecular dockingMolecular docking
Molecular dockingRahul B S
 

Viewers also liked (7)

Needleman-Wunsch Algorithm
Needleman-Wunsch AlgorithmNeedleman-Wunsch Algorithm
Needleman-Wunsch Algorithm
 
The Needleman Wunsch algorithm
The Needleman Wunsch algorithmThe Needleman Wunsch algorithm
The Needleman Wunsch 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
 
MOLECULAR DOCKING
MOLECULAR DOCKINGMOLECULAR DOCKING
MOLECULAR DOCKING
 
Molecular docking
Molecular dockingMolecular docking
Molecular docking
 
Molecular docking
Molecular dockingMolecular docking
Molecular docking
 

Similar to Needleman-wunch algorithm harshita

20100515 bioinformatics kapushesky_lecture07
20100515 bioinformatics kapushesky_lecture0720100515 bioinformatics kapushesky_lecture07
20100515 bioinformatics kapushesky_lecture07Computer Science Club
 
Global and local alignment (bioinformatics)
Global and local alignment (bioinformatics)Global and local alignment (bioinformatics)
Global and local alignment (bioinformatics)Pritom Chaki
 
PCB_Lect02_Pairwise_allign (1).pdf
PCB_Lect02_Pairwise_allign (1).pdfPCB_Lect02_Pairwise_allign (1).pdf
PCB_Lect02_Pairwise_allign (1).pdfssusera1eccd
 
Sequence alignment unit 3
Sequence alignment unit 3Sequence alignment unit 3
Sequence alignment unit 3gyanikashukla
 
NeedlemanWunsch.pdf
NeedlemanWunsch.pdfNeedlemanWunsch.pdf
NeedlemanWunsch.pdfYogeshwari54
 
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 applicationsyazad dumasia
 
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.pptxArupKhakhlari1
 
Seminar Report (Final)
Seminar Report (Final)Seminar Report (Final)
Seminar Report (Final)Aruneel Das
 
Dynamic Programming: Smith-Waterman
Dynamic Programming: Smith-WatermanDynamic Programming: Smith-Waterman
Dynamic Programming: Smith-WatermanRohan Prakash
 
Bioinformatics t5-databasesearching v2014
Bioinformatics t5-databasesearching v2014Bioinformatics t5-databasesearching v2014
Bioinformatics t5-databasesearching v2014Prof. Wim Van Criekinge
 
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_tangencialesARIELMATHEOCHANCUSIG
 
Global and local alignment in Bioinformatics
Global and local alignment in BioinformaticsGlobal and local alignment in Bioinformatics
Global and local alignment in BioinformaticsMahmudul Alam
 
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 : REPORTSubhajit Sahu
 
Needleman wunsch computional ppt
Needleman wunsch computional pptNeedleman wunsch computional ppt
Needleman wunsch computional ppttarun shekhawat
 

Similar to Needleman-wunch algorithm harshita (20)

Dynamic programming
Dynamic programming Dynamic programming
Dynamic programming
 
20100515 bioinformatics kapushesky_lecture07
20100515 bioinformatics kapushesky_lecture0720100515 bioinformatics kapushesky_lecture07
20100515 bioinformatics kapushesky_lecture07
 
Global and local alignment (bioinformatics)
Global and local alignment (bioinformatics)Global and local alignment (bioinformatics)
Global and local alignment (bioinformatics)
 
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
 
Needleman wunsch computional ppt
Needleman wunsch computional pptNeedleman wunsch computional ppt
Needleman wunsch computional ppt
 

Recently uploaded

Analytical Profile of Coleus Forskohlii | Forskolin .pptx
Analytical Profile of Coleus Forskohlii | Forskolin .pptxAnalytical Profile of Coleus Forskohlii | Forskolin .pptx
Analytical Profile of Coleus Forskohlii | Forskolin .pptxSwapnil Therkar
 
THE ROLE OF PHARMACOGNOSY IN TRADITIONAL AND MODERN SYSTEM OF MEDICINE.pptx
THE ROLE OF PHARMACOGNOSY IN TRADITIONAL AND MODERN SYSTEM OF MEDICINE.pptxTHE ROLE OF PHARMACOGNOSY IN TRADITIONAL AND MODERN SYSTEM OF MEDICINE.pptx
THE ROLE OF PHARMACOGNOSY IN TRADITIONAL AND MODERN SYSTEM OF MEDICINE.pptxNandakishor Bhaurao Deshmukh
 
Neurodevelopmental disorders according to the dsm 5 tr
Neurodevelopmental disorders according to the dsm 5 trNeurodevelopmental disorders according to the dsm 5 tr
Neurodevelopmental disorders according to the dsm 5 trssuser06f238
 
Best Call Girls In Sector 29 Gurgaon❤️8860477959 EscorTs Service In 24/7 Delh...
Best Call Girls In Sector 29 Gurgaon❤️8860477959 EscorTs Service In 24/7 Delh...Best Call Girls In Sector 29 Gurgaon❤️8860477959 EscorTs Service In 24/7 Delh...
Best Call Girls In Sector 29 Gurgaon❤️8860477959 EscorTs Service In 24/7 Delh...lizamodels9
 
Pests of castor_Binomics_Identification_Dr.UPR.pdf
Pests of castor_Binomics_Identification_Dr.UPR.pdfPests of castor_Binomics_Identification_Dr.UPR.pdf
Pests of castor_Binomics_Identification_Dr.UPR.pdfPirithiRaju
 
Is RISC-V ready for HPC workload? Maybe?
Is RISC-V ready for HPC workload? Maybe?Is RISC-V ready for HPC workload? Maybe?
Is RISC-V ready for HPC workload? Maybe?Patrick Diehl
 
Analytical Profile of Coleus Forskohlii | Forskolin .pdf
Analytical Profile of Coleus Forskohlii | Forskolin .pdfAnalytical Profile of Coleus Forskohlii | Forskolin .pdf
Analytical Profile of Coleus Forskohlii | Forskolin .pdfSwapnil Therkar
 
Speech, hearing, noise, intelligibility.pptx
Speech, hearing, noise, intelligibility.pptxSpeech, hearing, noise, intelligibility.pptx
Speech, hearing, noise, intelligibility.pptxpriyankatabhane
 
BREEDING FOR RESISTANCE TO BIOTIC STRESS.pptx
BREEDING FOR RESISTANCE TO BIOTIC STRESS.pptxBREEDING FOR RESISTANCE TO BIOTIC STRESS.pptx
BREEDING FOR RESISTANCE TO BIOTIC STRESS.pptxPABOLU TEJASREE
 
Vision and reflection on Mining Software Repositories research in 2024
Vision and reflection on Mining Software Repositories research in 2024Vision and reflection on Mining Software Repositories research in 2024
Vision and reflection on Mining Software Repositories research in 2024AyushiRastogi48
 
Artificial Intelligence In Microbiology by Dr. Prince C P
Artificial Intelligence In Microbiology by Dr. Prince C PArtificial Intelligence In Microbiology by Dr. Prince C P
Artificial Intelligence In Microbiology by Dr. Prince C PPRINCE C P
 
Manassas R - Parkside Middle School 🌎🏫
Manassas R - Parkside Middle School 🌎🏫Manassas R - Parkside Middle School 🌎🏫
Manassas R - Parkside Middle School 🌎🏫qfactory1
 
RESPIRATORY ADAPTATIONS TO HYPOXIA IN HUMNAS.pptx
RESPIRATORY ADAPTATIONS TO HYPOXIA IN HUMNAS.pptxRESPIRATORY ADAPTATIONS TO HYPOXIA IN HUMNAS.pptx
RESPIRATORY ADAPTATIONS TO HYPOXIA IN HUMNAS.pptxFarihaAbdulRasheed
 
Twin's paradox experiment is a meassurement of the extra dimensions.pptx
Twin's paradox experiment is a meassurement of the extra dimensions.pptxTwin's paradox experiment is a meassurement of the extra dimensions.pptx
Twin's paradox experiment is a meassurement of the extra dimensions.pptxEran Akiva Sinbar
 
Call Girls in Munirka Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Munirka Delhi 💯Call Us 🔝8264348440🔝Call Girls in Munirka Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Munirka Delhi 💯Call Us 🔝8264348440🔝soniya singh
 
Call Girls in Munirka Delhi 💯Call Us 🔝9953322196🔝 💯Escort.
Call Girls in Munirka Delhi 💯Call Us 🔝9953322196🔝 💯Escort.Call Girls in Munirka Delhi 💯Call Us 🔝9953322196🔝 💯Escort.
Call Girls in Munirka Delhi 💯Call Us 🔝9953322196🔝 💯Escort.aasikanpl
 
TOPIC 8 Temperature and Heat.pdf physics
TOPIC 8 Temperature and Heat.pdf physicsTOPIC 8 Temperature and Heat.pdf physics
TOPIC 8 Temperature and Heat.pdf physicsssuserddc89b
 
STOPPED FLOW METHOD & APPLICATION MURUGAVENI B.pptx
STOPPED FLOW METHOD & APPLICATION MURUGAVENI B.pptxSTOPPED FLOW METHOD & APPLICATION MURUGAVENI B.pptx
STOPPED FLOW METHOD & APPLICATION MURUGAVENI B.pptxMurugaveni B
 

Recently uploaded (20)

Analytical Profile of Coleus Forskohlii | Forskolin .pptx
Analytical Profile of Coleus Forskohlii | Forskolin .pptxAnalytical Profile of Coleus Forskohlii | Forskolin .pptx
Analytical Profile of Coleus Forskohlii | Forskolin .pptx
 
THE ROLE OF PHARMACOGNOSY IN TRADITIONAL AND MODERN SYSTEM OF MEDICINE.pptx
THE ROLE OF PHARMACOGNOSY IN TRADITIONAL AND MODERN SYSTEM OF MEDICINE.pptxTHE ROLE OF PHARMACOGNOSY IN TRADITIONAL AND MODERN SYSTEM OF MEDICINE.pptx
THE ROLE OF PHARMACOGNOSY IN TRADITIONAL AND MODERN SYSTEM OF MEDICINE.pptx
 
Neurodevelopmental disorders according to the dsm 5 tr
Neurodevelopmental disorders according to the dsm 5 trNeurodevelopmental disorders according to the dsm 5 tr
Neurodevelopmental disorders according to the dsm 5 tr
 
Best Call Girls In Sector 29 Gurgaon❤️8860477959 EscorTs Service In 24/7 Delh...
Best Call Girls In Sector 29 Gurgaon❤️8860477959 EscorTs Service In 24/7 Delh...Best Call Girls In Sector 29 Gurgaon❤️8860477959 EscorTs Service In 24/7 Delh...
Best Call Girls In Sector 29 Gurgaon❤️8860477959 EscorTs Service In 24/7 Delh...
 
Pests of castor_Binomics_Identification_Dr.UPR.pdf
Pests of castor_Binomics_Identification_Dr.UPR.pdfPests of castor_Binomics_Identification_Dr.UPR.pdf
Pests of castor_Binomics_Identification_Dr.UPR.pdf
 
Engler and Prantl system of classification in plant taxonomy
Engler and Prantl system of classification in plant taxonomyEngler and Prantl system of classification in plant taxonomy
Engler and Prantl system of classification in plant taxonomy
 
Volatile Oils Pharmacognosy And Phytochemistry -I
Volatile Oils Pharmacognosy And Phytochemistry -IVolatile Oils Pharmacognosy And Phytochemistry -I
Volatile Oils Pharmacognosy And Phytochemistry -I
 
Is RISC-V ready for HPC workload? Maybe?
Is RISC-V ready for HPC workload? Maybe?Is RISC-V ready for HPC workload? Maybe?
Is RISC-V ready for HPC workload? Maybe?
 
Analytical Profile of Coleus Forskohlii | Forskolin .pdf
Analytical Profile of Coleus Forskohlii | Forskolin .pdfAnalytical Profile of Coleus Forskohlii | Forskolin .pdf
Analytical Profile of Coleus Forskohlii | Forskolin .pdf
 
Speech, hearing, noise, intelligibility.pptx
Speech, hearing, noise, intelligibility.pptxSpeech, hearing, noise, intelligibility.pptx
Speech, hearing, noise, intelligibility.pptx
 
BREEDING FOR RESISTANCE TO BIOTIC STRESS.pptx
BREEDING FOR RESISTANCE TO BIOTIC STRESS.pptxBREEDING FOR RESISTANCE TO BIOTIC STRESS.pptx
BREEDING FOR RESISTANCE TO BIOTIC STRESS.pptx
 
Vision and reflection on Mining Software Repositories research in 2024
Vision and reflection on Mining Software Repositories research in 2024Vision and reflection on Mining Software Repositories research in 2024
Vision and reflection on Mining Software Repositories research in 2024
 
Artificial Intelligence In Microbiology by Dr. Prince C P
Artificial Intelligence In Microbiology by Dr. Prince C PArtificial Intelligence In Microbiology by Dr. Prince C P
Artificial Intelligence In Microbiology by Dr. Prince C P
 
Manassas R - Parkside Middle School 🌎🏫
Manassas R - Parkside Middle School 🌎🏫Manassas R - Parkside Middle School 🌎🏫
Manassas R - Parkside Middle School 🌎🏫
 
RESPIRATORY ADAPTATIONS TO HYPOXIA IN HUMNAS.pptx
RESPIRATORY ADAPTATIONS TO HYPOXIA IN HUMNAS.pptxRESPIRATORY ADAPTATIONS TO HYPOXIA IN HUMNAS.pptx
RESPIRATORY ADAPTATIONS TO HYPOXIA IN HUMNAS.pptx
 
Twin's paradox experiment is a meassurement of the extra dimensions.pptx
Twin's paradox experiment is a meassurement of the extra dimensions.pptxTwin's paradox experiment is a meassurement of the extra dimensions.pptx
Twin's paradox experiment is a meassurement of the extra dimensions.pptx
 
Call Girls in Munirka Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Munirka Delhi 💯Call Us 🔝8264348440🔝Call Girls in Munirka Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Munirka Delhi 💯Call Us 🔝8264348440🔝
 
Call Girls in Munirka Delhi 💯Call Us 🔝9953322196🔝 💯Escort.
Call Girls in Munirka Delhi 💯Call Us 🔝9953322196🔝 💯Escort.Call Girls in Munirka Delhi 💯Call Us 🔝9953322196🔝 💯Escort.
Call Girls in Munirka Delhi 💯Call Us 🔝9953322196🔝 💯Escort.
 
TOPIC 8 Temperature and Heat.pdf physics
TOPIC 8 Temperature and Heat.pdf physicsTOPIC 8 Temperature and Heat.pdf physics
TOPIC 8 Temperature and Heat.pdf physics
 
STOPPED FLOW METHOD & APPLICATION MURUGAVENI B.pptx
STOPPED FLOW METHOD & APPLICATION MURUGAVENI B.pptxSTOPPED FLOW METHOD & APPLICATION MURUGAVENI B.pptx
STOPPED FLOW METHOD & APPLICATION MURUGAVENI B.pptx
 

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.