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)

smith - waterman algorithm.pptx
smith - waterman algorithm.pptxsmith - waterman algorithm.pptx
smith - waterman algorithm.pptx
 
Blast and fasta
Blast and fastaBlast and fasta
Blast and fasta
 
blast bioinformatics
blast bioinformaticsblast bioinformatics
blast bioinformatics
 
Proteins databases
Proteins databasesProteins databases
Proteins databases
 
Bioinfromatics - local alignment
Bioinfromatics - local alignmentBioinfromatics - local alignment
Bioinfromatics - local alignment
 
Sequence alig Sequence Alignment Pairwise alignment:-
Sequence alig Sequence Alignment Pairwise alignment:-Sequence alig Sequence Alignment Pairwise alignment:-
Sequence alig Sequence Alignment Pairwise alignment:-
 
Gen bank databases
Gen bank databasesGen bank databases
Gen bank databases
 
Global alignment
Global alignmentGlobal alignment
Global alignment
 
Blast Algorithm
Blast AlgorithmBlast Algorithm
Blast Algorithm
 
Protein protein interactions
Protein protein interactionsProtein protein interactions
Protein protein interactions
 
BLAST
BLASTBLAST
BLAST
 
Multiple sequence alignment
Multiple sequence alignmentMultiple sequence alignment
Multiple sequence alignment
 
Sequence Alignment In Bioinformatics
Sequence Alignment In BioinformaticsSequence Alignment In Bioinformatics
Sequence Alignment In Bioinformatics
 
Structural databases
Structural databases Structural databases
Structural databases
 
PAM : Point Accepted Mutation
PAM : Point Accepted MutationPAM : Point Accepted Mutation
PAM : Point Accepted Mutation
 
Bioinformatics data mining
Bioinformatics data miningBioinformatics data mining
Bioinformatics data mining
 
Clustal W - Multiple Sequence alignment
Clustal W - Multiple Sequence alignment   Clustal W - Multiple Sequence alignment
Clustal W - Multiple Sequence alignment
 
Sequence Alignment
Sequence AlignmentSequence Alignment
Sequence Alignment
 
sequence alignment
sequence alignmentsequence alignment
sequence alignment
 
UPGMA
UPGMAUPGMA
UPGMA
 

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
 
Pairwise sequence alignment
Pairwise sequence alignmentPairwise sequence alignment
Pairwise sequence alignmentavrilcoghlan
 
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
 
Introduction to sequence alignment
Introduction to sequence alignmentIntroduction to sequence alignment
Introduction to sequence alignmentKubuldinho
 
Molecular docking
Molecular dockingMolecular docking
Molecular dockingpalliyath91
 
Molecular docking
Molecular dockingMolecular docking
Molecular dockingRahul B S
 

Viewers also liked (9)

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
 
Pairwise sequence alignment
Pairwise sequence alignmentPairwise sequence alignment
Pairwise sequence alignment
 
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
 

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
 
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)Pramit Kumar
 

Similar to Needleman-wunch algorithm harshita (20)

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
 
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)
 

Recently uploaded

Biogenic Sulfur Gases as Biosignatures on Temperate Sub-Neptune Waterworlds
Biogenic Sulfur Gases as Biosignatures on Temperate Sub-Neptune WaterworldsBiogenic Sulfur Gases as Biosignatures on Temperate Sub-Neptune Waterworlds
Biogenic Sulfur Gases as Biosignatures on Temperate Sub-Neptune WaterworldsSérgio Sacani
 
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 Servicenishacall1
 
FAIRSpectra - Enabling the FAIRification of Spectroscopy and Spectrometry
FAIRSpectra - Enabling the FAIRification of Spectroscopy and SpectrometryFAIRSpectra - Enabling the FAIRification of Spectroscopy and Spectrometry
FAIRSpectra - Enabling the FAIRification of Spectroscopy and SpectrometryAlex Henderson
 
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.pdfPirithiRaju
 
Zoology 4th semester series (krishna).pdf
Zoology 4th semester series (krishna).pdfZoology 4th semester series (krishna).pdf
Zoology 4th semester series (krishna).pdfSumit Kumar yadav
 
GBSN - Microbiology (Unit 3)
GBSN - Microbiology (Unit 3)GBSN - Microbiology (Unit 3)
GBSN - Microbiology (Unit 3)Areesha Ahmad
 
SCIENCE-4-QUARTER4-WEEK-4-PPT-1 (1).pptx
SCIENCE-4-QUARTER4-WEEK-4-PPT-1 (1).pptxSCIENCE-4-QUARTER4-WEEK-4-PPT-1 (1).pptx
SCIENCE-4-QUARTER4-WEEK-4-PPT-1 (1).pptxRizalinePalanog2
 
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...chandars293
 
Hire 💕 9907093804 Hooghly Call Girls Service Call Girls Agency
Hire 💕 9907093804 Hooghly Call Girls Service Call Girls AgencyHire 💕 9907093804 Hooghly Call Girls Service Call Girls Agency
Hire 💕 9907093804 Hooghly Call Girls Service Call Girls AgencySheetal Arora
 
Connaught Place, Delhi Call girls :8448380779 Model Escorts | 100% verified
Connaught Place, Delhi Call girls :8448380779 Model Escorts | 100% verifiedConnaught Place, Delhi Call girls :8448380779 Model Escorts | 100% verified
Connaught Place, Delhi Call girls :8448380779 Model Escorts | 100% verifiedDelhi Call girls
 
Nightside clouds and disequilibrium chemistry on the hot Jupiter WASP-43b
Nightside clouds and disequilibrium chemistry on the hot Jupiter WASP-43bNightside clouds and disequilibrium chemistry on the hot Jupiter WASP-43b
Nightside clouds and disequilibrium chemistry on the hot Jupiter WASP-43bSérgio Sacani
 
Botany 4th semester series (krishna).pdf
Botany 4th semester series (krishna).pdfBotany 4th semester series (krishna).pdf
Botany 4th semester series (krishna).pdfSumit Kumar yadav
 
Conjugation, transduction and transformation
Conjugation, transduction and transformationConjugation, transduction and transformation
Conjugation, transduction and transformationAreesha Ahmad
 
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 GIRLkantirani197
 
Bacterial Identification and Classifications
Bacterial Identification and ClassificationsBacterial Identification and Classifications
Bacterial Identification and ClassificationsAreesha Ahmad
 
Formation of low mass protostars and their circumstellar disks
Formation of low mass protostars and their circumstellar disksFormation of low mass protostars and their circumstellar disks
Formation of low mass protostars and their circumstellar disksSérgio Sacani
 
Nanoparticles synthesis and characterization​ ​
Nanoparticles synthesis and characterization​  ​Nanoparticles synthesis and characterization​  ​
Nanoparticles synthesis and characterization​ ​kaibalyasahoo82800
 
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 6000Sapana Sha
 
Pulmonary drug delivery system M.pharm -2nd sem P'ceutics
Pulmonary drug delivery system M.pharm -2nd sem P'ceuticsPulmonary drug delivery system M.pharm -2nd sem P'ceutics
Pulmonary drug delivery system M.pharm -2nd sem P'ceuticssakshisoni2385
 

Recently uploaded (20)

Biogenic Sulfur Gases as Biosignatures on Temperate Sub-Neptune Waterworlds
Biogenic Sulfur Gases as Biosignatures on Temperate Sub-Neptune WaterworldsBiogenic Sulfur Gases as Biosignatures on Temperate Sub-Neptune Waterworlds
Biogenic Sulfur Gases as Biosignatures on Temperate Sub-Neptune Waterworlds
 
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
 
FAIRSpectra - Enabling the FAIRification of Spectroscopy and Spectrometry
FAIRSpectra - Enabling the FAIRification of Spectroscopy and SpectrometryFAIRSpectra - Enabling the FAIRification of Spectroscopy and Spectrometry
FAIRSpectra - Enabling the FAIRification of Spectroscopy and Spectrometry
 
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
 
Zoology 4th semester series (krishna).pdf
Zoology 4th semester series (krishna).pdfZoology 4th semester series (krishna).pdf
Zoology 4th semester series (krishna).pdf
 
GBSN - Microbiology (Unit 3)
GBSN - Microbiology (Unit 3)GBSN - Microbiology (Unit 3)
GBSN - Microbiology (Unit 3)
 
CELL -Structural and Functional unit of life.pdf
CELL -Structural and Functional unit of life.pdfCELL -Structural and Functional unit of life.pdf
CELL -Structural and Functional unit of life.pdf
 
SCIENCE-4-QUARTER4-WEEK-4-PPT-1 (1).pptx
SCIENCE-4-QUARTER4-WEEK-4-PPT-1 (1).pptxSCIENCE-4-QUARTER4-WEEK-4-PPT-1 (1).pptx
SCIENCE-4-QUARTER4-WEEK-4-PPT-1 (1).pptx
 
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...
 
Hire 💕 9907093804 Hooghly Call Girls Service Call Girls Agency
Hire 💕 9907093804 Hooghly Call Girls Service Call Girls AgencyHire 💕 9907093804 Hooghly Call Girls Service Call Girls Agency
Hire 💕 9907093804 Hooghly Call Girls Service Call Girls Agency
 
Connaught Place, Delhi Call girls :8448380779 Model Escorts | 100% verified
Connaught Place, Delhi Call girls :8448380779 Model Escorts | 100% verifiedConnaught Place, Delhi Call girls :8448380779 Model Escorts | 100% verified
Connaught Place, Delhi Call girls :8448380779 Model Escorts | 100% verified
 
Nightside clouds and disequilibrium chemistry on the hot Jupiter WASP-43b
Nightside clouds and disequilibrium chemistry on the hot Jupiter WASP-43bNightside clouds and disequilibrium chemistry on the hot Jupiter WASP-43b
Nightside clouds and disequilibrium chemistry on the hot Jupiter WASP-43b
 
Botany 4th semester series (krishna).pdf
Botany 4th semester series (krishna).pdfBotany 4th semester series (krishna).pdf
Botany 4th semester series (krishna).pdf
 
Conjugation, transduction and transformation
Conjugation, transduction and transformationConjugation, transduction and transformation
Conjugation, transduction and transformation
 
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
 
Bacterial Identification and Classifications
Bacterial Identification and ClassificationsBacterial Identification and Classifications
Bacterial Identification and Classifications
 
Formation of low mass protostars and their circumstellar disks
Formation of low mass protostars and their circumstellar disksFormation of low mass protostars and their circumstellar disks
Formation of low mass protostars and their circumstellar disks
 
Nanoparticles synthesis and characterization​ ​
Nanoparticles synthesis and characterization​  ​Nanoparticles synthesis and characterization​  ​
Nanoparticles synthesis and characterization​ ​
 
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
 
Pulmonary drug delivery system M.pharm -2nd sem P'ceutics
Pulmonary drug delivery system M.pharm -2nd sem P'ceuticsPulmonary drug delivery system M.pharm -2nd sem P'ceutics
Pulmonary drug delivery system M.pharm -2nd sem P'ceutics
 

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.