SlideShare a Scribd company logo
1 of 21
1
2
Group Member
152-15-
5956
152-15-
5564
152-15-
5563
152-15-
5809
3
4
Why align sequences?
• Useful for discovering
• Functional
• Structural and
• Evolutionary relationship
– For example
• To find whether two (or more) genes or proteins are
evolutionarily related to each other
• Two proteins with similar sequences will probably be
structurally or functionally similar
5
Sabbir Ahmed
ID: 152-15-5564
6
Global Vs Local Alignment
• Global Alignment
– A general global alignment technique is the Needleman–Wunsch
algorithm, which is based on dynamic programming.
– Attempts to align the maximum of the entire sequence
– Suitable for similar and equal length sequences
• Local Alignment
– Local alignments are more useful for
dissimilar sequences that are suspected to contain regions of similarity or
similar sequence motifs within their larger sequence context.
– Stretches of sequences with highest density of matches are
aligned
– Suitable for partially similar, different length and conserved
region containing sequences
7
Mahmudul Alam
ID: 152-15-5563
8
9
Allows obtaining the optimal alignment with linear gap cost has
been proposed by Needleman and Wunsch by providing a
score, for each position of the aligned sequences.
Based on the dynamic programming technique.
For two sequences of length m and n we define a matrix of
dimensions m+1 and n+1.
Global Alignment
10
Global Alignment
 Three steps in dynamic programming
 Initialization
 Matrix fill (scoring)
 Traceback (alignment)
Smith–Waterman algorithm
11
Sequences:
S: ATTATCT
T: TTTCTA
T
S 0
_
A
T
T
A
T
C
T
_ T T T C T A
0
-1
-2
-3
-4
-5
-6
-7
-1 -2 -3 -4 -5 -6
0 -1 -2 -3 -4 -5
1 2 1 0 -1 -2
0 3 4 3 2 1
-1 2 3 4 3 4
-2 1 4 3 6 5
-3 0 3 6 5 6
-4 -1 2 5 8 7
Match Score =
+2
Mismatch Score
= 0
Gap Penalty = -1
12
0
_
A
T
T
A
T
C
T
_ T T T C T A
0
-1
-2
-3
-4
-5
-6
-7
-1 -2 -3 -4 -5 -6
0 -1 -2 -3 -4 -5
1 2 1 0 -1 -2
0 3 4 3 2 1
-1 2 3 4 3 4
-2 1 4 3 6 5
-3 0 3 6 5 6
-4 -1 2 5 8 7
T
S
13 Optimal Alignment:
S
T
No: of matches = 5
No: of gap = 2
(5 x 2) + (2 x -1) = 8
A T T A T C T
- T T – T C T
14
Mahmudul Hassan
ID: 152-15-5809
15
16
S/T 0 A T G A T G T A G
0 0 0 0 0 0 0 0 0 0 0
G 0 0 0
A 0
G 0
A 0
T 0
G 0
T 0
G 0
C 0
0 + 2 0 +-2
0 + -2 2
0 + 2 = 2
0 + -2 = 0
0 + -2 = 0
Match : 2, Mismatch : -1, Gap : -2
0 + -1 0 + -2
0 + -2 0
0 + 2 = 0
0 + -2 = 0
0 + -2 = 0
Matrix fill (scoring)
17
S/T 0 A T G A T G T A G
0 0 0 0 0 0 0 0 0 0 0
G 0 0 0 2 0 0 2 0 0 0
A 0 2 0 0 4 2 0 0 2 0
G 0 0 1 2 2 3 4 2 0 4
A 0 2 0 0 4 2 2 2 4 2
T 0 0 4 2 2 6 4 4 2 3
G 0 0 2 6 4 4 8 6 4 4
T 0 0 2 4 4 6 6 10 8 6
G 0 0 0 4 3 4 8 8 9 10
C 0 0 0 2 3 1 6 7 7 8
Match : 2, Mismatch : -1, Gap : -2
Matrix fill (scoring)
Trace back
18
S/T 0 A T G A T G T A G
0 0 0 0 0 0 0 0 0 0 0
G 0 0 0 2 0 0 2 0 0 0
A 0 2 0 0 4 2 0 0 2 0
G 0 0 1 2 2 3 4 2 0 4
A 0 2 0 0 4 2 2 2 4 2
T 0 0 4 2 2 6 4 4 2 3
G 0 0 2 6 4 4 8 6 4 4
T 0 0 2 4 4 6 6 10 8 6
G 0 0 0 4 3 4 8 8 9 10
C 0 0 0 2 3 1 6 7 7 8
Match : 2, Mismatch : -1, Gap : -2
Alignment
19
G A T G T A G
| | | | | | |
G A T G T - G
2 2 2 2 2 -2 2
6 X 2 = 12
1 X -2 = -2
10
G A T G T
| | | | |
G A T G T
2 2 2 2 2
5 X 2 = 10
10
20
21

More Related Content

What's hot

Statistical significance of alignments
Statistical significance of alignmentsStatistical significance of alignments
Statistical significance of alignments
avrilcoghlan
 
Gene Expression Data Analysis
Gene Expression Data AnalysisGene Expression Data Analysis
Gene Expression Data Analysis
Jhoirene Clemente
 

What's hot (20)

Statistical significance of alignments
Statistical significance of alignmentsStatistical significance of alignments
Statistical significance of alignments
 
The yeast two hybrid system and ChIP
The yeast two hybrid system and ChIPThe yeast two hybrid system and ChIP
The yeast two hybrid system and ChIP
 
Pyrosequencing
PyrosequencingPyrosequencing
Pyrosequencing
 
Sequence alignment
Sequence alignmentSequence alignment
Sequence alignment
 
Global and Local Sequence Alignment
Global and Local Sequence AlignmentGlobal and Local Sequence Alignment
Global and Local Sequence Alignment
 
Gene Expression Data Analysis
Gene Expression Data AnalysisGene Expression Data Analysis
Gene Expression Data Analysis
 
Clustal
ClustalClustal
Clustal
 
Whole Genome Sequencing Analysis
Whole Genome Sequencing AnalysisWhole Genome Sequencing Analysis
Whole Genome Sequencing Analysis
 
S1 Mapping
S1 Mapping  S1 Mapping
S1 Mapping
 
Uni prot presentation
Uni prot presentationUni prot presentation
Uni prot presentation
 
Clustal W - Multiple Sequence alignment
Clustal W - Multiple Sequence alignment   Clustal W - Multiple Sequence alignment
Clustal W - Multiple Sequence alignment
 
DNA microarray final ppt.
DNA microarray final ppt.DNA microarray final ppt.
DNA microarray final ppt.
 
dot plot analysis
dot plot analysisdot plot analysis
dot plot analysis
 
Sequence similarity tools.pptx
Sequence similarity tools.pptxSequence similarity tools.pptx
Sequence similarity tools.pptx
 
Bioinfromatics - local alignment
Bioinfromatics - local alignmentBioinfromatics - local alignment
Bioinfromatics - local alignment
 
Introduction to next generation sequencing
Introduction to next generation sequencingIntroduction to next generation sequencing
Introduction to next generation sequencing
 
PCR Primer desining
PCR Primer desiningPCR Primer desining
PCR Primer desining
 
cohesive and blunt end ligation
cohesive and blunt end ligationcohesive and blunt end ligation
cohesive and blunt end ligation
 
Cloning vectors based on m13 and lambda bacteriophage
Cloning vectors based on m13 and lambda bacteriophageCloning vectors based on m13 and lambda bacteriophage
Cloning vectors based on m13 and lambda bacteriophage
 
Sequence alig Sequence Alignment Pairwise alignment:-
Sequence alig Sequence Alignment Pairwise alignment:-Sequence alig Sequence Alignment Pairwise alignment:-
Sequence alig Sequence Alignment Pairwise alignment:-
 

Similar to Global and local alignment in Bioinformatics

2016.09.28TOPIC REVIEW• Exam • PS2 Sequence Alignment .docx
2016.09.28TOPIC REVIEW• Exam • PS2 Sequence Alignment .docx2016.09.28TOPIC REVIEW• Exam • PS2 Sequence Alignment .docx
2016.09.28TOPIC REVIEW• Exam • PS2 Sequence Alignment .docx
felicidaddinwoodie
 
Alg 1 ch. 3.5 Compound Inequalities
Alg 1 ch. 3.5 Compound InequalitiesAlg 1 ch. 3.5 Compound Inequalities
Alg 1 ch. 3.5 Compound Inequalities
Kathy Favazza
 

Similar to Global and local alignment in Bioinformatics (20)

Global and local alignment (bioinformatics)
Global and local alignment (bioinformatics)Global and local alignment (bioinformatics)
Global and local alignment (bioinformatics)
 
Global alignment
Global alignmentGlobal alignment
Global alignment
 
2016.09.28TOPIC REVIEW• Exam • PS2 Sequence Alignment .docx
2016.09.28TOPIC REVIEW• Exam • PS2 Sequence Alignment .docx2016.09.28TOPIC REVIEW• Exam • PS2 Sequence Alignment .docx
2016.09.28TOPIC REVIEW• Exam • PS2 Sequence Alignment .docx
 
Sequence Analysis.ppt
Sequence Analysis.pptSequence Analysis.ppt
Sequence Analysis.ppt
 
Ch06 alignment
Ch06 alignmentCh06 alignment
Ch06 alignment
 
Alg 1 ch. 3.5
Alg 1 ch. 3.5Alg 1 ch. 3.5
Alg 1 ch. 3.5
 
Puanumrahdalimon
PuanumrahdalimonPuanumrahdalimon
Puanumrahdalimon
 
Video Compression, Part 2-Section 2, Video Coding Concepts
Video Compression, Part 2-Section 2, Video Coding Concepts Video Compression, Part 2-Section 2, Video Coding Concepts
Video Compression, Part 2-Section 2, Video Coding Concepts
 
Alg 1 ch. 3.5 Compound Inequalities
Alg 1 ch. 3.5 Compound InequalitiesAlg 1 ch. 3.5 Compound Inequalities
Alg 1 ch. 3.5 Compound Inequalities
 
Sequence Alignment
Sequence AlignmentSequence Alignment
Sequence Alignment
 
Similarity
SimilaritySimilarity
Similarity
 
Genetic Algorithm (GA) Optimization - Step-by-Step Example
Genetic Algorithm (GA) Optimization - Step-by-Step ExampleGenetic Algorithm (GA) Optimization - Step-by-Step Example
Genetic Algorithm (GA) Optimization - Step-by-Step Example
 
(SAC2020 SVT-2) Constrained Detecting Arrays for Fault Localization in Combin...
(SAC2020 SVT-2) Constrained Detecting Arrays for Fault Localization in Combin...(SAC2020 SVT-2) Constrained Detecting Arrays for Fault Localization in Combin...
(SAC2020 SVT-2) Constrained Detecting Arrays for Fault Localization in Combin...
 
Computer Vision: Correlation, Convolution, and Gradient
Computer Vision: Correlation, Convolution, and GradientComputer Vision: Correlation, Convolution, and Gradient
Computer Vision: Correlation, Convolution, and Gradient
 
SUEC 高中 Adv Maths (Matrix) (Part 3).pptx
SUEC 高中 Adv Maths (Matrix) (Part 3).pptxSUEC 高中 Adv Maths (Matrix) (Part 3).pptx
SUEC 高中 Adv Maths (Matrix) (Part 3).pptx
 
Overview of sparse and low-rank matrix / tensor techniques
Overview of sparse and low-rank matrix / tensor techniques Overview of sparse and low-rank matrix / tensor techniques
Overview of sparse and low-rank matrix / tensor techniques
 
Bioinformatics life sciences_v2015
Bioinformatics life sciences_v2015Bioinformatics life sciences_v2015
Bioinformatics life sciences_v2015
 
Trignometary
TrignometaryTrignometary
Trignometary
 
Trignometary
TrignometaryTrignometary
Trignometary
 
Ecuaciones metodos gauss jordan
Ecuaciones metodos gauss jordanEcuaciones metodos gauss jordan
Ecuaciones metodos gauss jordan
 

More from Mahmudul Alam (6)

Grocery Mangement Project in C
Grocery Mangement Project in CGrocery Mangement Project in C
Grocery Mangement Project in C
 
Lagrange equation and its application
Lagrange equation and its applicationLagrange equation and its application
Lagrange equation and its application
 
Big data
Big dataBig data
Big data
 
Superposition and norton Theorem
Superposition and norton TheoremSuperposition and norton Theorem
Superposition and norton Theorem
 
Tourism in-bangladesh
Tourism in-bangladeshTourism in-bangladesh
Tourism in-bangladesh
 
স্মার্টফোন রেডিয়েশন কি ক্যান্সার ঘটায়?
স্মার্টফোন রেডিয়েশন কি ক্যান্সার ঘটায়?স্মার্টফোন রেডিয়েশন কি ক্যান্সার ঘটায়?
স্মার্টফোন রেডিয়েশন কি ক্যান্সার ঘটায়?
 

Recently uploaded

Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
KarakKing
 

Recently uploaded (20)

Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
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
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
Plant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptxPlant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptx
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxOn_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
 
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
 
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxExploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptx
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptx
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
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
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 

Global and local alignment in Bioinformatics

  • 1. 1
  • 3. 3
  • 4. 4 Why align sequences? • Useful for discovering • Functional • Structural and • Evolutionary relationship – For example • To find whether two (or more) genes or proteins are evolutionarily related to each other • Two proteins with similar sequences will probably be structurally or functionally similar
  • 6. 6 Global Vs Local Alignment • Global Alignment – A general global alignment technique is the Needleman–Wunsch algorithm, which is based on dynamic programming. – Attempts to align the maximum of the entire sequence – Suitable for similar and equal length sequences • Local Alignment – Local alignments are more useful for dissimilar sequences that are suspected to contain regions of similarity or similar sequence motifs within their larger sequence context. – Stretches of sequences with highest density of matches are aligned – Suitable for partially similar, different length and conserved region containing sequences
  • 8. 8
  • 9. 9 Allows obtaining the optimal alignment with linear gap cost has been proposed by Needleman and Wunsch by providing a score, for each position of the aligned sequences. Based on the dynamic programming technique. For two sequences of length m and n we define a matrix of dimensions m+1 and n+1. Global Alignment
  • 10. 10 Global Alignment  Three steps in dynamic programming  Initialization  Matrix fill (scoring)  Traceback (alignment) Smith–Waterman algorithm
  • 11. 11 Sequences: S: ATTATCT T: TTTCTA T S 0 _ A T T A T C T _ T T T C T A 0 -1 -2 -3 -4 -5 -6 -7 -1 -2 -3 -4 -5 -6 0 -1 -2 -3 -4 -5 1 2 1 0 -1 -2 0 3 4 3 2 1 -1 2 3 4 3 4 -2 1 4 3 6 5 -3 0 3 6 5 6 -4 -1 2 5 8 7 Match Score = +2 Mismatch Score = 0 Gap Penalty = -1
  • 12. 12 0 _ A T T A T C T _ T T T C T A 0 -1 -2 -3 -4 -5 -6 -7 -1 -2 -3 -4 -5 -6 0 -1 -2 -3 -4 -5 1 2 1 0 -1 -2 0 3 4 3 2 1 -1 2 3 4 3 4 -2 1 4 3 6 5 -3 0 3 6 5 6 -4 -1 2 5 8 7 T S
  • 13. 13 Optimal Alignment: S T No: of matches = 5 No: of gap = 2 (5 x 2) + (2 x -1) = 8 A T T A T C T - T T – T C T
  • 15. 15
  • 16. 16 S/T 0 A T G A T G T A G 0 0 0 0 0 0 0 0 0 0 0 G 0 0 0 A 0 G 0 A 0 T 0 G 0 T 0 G 0 C 0 0 + 2 0 +-2 0 + -2 2 0 + 2 = 2 0 + -2 = 0 0 + -2 = 0 Match : 2, Mismatch : -1, Gap : -2 0 + -1 0 + -2 0 + -2 0 0 + 2 = 0 0 + -2 = 0 0 + -2 = 0 Matrix fill (scoring)
  • 17. 17 S/T 0 A T G A T G T A G 0 0 0 0 0 0 0 0 0 0 0 G 0 0 0 2 0 0 2 0 0 0 A 0 2 0 0 4 2 0 0 2 0 G 0 0 1 2 2 3 4 2 0 4 A 0 2 0 0 4 2 2 2 4 2 T 0 0 4 2 2 6 4 4 2 3 G 0 0 2 6 4 4 8 6 4 4 T 0 0 2 4 4 6 6 10 8 6 G 0 0 0 4 3 4 8 8 9 10 C 0 0 0 2 3 1 6 7 7 8 Match : 2, Mismatch : -1, Gap : -2 Matrix fill (scoring)
  • 18. Trace back 18 S/T 0 A T G A T G T A G 0 0 0 0 0 0 0 0 0 0 0 G 0 0 0 2 0 0 2 0 0 0 A 0 2 0 0 4 2 0 0 2 0 G 0 0 1 2 2 3 4 2 0 4 A 0 2 0 0 4 2 2 2 4 2 T 0 0 4 2 2 6 4 4 2 3 G 0 0 2 6 4 4 8 6 4 4 T 0 0 2 4 4 6 6 10 8 6 G 0 0 0 4 3 4 8 8 9 10 C 0 0 0 2 3 1 6 7 7 8 Match : 2, Mismatch : -1, Gap : -2
  • 19. Alignment 19 G A T G T A G | | | | | | | G A T G T - G 2 2 2 2 2 -2 2 6 X 2 = 12 1 X -2 = -2 10 G A T G T | | | | | G A T G T 2 2 2 2 2 5 X 2 = 10 10
  • 20. 20
  • 21. 21