Lecture 5,6 Local sequence alignment

Similar documents
Chapter 7: Rapid alignment methods: FASTA and BLAST

Pairwise alignment, Gunnar Klau, November 9, 2005, 16:

Pairwise sequence alignment

Sara C. Madeira. Universidade da Beira Interior. (Thanks to Ana Teresa Freitas, IST for useful resources on this subject)

Pairwise Alignment. Guan-Shieng Huang. Dept. of CSIE, NCNU. Pairwise Alignment p.1/55

Practical considerations of working with sequencing data

Algorithms in Bioinformatics FOUR Pairwise Sequence Alignment. Pairwise Sequence Alignment. Convention: DNA Sequences 5. Sequence Alignment

Computational Biology

Single alignment: Substitution Matrix. 16 march 2017

Lecture 2, 5/12/2001: Local alignment the Smith-Waterman algorithm. Alignment scoring schemes and theory: substitution matrices and gap models

Quantifying sequence similarity

Sequence comparison: Score matrices. Genome 559: Introduction to Statistical and Computational Genomics Prof. James H. Thomas

CISC 889 Bioinformatics (Spring 2004) Sequence pairwise alignment (I)

Sequence comparison: Score matrices

In-Depth Assessment of Local Sequence Alignment

Bioinformatics (GLOBEX, Summer 2015) Pairwise sequence alignment

Sequence comparison: Score matrices. Genome 559: Introduction to Statistical and Computational Genomics Prof. James H. Thomas

Algorithms for biological sequence Comparison and Alignment

Sequence analysis and Genomics

3. SEQUENCE ANALYSIS BIOINFORMATICS COURSE MTAT

2 Pairwise alignment. 2.1 References. 2.2 Importance of sequence alignment. Introduction to the pairwise sequence alignment problem.

Biochemistry 324 Bioinformatics. Pairwise sequence alignment

Introduction to sequence alignment. Local alignment the Smith-Waterman algorithm

Sequence analysis and comparison

Algorithms in Bioinformatics

Tools and Algorithms in Bioinformatics

Pairwise & Multiple sequence alignments

Pairwise sequence alignments

Sequence Comparison. mouse human

Lecture 2: Pairwise Alignment. CG Ron Shamir

Local Alignment Statistics

Bio nformatics. Lecture 3. Saad Mneimneh

Sequence Alignment: A General Overview. COMP Fall 2010 Luay Nakhleh, Rice University

8 Grundlagen der Bioinformatik, SS 09, D. Huson, April 28, 2009

C E N T R. Introduction to bioinformatics 2007 E B I O I N F O R M A T I C S V U F O R I N T. Lecture 5 G R A T I V. Pair-wise Sequence Alignment

20 Grundlagen der Bioinformatik, SS 08, D. Huson, May 27, Global and local alignment of two sequences using dynamic programming

InDel 3-5. InDel 8-9. InDel 3-5. InDel 8-9. InDel InDel 8-9

8 Grundlagen der Bioinformatik, SoSe 11, D. Huson, April 18, 2011

An Introduction to Sequence Similarity ( Homology ) Searching

Week 10: Homology Modelling (II) - HHpred

Sequence Alignment: Scoring Schemes. COMP 571 Luay Nakhleh, Rice University

Bioinformatics for Computer Scientists (Part 2 Sequence Alignment) Sepp Hochreiter

THEORY. Based on sequence Length According to the length of sequence being compared it is of following two types

CONCEPT OF SEQUENCE COMPARISON. Natapol Pornputtapong 18 January 2018

Bioinformatics and BLAST

Collected Works of Charles Dickens

Lecture 1, 31/10/2001: Introduction to sequence alignment. The Needleman-Wunsch algorithm for global sequence alignment: description and properties

First generation sequencing and pairwise alignment (High-tech, not high throughput) Analysis of Biological Sequences

Pairwise sequence alignments. Vassilios Ioannidis (From Volker Flegel )

Substitution matrices

Scoring Matrices. Shifra Ben-Dor Irit Orr

Analysis and Design of Algorithms Dynamic Programming

Lecture 4: September 19

Bioinformatics. Scoring Matrices. David Gilbert Bioinformatics Research Centre

Tools and Algorithms in Bioinformatics

Sequence Alignment (chapter 6)

Introduction to spectral alignment

Finding the Best Biological Pairwise Alignment Through Genetic Algorithm Determinando o Melhor Alinhamento Biológico Através do Algoritmo Genético

Multiple Alignment. Slides revised and adapted to Bioinformática IST Ana Teresa Freitas

Advanced topics in bioinformatics

Module: Sequence Alignment Theory and Applications Session: Introduction to Searching and Sequence Alignment

Effects of Gap Open and Gap Extension Penalties

Sequence Alignments. Dynamic programming approaches, scoring, and significance. Lucy Skrabanek ICB, WMC January 31, 2013

BIO 285/CSCI 285/MATH 285 Bioinformatics Programming Lecture 8 Pairwise Sequence Alignment 2 And Python Function Instructor: Lei Qian Fisk University

Tandem Mass Spectrometry: Generating function, alignment and assembly

EECS730: Introduction to Bioinformatics

Local Alignment: Smith-Waterman algorithm

Protein Structure Prediction II Lecturer: Serafim Batzoglou Scribe: Samy Hamdouche

Tiffany Samaroo MB&B 452a December 8, Take Home Final. Topic 1

Introduction to Bioinformatics Algorithms Homework 3 Solution

String Matching Problem

5. MULTIPLE SEQUENCE ALIGNMENT BIOINFORMATICS COURSE MTAT

MATHEMATICAL MODELS - Vol. III - Mathematical Modeling and the Human Genome - Hilary S. Booth MATHEMATICAL MODELING AND THE HUMAN GENOME

Sequence Database Search Techniques I: Blast and PatternHunter tools

Similarity or Identity? When are molecules similar?

Comparing whole genomes

Sequence Bioinformatics. Multiple Sequence Alignment Waqas Nasir

A profile-based protein sequence alignment algorithm for a domain clustering database

Sequence Analysis 17: lecture 5. Substitution matrices Multiple sequence alignment

Background: comparative genomics. Sequence similarity. Homologs. Similarity vs homology (2) Similarity vs homology. Sequence Alignment (chapter 6)

Statistical Machine Learning Methods for Bioinformatics II. Hidden Markov Model for Biological Sequences

Sequence Alignment. Johannes Starlinger

CSE : Computational Issues in Molecular Biology. Lecture 6. Spring 2004

Large-Scale Genomic Surveys

Today s Lecture: HMMs

1.5 Sequence alignment

Motivating the need for optimal sequence alignments...

Grouping of amino acids and recognition of protein structurally conserved regions by reduced alphabets of amino acids

Multiple Sequence Alignment

A New Similarity Measure among Protein Sequences

Lecture 4: Evolutionary Models and Substitution Matrices (PAM and BLOSUM)

BLAST: Basic Local Alignment Search Tool

Algorithms in Bioinformatics: A Practical Introduction. Sequence Similarity

"Nothing in biology makes sense except in the light of evolution Theodosius Dobzhansky

NUMB3RS Activity: DNA Sequence Alignment. Episode: Guns and Roses

An Introduction to Bioinformatics Algorithms Hidden Markov Models

Moreover, the circular logic

Homology Modeling. Roberto Lins EPFL - summer semester 2005

Introduction to Bioinformatics

Lecture Notes: Markov chains

Transcription:

Lecture 5,6 Local sequence alignment Chapter 6 in Jones and Pevzner Fall 2018 September 4,6, 2018

Evolution as a tool for biological insight Nothing in biology makes sense except in the light of evolution - Theodosius Dobzhansky. The functionality of many genes is virtually the same among many organisms: Can understand biology in simpler organisms than ourselves ( model organisms ).

Local alignment: rationale Proteins are often multi-functional, and are composed of regions (domains), each of which contributes a particular function Example: ² Homeobox genes have a short region called the homeodomain that is highly conserved between species. ² A global alignment might not find the homeodomain because it would try to align the ENTIRE sequence Drosophila homeodomain PDB: 1ZQ3

Local vs. Global Alignment (cont d) Global Alignment --T -CC-C-AGT -TATGT-CAGGGGACACG A-GCATGCAGA-GAC AATTGCCGCC-GTCGT-T-TTCAG----CA-GTTATG T-CAGAT--C Local Alignment better for finding a conserved segment tcccagttatgtcaggggacacgagcatgcagagac aattgccgccgtcgttttcagcagttatgtcagatc

The Local Alignment Problem Goal: Find the best local alignment between two strings Input : Strings v, w and scoring matrix δ Output : Alignment of substrings of v and w whose alignment score is maximum among all possible alignment of all possible substrings

Local vs. global alignment Global alignment Local alignment Compute a mini global alignment to get a local alignment

Local vs. Global Alignment The Global Alignment Problem tries to find the longest path between vertices (0,0) and (n,m) in the edit graph. The Local Alignment Problem tries to find the longest path among paths between arbitrary vertices (i,j) and (i,j ) in the edit graph. In an edit graph with negatively-scored edges, a local alignment may score higher than a global alignment

The Problem with this Problem Naïve method (run time O(n 4 )): - In a grid of size n x n there are n 2 nodes (i,j) that may serve as a source. - For each such node computing alignments from (i,j) to (i,j ) takes O(n 2 ) time.

Local Alignment: Example

Local Alignment: Example

Local Alignment: Example

Local Alignment: Example

Local Alignment: Example

Local Alignment: Free Rides Yeah, a free ride! (0,0) The image cannot be displayed. Your computer may not have enough memory to open the image, or the image may have been corrupted. Restart your computer, and then open the file again. If the red x still appears, you may have to delete the image and then insert it again. The dashed edges represent the free rides from (0,0) to every other node.

Local Alignment: Recurrence s i,j = max 0 s i-1,j-1 + δ (v i, w j ) s i-1,j + δ (v i, -) s i,j-1 + δ (-, w j ) Power of ZERO: this is the only change from the original recurrence of a global alignment, representing the free ride edge

Local Alignment: Backtrace Score of best local alignment is the maximum entry of s ij The alignment is found by a backtrace from the maximum node, to a node for which the score is 0.

Local Alignment: SW This local alignment algorithm is known as the Smith-Waterman algorithm 1. T.F. Smith and M.W. Waterman. Identification of common molecular subsequences. J. Mol. Biol. 147:195-197, 1981. 1 The Smith-Waterman algorithm considers a more sophisticated gap penalty scheme

Scoring Indels: Naive Approach A fixed penalty σ is given to every indel: -σ for 1 indel, -2σ for 2 consecutive indels -3σ for 3 consecutive indels, etc. Can be too severe penalty for a series of 100 consecutive indels

Affine Gap Penalties In nature, a series of k indels often comes as a single event rather than a series of k single nucleotide events: This is more likely. Normal scoring would give the same score for both alignments This is less likely.

Affine gap penalty Score for a gap of length x is: -(ρ + σx) where: ρ > 0 is the gap opening penalty σ > 0 is the gap extension penalty ρ is large relative to σ because you do not want to add too much of a penalty for extending the gap.

Affine Gap Penalties and Edit Graph To reflect affine gap penalties we have to add long horizontal and vertical edges to the edit graph. Each such edge of length x should have weight -ρ - x *σ

Adding Affine Penalty Edges to the Edit Graph There are many such edges! Adding them to the graph increases the running time of the alignment algorithm by a factor of n. The complexity increases from O(n 2 ) to O(n 3 )

The 3-leveled Manhattan Grid gaps in w matches/mismatches gaps in v

Manhattan in 3 Layers δ δ ρ σ δ ρ δ δ σ

Affine Gap Penalties and 3 Layer Manhattan Grid We ll have three recurrences in a 3-layered graph. The top level creates/extends gaps in the sequence w. The bottom level creates/extends gaps in sequence v. The middle level extends matches and mismatches.

Switching Between the Layers Levels: The main level is for diagonal edges The lower level is for horizontal edges The upper level is for vertical edges A jumping penalty is assigned to moving from the main level to either the upper level or the lower level (-ρ- σ) There is a gap extension penalty for each continuation on a level other than the main level (-σ)

Affine Gap Penalty Recurrences s i,j = max s i,j = max s i-1,j - σ s i-1,j - (ρ+σ) s i,j-1 - σ s i,j-1 - (ρ+σ) Continue gap in w Start gap in w : from middle Continue gap in v Start gap in v : from middle s i,j = s i-1,j-1 + δ (v i, w j ) max s i,j s i,j Match or Mismatch End gap: from top End gap: from bottom

Should we compare DNA or protein sequences? DNA sequence is less conserved than protein sequence The protein sequence contains more information than the DNA sequence Less effective to compare coding regions at the nucleotide level

Scoring Matrices

Making a Scoring Matrix Scoring matrices are created based on the intuition that some mutations have a smaller effect on the function of a protein Such mismatch penalties should be less harsh than others.

Scoring Matrix: Example A R N K A 5-2 -1-1 R - 7-1 3 N - - 7 0 K - - - 6 Although R and K are different amino acids, they have a positive score. Why? They are both positively charged amino acids, therefore substitution will not greatly change the function of the protein.

Substitutions of Amino Acids Mutation rates between amino acids have dramatic differences!

Conservation Amino acid changes that preserve the physicochemical properties of the original residue should receive higher scores polar to polar aspartate à glutamate hydrophobic to hydrophobic alanine à valine

Percent Sequence Identity A measure of the extent to which two nucleotide or amino acid sequences are similar A C C T G A G A G A C G T G G C A G mismatch 70% identical indel

BLOSUM Blocks Substitution Matrix Scores derived from observations of the frequencies of substitutions in alignments of related proteins Matrix name indicates evolutionary distance: BLOSUM62 was created using sequences sharing no more than 62% identity Henikoff, S. and Henikoff, J. (1992) Amino acid substitution matrices from protein blocks. Proc. Natl. Acad. Sci. USA. 89(biochemistry): 10915-10919. 1992

An entry from the BLOCKS database Block PR00851A ID XRODRMPGMNTB; BLOCK AC PR00851A; distance from previous block=(52,131) DE Xeroderma pigmentosum group B protein signature BL adapted; width=21; seqs=8; 99.5%=985; strength=1287 XPB_HUMAN P19447 ( 74) RPLWVAPDGHIFLEAFSPVYK 54 XPB_MOUSE P49135 ( 74) RPLWVAPDGHIFLEAFSPVYK 54 P91579 ( 80) RPLYLAPDGHIFLESFSPVYK 67 XPB_DROME Q02870 ( 84) RPLWVAPNGHVFLESFSPVYK 79 RA25_YEAST Q00578 ( 131) PLWISPSDGRIILESFSPLAE 100 Q38861 ( 52) RPLWACADGRIFLETFSPLYK 71 O13768 ( 90) PLWINPIDGRIILEAFSPLAE 100 O00835 ( 79) RPIWVCPDGHIFLETFSAIYK 86 // The BLOCKS database is at: http://blocks.fhcrc.org/

The Blosum50 Scoring Matrix