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

Needleman-wunch algorithm harshita
Needleman-wunch algorithm  harshitaNeedleman-wunch algorithm  harshita
Needleman-wunch algorithm harshita
Harshita Bhawsar
 
Global and local alignment (bioinformatics)
Global and local alignment (bioinformatics)Global and local alignment (bioinformatics)
Global and local alignment (bioinformatics)
Pritom Chaki
 
Sequence alignment global vs. local
Sequence alignment  global vs. localSequence alignment  global vs. local
Sequence alignment global vs. local
benazeer fathima
 
Blast and fasta
Blast and fastaBlast and fasta
Blast and fasta
ALLIENU
 
Finding ORF
Finding ORFFinding ORF
Finding ORF
Sabahat Ali
 
FASTA
FASTAFASTA
The Smith Waterman algorithm
The Smith Waterman algorithmThe Smith Waterman algorithm
The Smith Waterman algorithm
avrilcoghlan
 
blast bioinformatics
blast bioinformaticsblast bioinformatics
blast bioinformatics
Sardar Harpreet Kalsi
 
Genome annotation
Genome annotationGenome annotation
Genome annotation
Shifa Ansari
 
smith - waterman algorithm.pptx
smith - waterman algorithm.pptxsmith - waterman algorithm.pptx
smith - waterman algorithm.pptx
Vimal Priya subramanian
 
methods for protein structure prediction
methods for protein structure predictionmethods for protein structure prediction
methods for protein structure prediction
karamveer prajapat
 
Multiple sequence alignment
Multiple sequence alignmentMultiple sequence alignment
Multiple sequence alignment
Afra Fathima
 
Phylogenetic analysis
Phylogenetic analysis Phylogenetic analysis
Phylogenetic analysis
Nitin Naik
 
sequence alignment
sequence alignmentsequence alignment
sequence alignment
ammar kareem
 
Sequence Analysis
Sequence AnalysisSequence Analysis
Sequence Analysis
Meghaj Mallick
 
BLAST
BLASTBLAST
Sequence comparison techniques
Sequence comparison techniquesSequence comparison techniques
Sequence comparison techniques
ruchibioinfo
 
Gene prediction methods vijay
Gene prediction methods  vijayGene prediction methods  vijay
Gene prediction methods vijay
Vijay Hemmadi
 
shotgun sequncing
 shotgun sequncing shotgun sequncing
shotgun sequncing
SAIFALI444
 
genome sequencing, types by kk sahu sir
genome sequencing, types by kk sahu sirgenome sequencing, types by kk sahu sir
genome sequencing, types by kk sahu sir
KAUSHAL SAHU
 

What's hot (20)

Needleman-wunch algorithm harshita
Needleman-wunch algorithm  harshitaNeedleman-wunch algorithm  harshita
Needleman-wunch algorithm harshita
 
Global and local alignment (bioinformatics)
Global and local alignment (bioinformatics)Global and local alignment (bioinformatics)
Global and local alignment (bioinformatics)
 
Sequence alignment global vs. local
Sequence alignment  global vs. localSequence alignment  global vs. local
Sequence alignment global vs. local
 
Blast and fasta
Blast and fastaBlast and fasta
Blast and fasta
 
Finding ORF
Finding ORFFinding ORF
Finding ORF
 
FASTA
FASTAFASTA
FASTA
 
The Smith Waterman algorithm
The Smith Waterman algorithmThe Smith Waterman algorithm
The Smith Waterman algorithm
 
blast bioinformatics
blast bioinformaticsblast bioinformatics
blast bioinformatics
 
Genome annotation
Genome annotationGenome annotation
Genome annotation
 
smith - waterman algorithm.pptx
smith - waterman algorithm.pptxsmith - waterman algorithm.pptx
smith - waterman algorithm.pptx
 
methods for protein structure prediction
methods for protein structure predictionmethods for protein structure prediction
methods for protein structure prediction
 
Multiple sequence alignment
Multiple sequence alignmentMultiple sequence alignment
Multiple sequence alignment
 
Phylogenetic analysis
Phylogenetic analysis Phylogenetic analysis
Phylogenetic analysis
 
sequence alignment
sequence alignmentsequence alignment
sequence alignment
 
Sequence Analysis
Sequence AnalysisSequence Analysis
Sequence Analysis
 
BLAST
BLASTBLAST
BLAST
 
Sequence comparison techniques
Sequence comparison techniquesSequence comparison techniques
Sequence comparison techniques
 
Gene prediction methods vijay
Gene prediction methods  vijayGene prediction methods  vijay
Gene prediction methods vijay
 
shotgun sequncing
 shotgun sequncing shotgun sequncing
shotgun sequncing
 
genome sequencing, types by kk sahu sir
genome sequencing, types by kk sahu sirgenome sequencing, types by kk sahu sir
genome sequencing, types by kk sahu sir
 

Similar to Global and local alignment in Bioinformatics

Global alignment
Global alignmentGlobal alignment
Global alignment
Pinky Vincent
 
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
 
20100515 bioinformatics kapushesky_lecture07
20100515 bioinformatics kapushesky_lecture0720100515 bioinformatics kapushesky_lecture07
20100515 bioinformatics kapushesky_lecture07
Computer Science Club
 
Ch06 alignment
Ch06 alignmentCh06 alignment
Ch06 alignment
BioinformaticsInstitute
 
Alg 1 ch. 3.5
Alg 1 ch. 3.5Alg 1 ch. 3.5
Alg 1 ch. 3.5
Kathy Favazza
 
Puanumrahdalimon
PuanumrahdalimonPuanumrahdalimon
Puanumrahdalimon
Zahari Rusdi
 
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
Dr. Mohieddin Moradi
 
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
 
Sequence Alignment
Sequence AlignmentSequence Alignment
Sequence Alignment
Alexander Niema Moshiri
 
Similarity
SimilaritySimilarity
Similarity
hiratufail
 
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
Ahmed Gad
 
(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...
Hao Jin
 
Computer Vision: Correlation, Convolution, and Gradient
Computer Vision: Correlation, Convolution, and GradientComputer Vision: Correlation, Convolution, and Gradient
Computer Vision: Correlation, Convolution, and Gradient
Ahmed Gad
 
A Methodology for Automatic GPU Kernel Optimization - NECSTTechTalk 4/06/2020
A Methodology for Automatic GPU Kernel Optimization - NECSTTechTalk 4/06/2020A Methodology for Automatic GPU Kernel Optimization - NECSTTechTalk 4/06/2020
A Methodology for Automatic GPU Kernel Optimization - NECSTTechTalk 4/06/2020
NECST Lab @ Politecnico di Milano
 
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
tungwc
 
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
Alexander Litvinenko
 
Bioinformatics life sciences_v2015
Bioinformatics life sciences_v2015Bioinformatics life sciences_v2015
Bioinformatics life sciences_v2015
Prof. Wim Van Criekinge
 
Trignometary
TrignometaryTrignometary
Trignometary
sahilsahil992
 
Trignometary
TrignometaryTrignometary
Trignometary
sahilsahil992
 
Bioinfromatics - local alignment
Bioinfromatics - local alignmentBioinfromatics - local alignment
Bioinfromatics - local alignment
Vivek Chandramohan
 

Similar to Global and local alignment in Bioinformatics (20)

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
 
20100515 bioinformatics kapushesky_lecture07
20100515 bioinformatics kapushesky_lecture0720100515 bioinformatics kapushesky_lecture07
20100515 bioinformatics kapushesky_lecture07
 
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
 
A Methodology for Automatic GPU Kernel Optimization - NECSTTechTalk 4/06/2020
A Methodology for Automatic GPU Kernel Optimization - NECSTTechTalk 4/06/2020A Methodology for Automatic GPU Kernel Optimization - NECSTTechTalk 4/06/2020
A Methodology for Automatic GPU Kernel Optimization - NECSTTechTalk 4/06/2020
 
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
 
Bioinfromatics - local alignment
Bioinfromatics - local alignmentBioinfromatics - local alignment
Bioinfromatics - local alignment
 

More from Mahmudul Alam

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

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

Wound healing PPT
Wound healing PPTWound healing PPT
Wound healing PPT
Jyoti Chand
 
Hindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdfHindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdf
Dr. Mulla Adam Ali
 
MARY JANE WILSON, A “BOA MÃE” .
MARY JANE WILSON, A “BOA MÃE”           .MARY JANE WILSON, A “BOA MÃE”           .
MARY JANE WILSON, A “BOA MÃE” .
Colégio Santa Teresinha
 
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem studentsRHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
Himanshu Rai
 
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptxC1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
mulvey2
 
BBR 2024 Summer Sessions Interview Training
BBR  2024 Summer Sessions Interview TrainingBBR  2024 Summer Sessions Interview Training
BBR 2024 Summer Sessions Interview Training
Katrina Pritchard
 
PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.
Dr. Shivangi Singh Parihar
 
spot a liar (Haiqa 146).pptx Technical writhing and presentation skills
spot a liar (Haiqa 146).pptx Technical writhing and presentation skillsspot a liar (Haiqa 146).pptx Technical writhing and presentation skills
spot a liar (Haiqa 146).pptx Technical writhing and presentation skills
haiqairshad
 
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptxBeyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
EduSkills OECD
 
Walmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdfWalmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdf
TechSoup
 
How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17
Celine George
 
A Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdfA Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdf
Jean Carlos Nunes Paixão
 
How to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 InventoryHow to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 Inventory
Celine George
 
Leveraging Generative AI to Drive Nonprofit Innovation
Leveraging Generative AI to Drive Nonprofit InnovationLeveraging Generative AI to Drive Nonprofit Innovation
Leveraging Generative AI to Drive Nonprofit Innovation
TechSoup
 
Chapter wise All Notes of First year Basic Civil Engineering.pptx
Chapter wise All Notes of First year Basic Civil Engineering.pptxChapter wise All Notes of First year Basic Civil Engineering.pptx
Chapter wise All Notes of First year Basic Civil Engineering.pptx
Denish Jangid
 
How to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRMHow to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRM
Celine George
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
Nguyen Thanh Tu Collection
 
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdfবাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
eBook.com.bd (প্রয়োজনীয় বাংলা বই)
 
How to deliver Powerpoint Presentations.pptx
How to deliver Powerpoint  Presentations.pptxHow to deliver Powerpoint  Presentations.pptx
How to deliver Powerpoint Presentations.pptx
HajraNaeem15
 
How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17
Celine George
 

Recently uploaded (20)

Wound healing PPT
Wound healing PPTWound healing PPT
Wound healing PPT
 
Hindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdfHindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdf
 
MARY JANE WILSON, A “BOA MÃE” .
MARY JANE WILSON, A “BOA MÃE”           .MARY JANE WILSON, A “BOA MÃE”           .
MARY JANE WILSON, A “BOA MÃE” .
 
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem studentsRHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
 
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptxC1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
 
BBR 2024 Summer Sessions Interview Training
BBR  2024 Summer Sessions Interview TrainingBBR  2024 Summer Sessions Interview Training
BBR 2024 Summer Sessions Interview Training
 
PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.
 
spot a liar (Haiqa 146).pptx Technical writhing and presentation skills
spot a liar (Haiqa 146).pptx Technical writhing and presentation skillsspot a liar (Haiqa 146).pptx Technical writhing and presentation skills
spot a liar (Haiqa 146).pptx Technical writhing and presentation skills
 
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptxBeyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
 
Walmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdfWalmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdf
 
How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17
 
A Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdfA Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdf
 
How to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 InventoryHow to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 Inventory
 
Leveraging Generative AI to Drive Nonprofit Innovation
Leveraging Generative AI to Drive Nonprofit InnovationLeveraging Generative AI to Drive Nonprofit Innovation
Leveraging Generative AI to Drive Nonprofit Innovation
 
Chapter wise All Notes of First year Basic Civil Engineering.pptx
Chapter wise All Notes of First year Basic Civil Engineering.pptxChapter wise All Notes of First year Basic Civil Engineering.pptx
Chapter wise All Notes of First year Basic Civil Engineering.pptx
 
How to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRMHow to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRM
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
 
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdfবাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
 
How to deliver Powerpoint Presentations.pptx
How to deliver Powerpoint  Presentations.pptxHow to deliver Powerpoint  Presentations.pptx
How to deliver Powerpoint Presentations.pptx
 
How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory 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