SlideShare uma empresa Scribd logo
1 de 14
Smith and waterman algorithm
Vimal Priya Subramanian
WhatisS-W
algorithm??
 The S-W algorithm performs in local sequence
alignment for determining two similar regions between
two strings nucleotide sequences or protein sequence.
 Instead of looking for entire sequence, S-W algorithm
compares sequence of all possible lengths and
optimizes similarity length.
 The algorithm was first proposed by Temple F.
Smith and Michael S. Waterman in 1981. Like
the Needleman–Wunsch algorithm, of which it is a variation,
Smith–Waterman is a dynamic programming algorithm.
 As such, it has the desirable property that it is guaranteed to
find the optimal local alignment with respect to the scoring
system being used (which includes the substitution
matrix and the gap-scoring scheme).
 The main difference to the Needleman–Wunsch algorithm is
that negative scoring matrix cells are set to zero, which
renders the (thus positively scoring) local alignments visible.
 Traceback procedure starts at the highest scoring matrix cell
and proceeds until a cell with score zero is encountered,
yielding the highest scoring local alignment.
Substitution
matrix and gap
penalty schemes
 A substitution matrix assigns each pair of bases or amino
acids a score for match or mismatch.
 Usually matches get positive scores, whereas
mismatches get relatively lower scores.
 A gap penalty function determines the score cost for
opening or extending gaps.
 It is suggested that users choose the appropriate scoring
system based on the goals.
 In addition, it is also a good practice to try different
combinations of substitution matrices and gap penalties.
Scoringmatrix
 The dimensions of the scoring matrix are 1+length of
each sequence respectively.
 All the elements of the first row and the first column are
set to 0.
 The extra first row and first column make it possible to
align one sequence to another at any position, and setting
them to 0 makes the terminal gap free from penalty.
Scoring
 Score each element from left to right, top to bottom in the
matrix, considering the outcomes of substitutions
(diagonal scores) or adding gaps (horizontal and vertical
scores).
 If none of the scores are positive, this element gets a 0.
Otherwise the highest score is used and the source of
that score is recorded.
Scoringmethod
forS-W
algorithm
Traceback
 Starting at the element with the highest score, traceback
based on the source of each score recursively, until 0 is
encountered.
 The segments that have the highest similarity score
based on the given scoring system is generated in this
process.
 To obtain the second best local alignment, apply the
traceback process starting at the second highest score
outside the trace of the best alignment.
smith - waterman algorithm.pptx
smith - waterman algorithm.pptx
smith - waterman algorithm.pptx

Mais conteúdo relacionado

Mais procurados

Mais procurados (20)

Clustal
ClustalClustal
Clustal
 
Sequence analysis - Bioinformatics
Sequence analysis - BioinformaticsSequence analysis - Bioinformatics
Sequence analysis - Bioinformatics
 
Global alignment
Global alignmentGlobal alignment
Global alignment
 
Sequence Alignment In Bioinformatics
Sequence Alignment In BioinformaticsSequence Alignment In Bioinformatics
Sequence Alignment In Bioinformatics
 
Sequence alignment
Sequence alignmentSequence alignment
Sequence alignment
 
Clustal W - Multiple Sequence alignment
Clustal W - Multiple Sequence alignment   Clustal W - Multiple Sequence alignment
Clustal W - Multiple Sequence alignment
 
MULTIPLE SEQUENCE ALIGNMENT
MULTIPLE  SEQUENCE  ALIGNMENTMULTIPLE  SEQUENCE  ALIGNMENT
MULTIPLE SEQUENCE ALIGNMENT
 
Bioinfromatics - local alignment
Bioinfromatics - local alignmentBioinfromatics - local alignment
Bioinfromatics - local alignment
 
Sequence alignment
Sequence alignmentSequence alignment
Sequence alignment
 
Multiple sequence alignment
Multiple sequence alignmentMultiple sequence alignment
Multiple sequence 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:-
 
Dynamic programming and pairwise sequence alignment
Dynamic programming and pairwise sequence alignmentDynamic programming and pairwise sequence alignment
Dynamic programming and pairwise sequence alignment
 
Multiple sequence alignment
Multiple sequence alignmentMultiple sequence alignment
Multiple sequence alignment
 
Sequence alignment
Sequence alignmentSequence alignment
Sequence alignment
 
Finding ORF
Finding ORFFinding ORF
Finding ORF
 
BLAST (Basic local alignment search Tool)
BLAST (Basic local alignment search Tool)BLAST (Basic local alignment search Tool)
BLAST (Basic local alignment search Tool)
 
Introduction to sequence alignment partii
Introduction to sequence alignment partiiIntroduction to sequence alignment partii
Introduction to sequence alignment partii
 
Blast
BlastBlast
Blast
 
Fasta
FastaFasta
Fasta
 
dot plot analysis
dot plot analysisdot plot analysis
dot plot analysis
 

Semelhante a smith - waterman algorithm.pptx

B.sc biochem i bobi u 3.1 sequence alignment
B.sc biochem i bobi u 3.1 sequence alignmentB.sc biochem i bobi u 3.1 sequence alignment
B.sc biochem i bobi u 3.1 sequence alignment
Rai University
 
B.sc biochem i bobi u 3.2 algorithm + blast
B.sc biochem i bobi u 3.2 algorithm + blastB.sc biochem i bobi u 3.2 algorithm + blast
B.sc biochem i bobi u 3.2 algorithm + blast
Rai University
 

Semelhante a smith - waterman algorithm.pptx (20)

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
 
Sequence Alignment
Sequence AlignmentSequence Alignment
Sequence Alignment
 
water Smith algorithmPresentation.pptx
water Smith algorithmPresentation.pptxwater Smith algorithmPresentation.pptx
water Smith algorithmPresentation.pptx
 
Sequence alignment unit 3
Sequence alignment unit 3Sequence alignment unit 3
Sequence alignment unit 3
 
B.sc biochem i bobi u 3.1 sequence alignment
B.sc biochem i bobi u 3.1 sequence alignmentB.sc biochem i bobi u 3.1 sequence alignment
B.sc biochem i bobi u 3.1 sequence alignment
 
B.sc biochem i bobi u 3.1 sequence alignment
B.sc biochem i bobi u 3.1 sequence alignmentB.sc biochem i bobi u 3.1 sequence alignment
B.sc biochem i bobi u 3.1 sequence alignment
 
B.sc biochem i bobi u 3.2 algorithm + blast
B.sc biochem i bobi u 3.2 algorithm + blastB.sc biochem i bobi u 3.2 algorithm + blast
B.sc biochem i bobi u 3.2 algorithm + blast
 
B.sc biochem i bobi u 3.2 algorithm + blast
B.sc biochem i bobi u 3.2 algorithm + blastB.sc biochem i bobi u 3.2 algorithm + blast
B.sc biochem i bobi u 3.2 algorithm + blast
 
Bioinformatics_Sequence Analysis
Bioinformatics_Sequence AnalysisBioinformatics_Sequence Analysis
Bioinformatics_Sequence Analysis
 
03 Data Mining Techniques
03 Data Mining Techniques03 Data Mining Techniques
03 Data Mining Techniques
 
Sequence alignments complete coverage
Sequence alignments complete coverageSequence alignments complete coverage
Sequence alignments complete coverage
 
Mathematics PPT.pptx
Mathematics PPT.pptxMathematics PPT.pptx
Mathematics PPT.pptx
 
Swaati algorithm of alignment ppt
Swaati algorithm of alignment pptSwaati algorithm of alignment ppt
Swaati algorithm of alignment ppt
 
Sequence alignment global vs. local
Sequence alignment  global vs. localSequence alignment  global vs. local
Sequence alignment global vs. local
 
multiple sequence and pairwise alignment.pdf
multiple sequence and pairwise alignment.pdfmultiple sequence and pairwise alignment.pdf
multiple sequence and pairwise alignment.pdf
 
Genetic Algorithm (1).pdf
Genetic Algorithm (1).pdfGenetic Algorithm (1).pdf
Genetic Algorithm (1).pdf
 
Correlation in Statistics
Correlation in StatisticsCorrelation in Statistics
Correlation in Statistics
 
AI 바이오 (4일차).pdf
AI 바이오 (4일차).pdfAI 바이오 (4일차).pdf
AI 바이오 (4일차).pdf
 
Bioinformatics
BioinformaticsBioinformatics
Bioinformatics
 
Sequence-analysis-pairwise-alignment.pdf
Sequence-analysis-pairwise-alignment.pdfSequence-analysis-pairwise-alignment.pdf
Sequence-analysis-pairwise-alignment.pdf
 

Mais de Vimal Priya subramanian

Mais de Vimal Priya subramanian (20)

BENTHAM and Hooker classification.ppt
BENTHAM and Hooker classification.pptBENTHAM and Hooker classification.ppt
BENTHAM and Hooker classification.ppt
 
Angiosperm Phylogeny Group.pptx
Angiosperm Phylogeny Group.pptxAngiosperm Phylogeny Group.pptx
Angiosperm Phylogeny Group.pptx
 
Research aproaches.pptx
Research aproaches.pptxResearch aproaches.pptx
Research aproaches.pptx
 
Forest Rights Act 2006.ppt
Forest Rights Act 2006.pptForest Rights Act 2006.ppt
Forest Rights Act 2006.ppt
 
chloroplast inheritance.ppt
chloroplast inheritance.pptchloroplast inheritance.ppt
chloroplast inheritance.ppt
 
nitrogen metabolism(1).vimalsubbu.pptx
nitrogen metabolism(1).vimalsubbu.pptxnitrogen metabolism(1).vimalsubbu.pptx
nitrogen metabolism(1).vimalsubbu.pptx
 
ginkoales.pptx
ginkoales.pptxginkoales.pptx
ginkoales.pptx
 
vimal subbu.pptx
vimal subbu.pptxvimal subbu.pptx
vimal subbu.pptx
 
Mushroom cultivation.pptx
Mushroom cultivation.pptxMushroom cultivation.pptx
Mushroom cultivation.pptx
 
GIS VIMAL SUBBU.17.08.2022.pptx
GIS VIMAL SUBBU.17.08.2022.pptxGIS VIMAL SUBBU.17.08.2022.pptx
GIS VIMAL SUBBU.17.08.2022.pptx
 
Exotics
ExoticsExotics
Exotics
 
man made forests-Vims.pptx
man made forests-Vims.pptxman made forests-Vims.pptx
man made forests-Vims.pptx
 
Two-component regulatory system.pptx
Two-component regulatory system.pptxTwo-component regulatory system.pptx
Two-component regulatory system.pptx
 
GOLGI BODIES.pptx
GOLGI BODIES.pptxGOLGI BODIES.pptx
GOLGI BODIES.pptx
 
Cell adhesion.pptx
Cell adhesion.pptxCell adhesion.pptx
Cell adhesion.pptx
 
phylogenetic analysis.pptx
phylogenetic analysis.pptxphylogenetic analysis.pptx
phylogenetic analysis.pptx
 
intellectual property right.pptx
intellectual property right.pptxintellectual property right.pptx
intellectual property right.pptx
 
Functional annotation.pptx
Functional annotation.pptxFunctional annotation.pptx
Functional annotation.pptx
 
Gene pyramiding
Gene pyramidingGene pyramiding
Gene pyramiding
 
microbial culture methods
microbial culture methodsmicrobial culture methods
microbial culture methods
 

Último

Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
PECB
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdf
Chris Hunter
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
ciinovamais
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
negromaestrong
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
QucHHunhnh
 

Último (20)

Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdf
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Role Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptxRole Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptx
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docx
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docx
 

smith - waterman algorithm.pptx

  • 1. Smith and waterman algorithm Vimal Priya Subramanian
  • 2. WhatisS-W algorithm??  The S-W algorithm performs in local sequence alignment for determining two similar regions between two strings nucleotide sequences or protein sequence.  Instead of looking for entire sequence, S-W algorithm compares sequence of all possible lengths and optimizes similarity length.
  • 3.  The algorithm was first proposed by Temple F. Smith and Michael S. Waterman in 1981. Like the Needleman–Wunsch algorithm, of which it is a variation, Smith–Waterman is a dynamic programming algorithm.  As such, it has the desirable property that it is guaranteed to find the optimal local alignment with respect to the scoring system being used (which includes the substitution matrix and the gap-scoring scheme).  The main difference to the Needleman–Wunsch algorithm is that negative scoring matrix cells are set to zero, which renders the (thus positively scoring) local alignments visible.  Traceback procedure starts at the highest scoring matrix cell and proceeds until a cell with score zero is encountered, yielding the highest scoring local alignment.
  • 4. Substitution matrix and gap penalty schemes  A substitution matrix assigns each pair of bases or amino acids a score for match or mismatch.  Usually matches get positive scores, whereas mismatches get relatively lower scores.  A gap penalty function determines the score cost for opening or extending gaps.  It is suggested that users choose the appropriate scoring system based on the goals.  In addition, it is also a good practice to try different combinations of substitution matrices and gap penalties.
  • 5. Scoringmatrix  The dimensions of the scoring matrix are 1+length of each sequence respectively.  All the elements of the first row and the first column are set to 0.  The extra first row and first column make it possible to align one sequence to another at any position, and setting them to 0 makes the terminal gap free from penalty.
  • 6.
  • 7.
  • 8. Scoring  Score each element from left to right, top to bottom in the matrix, considering the outcomes of substitutions (diagonal scores) or adding gaps (horizontal and vertical scores).  If none of the scores are positive, this element gets a 0. Otherwise the highest score is used and the source of that score is recorded.
  • 10.
  • 11. Traceback  Starting at the element with the highest score, traceback based on the source of each score recursively, until 0 is encountered.  The segments that have the highest similarity score based on the given scoring system is generated in this process.  To obtain the second best local alignment, apply the traceback process starting at the second highest score outside the trace of the best alignment.