1 “CSE4052” “INTRODUCTION TO BIOINFORMATICS” “BAHÇEŞEHİR UNIVERSITY” “SPRING 2005” “Dr. N AYDIN” Lecture 3 Pairwise Sequence Alignment Doç. Dr. Nizamettin.

Slides:



Advertisements
Similar presentations
1 Introduction to Sequence Analysis Utah State University – Spring 2012 STAT 5570: Statistical Bioinformatics Notes 6.1.
Advertisements

Alignment methods Introduction to global and local sequence alignment methods Global : Needleman-Wunch Local : Smith-Waterman Database Search BLAST FASTA.
Measuring the degree of similarity: PAM and blosum Matrix
DNA sequences alignment measurement
Lecture 8 Alignment of pairs of sequence Local and global alignment
C E N T R F O R I N T E G R A T I V E B I O I N F O R M A T I C S V U E Alignments 1 Sequence Analysis.
Bioinformatics Sequence Analysis I
S. Maarschalkerweerd & A. Tjhang1 Probability Theory and Basic Alignment of String Sequences Chapter
Lecture outline Database searches
1 “INTRODUCTION TO BIOINFORMATICS” “SPRING 2005” “Dr. N AYDIN” Lecture 4 Multiple Sequence Alignment Doç. Dr. Nizamettin AYDIN
Heuristic alignment algorithms and cost matrices
Pairwise Sequence Alignment
Sequence Alignment.
Introduction to Bioinformatics Algorithms Sequence Alignment.
Scoring Matrices June 19, 2008 Learning objectives- Understand how scoring matrices are constructed. Workshop-Use different BLOSUM matrices in the Dotter.
Alignment methods and database searching April 14, 2005 Quiz#1 today Learning objectives- Finish Dotter Program analysis. Understand how to use the program.
It & Health 2009 Summary Thomas Nordahl Petersen.
Scoring Matrices June 22, 2006 Learning objectives- Understand how scoring matrices are constructed. Workshop-Use different BLOSUM matrices in the Dotter.
Introduction to bioinformatics
Sequence similarity.
Alignment methods June 26, 2007 Learning objectives- Understand how Global alignment program works. Understand how Local alignment program works.
Pairwise Alignment Global & local alignment Anders Gorm Pedersen Molecular Evolution Group Center for Biological Sequence Analysis.
Similar Sequence Similar Function Charles Yan Spring 2006.
Introduction to Bioinformatics Algorithms Sequence Alignment.
Scoring matrices Identity PAM BLOSUM.
Computational Biology, Part 2 Sequence Comparison with Dot Matrices Robert F. Murphy Copyright  1996, All rights reserved.
Bioinformatics Unit 1: Data Bases and Alignments Lecture 3: “Homology” Searches and Sequence Alignments (cont.) The Mechanics of Alignments.
Sequence Alignments Revisited
Alignment III PAM Matrices. 2 PAM250 scoring matrix.
Dynamic Programming. Pairwise Alignment Needleman - Wunsch Global Alignment Smith - Waterman Local Alignment.
CECS Introduction to Bioinformatics University of Louisville Spring 2003 Dr. Eric Rouchka Lecture 3: Multiple Sequence Alignment Eric C. Rouchka,
Roadmap The topics:  basic concepts of molecular biology  more on Perl  overview of the field  biological databases and database searching  sequence.
Alignment methods II April 24, 2007 Learning objectives- 1) Understand how Global alignment program works using the longest common subsequence method.
Sequence comparison: Score matrices Genome 559: Introduction to Statistical and Computational Genomics Prof. James H. Thomas
Alignment Statistics and Substitution Matrices BMI/CS 576 Colin Dewey Fall 2010.
Developing Pairwise Sequence Alignment Algorithms
Pairwise alignments Introduction Introduction Why do alignments? Why do alignments? Definitions Definitions Scoring alignments Scoring alignments Alignment.
Pairwise & Multiple sequence alignments
CISC667, S07, Lec5, Liao CISC 667 Intro to Bioinformatics (Spring 2007) Pairwise sequence alignment Needleman-Wunsch (global alignment)
Computational Biology, Part 3 Sequence Alignment Robert F. Murphy Copyright  1996, All rights reserved.
Content of the previous class Introduction The evolutionary basis of sequence alignment The Modular Nature of proteins.
Introduction to Bioinformatics Algorithms Sequence Alignment.
Amino Acid Scoring Matrices Jason Davis. Overview Protein synthesis/evolution Protein synthesis/evolution Computational sequence alignment Computational.
Alignment methods April 26, 2011 Return Quiz 1 today Return homework #4 today. Next homework due Tues, May 3 Learning objectives- Understand the Smith-Waterman.
Pairwise Sequence Alignment. The most important class of bioinformatics tools – pairwise alignment of DNA and protein seqs. alignment 1alignment 2 Seq.
Pairwise Sequence Alignment (II) (Lecture for CS498-CXZ Algorithms in Bioinformatics) Sept. 27, 2005 ChengXiang Zhai Department of Computer Science University.
Eric C. Rouchka, University of Louisville Sequence Database Searching Eric Rouchka, D.Sc. Bioinformatics Journal Club October.
Pairwise alignment of DNA/protein sequences I519 Introduction to Bioinformatics, Fall 2012.
Biology 4900 Biocomputing.
Comp. Genomics Recitation 3 The statistics of database searching.
Function preserves sequences Christophe Roos - MediCel ltd Similarity is a tool in understanding the information in a sequence.
Applied Bioinformatics Week 3. Theory I Similarity Dot plot.
In-Class Assignment #1: Research CD2
©CMBI 2005 Database Searching BLAST Database Searching Sequence Alignment Scoring Matrices Significance of an alignment BLAST, algorithm BLAST, parameters.
Pairwise sequence alignment Lecture 02. Overview  Sequence comparison lies at the heart of bioinformatics analysis.  It is the first step towards structural.
Sequence Alignment.
Sequence Alignment Abhishek Niroula Department of Experimental Medical Science Lund University
Step 3: Tools Database Searching
The statistics of pairwise alignment BMI/CS 576 Colin Dewey Fall 2015.
©CMBI 2005 Database Searching BLAST Database Searching Sequence Alignment Scoring Matrices Significance of an alignment BLAST, algorithm BLAST, parameters.
Protein Sequence Alignment Multiple Sequence Alignment
DNA sequences alignment measurement Lecture 13. Introduction Measurement of “strength” alignment Nucleic acid and amino acid substitutions Measurement.
Techniques for Protein Sequence Alignment and Database Searching G P S Raghava Scientist & Head Bioinformatics Centre, Institute of Microbial Technology,
Substitution Matrices and Alignment Statistics BMI/CS 776 Mark Craven February 2002.
9/6/07BCB 444/544 F07 ISU Dobbs - Lab 3 - BLAST1 BCB 444/544 Lab 3 BLAST Scoring Matrices & Alignment Statistics Sept6.
Sequence similarity, BLAST alignments & multiple sequence alignments
The ideal approach is simultaneous alignment and tree estimation.
Pairwise Sequence Alignment (cont.)
Introduction to Bioinformatics
It is the presentation about the overview of DOT MATRIX and GAP PENALITY..
Presentation transcript:

1 “CSE4052” “INTRODUCTION TO BIOINFORMATICS” “BAHÇEŞEHİR UNIVERSITY” “SPRING 2005” “Dr. N AYDIN” Lecture 3 Pairwise Sequence Alignment Doç. Dr. Nizamettin AYDIN Introduction to Bioinformatics

2 “CSE4052” “INTRODUCTION TO BIOINFORMATICS” “BAHÇEŞEHİR UNIVERSITY” “SPRING 2005” “Dr. N AYDIN” Sequence Alignment Question: Are two sequences related? Compare the two sequences, see if they are similar Example: pear and tear Similar words, different meanings

3 “CSE4052” “INTRODUCTION TO BIOINFORMATICS” “BAHÇEŞEHİR UNIVERSITY” “SPRING 2005” “Dr. N AYDIN” Biological Sequences Similar biological sequences tend to be related Information: –Functional –Structural –Evolutionary Common mistake: –sequence similarity is not homology! Homologous sequences: derived from a common ancestor

4 “CSE4052” “INTRODUCTION TO BIOINFORMATICS” “BAHÇEŞEHİR UNIVERSITY” “SPRING 2005” “Dr. N AYDIN” Relation of sequences Homologs: similar sequences in 2 different organisms derived from a common ancestor sequence. Orthologs: Similar sequences in 2 different organisms that have arisen due to a speciation event. Functionality Retained. Paralogs: Similar sequences within a single organism that have arisen due to a gene duplication event. Xenologs: similar sequences that have arisen out of horizontal transfer events (symbiosis, viruses, etc)

5 “CSE4052” “INTRODUCTION TO BIOINFORMATICS” “BAHÇEŞEHİR UNIVERSITY” “SPRING 2005” “Dr. N AYDIN” Relation of sequences Image Source:

6 “CSE4052” “INTRODUCTION TO BIOINFORMATICS” “BAHÇEŞEHİR UNIVERSITY” “SPRING 2005” “Dr. N AYDIN” Edit Distance Sequence similarity: function of edit distance between two sequences P E A R | | | T E A R

7 “CSE4052” “INTRODUCTION TO BIOINFORMATICS” “BAHÇEŞEHİR UNIVERSITY” “SPRING 2005” “Dr. N AYDIN” Hamming Distance Minimum number of letters by which two words differ Calculated by summing number of mismatches Hamming Distance between PEAR and TEAR is 1

8 “CSE4052” “INTRODUCTION TO BIOINFORMATICS” “BAHÇEŞEHİR UNIVERSITY” “SPRING 2005” “Dr. N AYDIN” Gapped Alignments Biological sequences –Different lengths –Regions of insertions and deletions Notion of gaps (denoted by ‘-’) A L I G N M E N T | | | | | | | - L I G A M E N T

9 “CSE4052” “INTRODUCTION TO BIOINFORMATICS” “BAHÇEŞEHİR UNIVERSITY” “SPRING 2005” “Dr. N AYDIN” Possible Residue Alignments Match Mismatch (substitution or mutation) Insertion/Deletion (INDELS – gaps)

10 “CSE4052” “INTRODUCTION TO BIOINFORMATICS” “BAHÇEŞEHİR UNIVERSITY” “SPRING 2005” “Dr. N AYDIN” Alignments Which alignment is best? A – C – G G – A C T | | | | | A T C G G A T _ C T A T C G G A T C T | | | A – C G G – A C T

11 “CSE4052” “INTRODUCTION TO BIOINFORMATICS” “BAHÇEŞEHİR UNIVERSITY” “SPRING 2005” “Dr. N AYDIN” Alignment Scoring Scheme Possible scoring scheme: match: +2 mismatch: -1 indel –2 Alignment 1: 5 * 2 – 1(1) – 4(2) = 10 – 1 – 8 = 1 Alignment 2: 6 * 2 – 1(1) – 2 (2) = 12 – 1 – 4 = 7

12 “CSE4052” “INTRODUCTION TO BIOINFORMATICS” “BAHÇEŞEHİR UNIVERSITY” “SPRING 2005” “Dr. N AYDIN” Alignment Methods Visual Brute Force Dynamic Programming Word-Based (k tuple)

13 “CSE4052” “INTRODUCTION TO BIOINFORMATICS” “BAHÇEŞEHİR UNIVERSITY” “SPRING 2005” “Dr. N AYDIN” Visual Alignments (Dot Plots) Matrix –Rows: Characters in one sequence –Columns: Characters in second sequence Filling –Loop through each row; if character in row, col match, fill in the cell –Continue until all cells have been examined

14 “CSE4052” “INTRODUCTION TO BIOINFORMATICS” “BAHÇEŞEHİR UNIVERSITY” “SPRING 2005” “Dr. N AYDIN” Example Dot Plot

15 “CSE4052” “INTRODUCTION TO BIOINFORMATICS” “BAHÇEŞEHİR UNIVERSITY” “SPRING 2005” “Dr. N AYDIN” Noise in Dot Plots Nucleic Acids (DNA, RNA) –1 out of 4 bases matches at random Stringency –Window size is considered –Percentage of bases matching in the window is set as threshold

16 “CSE4052” “INTRODUCTION TO BIOINFORMATICS” “BAHÇEŞEHİR UNIVERSITY” “SPRING 2005” “Dr. N AYDIN” Reduction of Dot Plot Noise Self alignment of ACCTGAGCTCACCTGAGTTA

17 “CSE4052” “INTRODUCTION TO BIOINFORMATICS” “BAHÇEŞEHİR UNIVERSITY” “SPRING 2005” “Dr. N AYDIN” Information Inside Dot Plots Regions of similarity: diagonals Insertions/deletions –Can determine intron/exon structure Repeats and Inverted Repeats –Inverted repeats = reverse complement –Used to determine folding of RNA molecules

18 “CSE4052” “INTRODUCTION TO BIOINFORMATICS” “BAHÇEŞEHİR UNIVERSITY” “SPRING 2005” “Dr. N AYDIN” Insertions/Deletions

19 “CSE4052” “INTRODUCTION TO BIOINFORMATICS” “BAHÇEŞEHİR UNIVERSITY” “SPRING 2005” “Dr. N AYDIN” Repeats/Inverted Repeats

20 “CSE4052” “INTRODUCTION TO BIOINFORMATICS” “BAHÇEŞEHİR UNIVERSITY” “SPRING 2005” “Dr. N AYDIN” Comparing Genome Assemblies

21 “CSE4052” “INTRODUCTION TO BIOINFORMATICS” “BAHÇEŞEHİR UNIVERSITY” “SPRING 2005” “Dr. N AYDIN” Chromosome Y self comparison

22 “CSE4052” “INTRODUCTION TO BIOINFORMATICS” “BAHÇEŞEHİR UNIVERSITY” “SPRING 2005” “Dr. N AYDIN” Available Dot Plot Programs Vector NTI software package (under AlignX)

23 “CSE4052” “INTRODUCTION TO BIOINFORMATICS” “BAHÇEŞEHİR UNIVERSITY” “SPRING 2005” “Dr. N AYDIN” Available Dot Plot Programs Vector NTI software package (under AlignX) GCG software package: Compare DotPlot Dotter ( )

24 “CSE4052” “INTRODUCTION TO BIOINFORMATICS” “BAHÇEŞEHİR UNIVERSITY” “SPRING 2005” “Dr. N AYDIN” Available Dot Plot Programs Dotlet (Java Applet) sib.ch/java/dotlet/Dotlet.ht ml

25 “CSE4052” “INTRODUCTION TO BIOINFORMATICS” “BAHÇEŞEHİR UNIVERSITY” “SPRING 2005” “Dr. N AYDIN” Available Dot Plot Programs Dotter (

26 “CSE4052” “INTRODUCTION TO BIOINFORMATICS” “BAHÇEŞEHİR UNIVERSITY” “SPRING 2005” “Dr. N AYDIN” Available Dot Plot Programs EMBOSS DotMatcher, DotPath,DotUp

27 “CSE4052” “INTRODUCTION TO BIOINFORMATICS” “BAHÇEŞEHİR UNIVERSITY” “SPRING 2005” “Dr. N AYDIN” Available Dot Plot Programs GCG software package: Compare DotPlot+ DNA strider PipMaker

28 “CSE4052” “INTRODUCTION TO BIOINFORMATICS” “BAHÇEŞEHİR UNIVERSITY” “SPRING 2005” “Dr. N AYDIN” Dot Plot References Gibbs, A. J. & McIntyre, G. A. (1970). The diagram method for comparing sequences. its use with amino acid and nucleotide sequences. Eur. J. Biochem. 16, Staden, R. (1982). An interactive graphics program for comparing and aligning nucleic-acid and amino-acid sequences. Nucl. Acid. Res. 10 (9),

29 “CSE4052” “INTRODUCTION TO BIOINFORMATICS” “BAHÇEŞEHİR UNIVERSITY” “SPRING 2005” “Dr. N AYDIN” Determining Optimal Alignment Two sequences: X and Y –|X| = m; |Y| = n –Allowing gaps, |X| = |Y| = m+n Brute Force Dynamic Programming

30 “CSE4052” “INTRODUCTION TO BIOINFORMATICS” “BAHÇEŞEHİR UNIVERSITY” “SPRING 2005” “Dr. N AYDIN” Brute Force Determine all possible subsequences for X and Y –2 m+n subsequences for X, 2 m+n for Y! Alignment comparisons –2 m+n * 2 m+n = 2 (2(m+n)) = 4 m+n comparisons Quickly becomes impractical

31 “CSE4052” “INTRODUCTION TO BIOINFORMATICS” “BAHÇEŞEHİR UNIVERSITY” “SPRING 2005” “Dr. N AYDIN” Dynamic Programming Used in Computer Science Solve optimization problems by dividing the problem into independent subproblems Sequence alignment has optimal substructure property –Subproblem: alignment of prefixes of two sequences –Each subproblem is computed once and stored in a matrix

32 “CSE4052” “INTRODUCTION TO BIOINFORMATICS” “BAHÇEŞEHİR UNIVERSITY” “SPRING 2005” “Dr. N AYDIN” Dynamic Programming Optimal score: built upon optimal alignment computed to that point Aligns two sequences beginning at ends, attempting to align all possible pairs of characters

33 “CSE4052” “INTRODUCTION TO BIOINFORMATICS” “BAHÇEŞEHİR UNIVERSITY” “SPRING 2005” “Dr. N AYDIN” Dynamic Programming Scoring scheme for matches, mismatches, gaps Highest set of scores defines optimal alignment between sequences Match score: DNA – exact match; Amino Acids – mutation probabilities Guaranteed to provide optimal alignment given: –Two sequences –Scoring scheme

34 “CSE4052” “INTRODUCTION TO BIOINFORMATICS” “BAHÇEŞEHİR UNIVERSITY” “SPRING 2005” “Dr. N AYDIN” Steps in Dynamic Programming  Initialization  Matrix Fill (scoring)  Traceback (alignment) DP Example: Sequence #1: GAATTCAGTTA; M = 11 Sequence #2: GGATCGA; N = 7  s(a i b j ) = +5 if a i = b j (match score)  s(a i b j ) = -3 if a i  b j (mismatch score)  w = -4 (gap penalty)

35 “CSE4052” “INTRODUCTION TO BIOINFORMATICS” “BAHÇEŞEHİR UNIVERSITY” “SPRING 2005” “Dr. N AYDIN” View of the DP Matrix M+1 rows, N+1 columns

36 “CSE4052” “INTRODUCTION TO BIOINFORMATICS” “BAHÇEŞEHİR UNIVERSITY” “SPRING 2005” “Dr. N AYDIN” Global Alignment (Needleman-Wunsch) Attempts to align all residues of two sequences INITIALIZATION: First row and first column set S i,0 = w * i S 0,j = w * j

37 “CSE4052” “INTRODUCTION TO BIOINFORMATICS” “BAHÇEŞEHİR UNIVERSITY” “SPRING 2005” “Dr. N AYDIN” Initialized Matrix(Needleman-Wunsch)

38 “CSE4052” “INTRODUCTION TO BIOINFORMATICS” “BAHÇEŞEHİR UNIVERSITY” “SPRING 2005” “Dr. N AYDIN” Matrix Fill (Global Alignment) S i,j = MAXIMUM[ S i-1, j-1 + s(a i, b j ) ( match/mismatch in the diagonal ), S i,j-1 + w ( gap in sequence #1 ), S i-1,j + w ( gap in sequence #2 ) ]

39 “CSE4052” “INTRODUCTION TO BIOINFORMATICS” “BAHÇEŞEHİR UNIVERSITY” “SPRING 2005” “Dr. N AYDIN” Matrix Fill (Global Alignment) S 1,1 = MAX[S 0,0 + 5, S 1,0 - 4, S 0,1 - 4] = MAX[5, -8, -8]

40 “CSE4052” “INTRODUCTION TO BIOINFORMATICS” “BAHÇEŞEHİR UNIVERSITY” “SPRING 2005” “Dr. N AYDIN” Matrix Fill (Global Alignment) S 1,2 = MAX[S 0,1 -3, S 1,1 - 4, S 0,2 - 4] = MAX[-4 - 3, 5 – 4, -8 – 4] = MAX[-7, 1, -12] = 1

41 “CSE4052” “INTRODUCTION TO BIOINFORMATICS” “BAHÇEŞEHİR UNIVERSITY” “SPRING 2005” “Dr. N AYDIN” Matrix Fill (Global Alignment)

42 “CSE4052” “INTRODUCTION TO BIOINFORMATICS” “BAHÇEŞEHİR UNIVERSITY” “SPRING 2005” “Dr. N AYDIN” Filled Matrix (Global Alignment)

43 “CSE4052” “INTRODUCTION TO BIOINFORMATICS” “BAHÇEŞEHİR UNIVERSITY” “SPRING 2005” “Dr. N AYDIN” Trace Back (Global Alignment) maximum global alignment score = 11 (value in the lower right hand cell). Traceback begins in position S M,N ; i.e. the position where both sequences are globally aligned. At each cell, we look to see where we move next according to the pointers.

44 “CSE4052” “INTRODUCTION TO BIOINFORMATICS” “BAHÇEŞEHİR UNIVERSITY” “SPRING 2005” “Dr. N AYDIN” Trace Back (Global Alignment)

45 “CSE4052” “INTRODUCTION TO BIOINFORMATICS” “BAHÇEŞEHİR UNIVERSITY” “SPRING 2005” “Dr. N AYDIN” Global Trace Back G A A T T C A G T T A | | | G G A – T C – G - — A

46 “CSE4052” “INTRODUCTION TO BIOINFORMATICS” “BAHÇEŞEHİR UNIVERSITY” “SPRING 2005” “Dr. N AYDIN” Checking Alignment Score G A A T T C A G T T A | | | G G A – T C – G - — A – – – – 4 – = 11

47 “CSE4052” “INTRODUCTION TO BIOINFORMATICS” “BAHÇEŞEHİR UNIVERSITY” “SPRING 2005” “Dr. N AYDIN” Local Alignment Smith-Waterman: obtain highest scoring local match between two sequences Requires 2 modifications: –Negative scores for mismatches –When a value in the score matrix becomes negative, reset it to zero (begin of new alignment)

48 “CSE4052” “INTRODUCTION TO BIOINFORMATICS” “BAHÇEŞEHİR UNIVERSITY” “SPRING 2005” “Dr. N AYDIN” Local Alignment Initialization Values in row 0 and column 0 set to 0.

49 “CSE4052” “INTRODUCTION TO BIOINFORMATICS” “BAHÇEŞEHİR UNIVERSITY” “SPRING 2005” “Dr. N AYDIN” Matrix Fill (Local Alignment) S i,j = MAXIMUM[ S i-1, j-1 + s(a i, b j ) ( match/mismatch in the diagonal ), S i,j-1 + w (gap in sequence #1), S i-1,j + w (gap in sequence #2), 0 ]

50 “CSE4052” “INTRODUCTION TO BIOINFORMATICS” “BAHÇEŞEHİR UNIVERSITY” “SPRING 2005” “Dr. N AYDIN” Matrix Fill (Local Alignment) S 1,1 = MAX[S 0,0 + 5, S 1,0 - 4, S 0,1 – 4,0] = MAX[5, -4, -4, 0] = 5

51 “CSE4052” “INTRODUCTION TO BIOINFORMATICS” “BAHÇEŞEHİR UNIVERSITY” “SPRING 2005” “Dr. N AYDIN” Matrix Fill (Local Alignment) S 1,2 = MAX[S 0,1 -3, S 1,1 - 4, S 0,2 – 4, 0] = MAX[0 - 3, 5 – 4, 0 – 4, 0] = MAX[- 3, 1, -4, 0] = 1

52 “CSE4052” “INTRODUCTION TO BIOINFORMATICS” “BAHÇEŞEHİR UNIVERSITY” “SPRING 2005” “Dr. N AYDIN” Matrix Fill (Local Alignment) S 1,3 = MAX[S 0,2 -3, S 1,2 - 4, S 0,3 – 4, 0] = MAX[0 - 3, 1 – 4, 0 – 4, 0] = MAX[-3, -3, -4, 0] = 0

53 “CSE4052” “INTRODUCTION TO BIOINFORMATICS” “BAHÇEŞEHİR UNIVERSITY” “SPRING 2005” “Dr. N AYDIN” Filled Matrix (Local Alignment)

54 “CSE4052” “INTRODUCTION TO BIOINFORMATICS” “BAHÇEŞEHİR UNIVERSITY” “SPRING 2005” “Dr. N AYDIN” Trace Back (Local Alignment) maximum local alignment score for the two sequences is 14 found by locating the highest values in the score matrix 14 is found in two separate cells, indicating multiple alignments producing the maximal alignment score

55 “CSE4052” “INTRODUCTION TO BIOINFORMATICS” “BAHÇEŞEHİR UNIVERSITY” “SPRING 2005” “Dr. N AYDIN” Trace Back (Local Alignment) Traceback begins in the position with the highest value. At each cell, we look to see where we move next according to the pointers When a cell is reached where there is not a pointer to a previous cell, we have reached the beginning of the alignment

56 “CSE4052” “INTRODUCTION TO BIOINFORMATICS” “BAHÇEŞEHİR UNIVERSITY” “SPRING 2005” “Dr. N AYDIN” Trace Back (Local Alignment)

57 “CSE4052” “INTRODUCTION TO BIOINFORMATICS” “BAHÇEŞEHİR UNIVERSITY” “SPRING 2005” “Dr. N AYDIN” Trace Back (Local Alignment)

58 “CSE4052” “INTRODUCTION TO BIOINFORMATICS” “BAHÇEŞEHİR UNIVERSITY” “SPRING 2005” “Dr. N AYDIN” Trace Back (Local Alignment)

59 “CSE4052” “INTRODUCTION TO BIOINFORMATICS” “BAHÇEŞEHİR UNIVERSITY” “SPRING 2005” “Dr. N AYDIN” Maximum Local Alignment G A A T T C - A | | | | | G G A T – C G A G A A T T C - A | | | | | G G A – T C G A

60 “CSE4052” “INTRODUCTION TO BIOINFORMATICS” “BAHÇEŞEHİR UNIVERSITY” “SPRING 2005” “Dr. N AYDIN” Scoring Matrices match/mismatch score –Not bad for similar sequences –Does not show distantly related sequences Likelihood matrix –Scores residues dependent upon likelihood substitution is found in nature –More applicable for amino acid sequences

61 “CSE4052” “INTRODUCTION TO BIOINFORMATICS” “BAHÇEŞEHİR UNIVERSITY” “SPRING 2005” “Dr. N AYDIN” Percent Accepted Mutation (PAM or Dayhoff) Matrices Studied by Margaret Dayhoff Amino acid substitutions –Alignment of common protein sequences –1572 amino acid substitutions –71 groups of protein, 85% similar “Accepted” mutations – do not negatively affect a protein’s fitness Similar sequences organized into phylogenetic trees Number of amino acid changes counted Relative mutabilities evaluated 20 x 20 amino acid substitution matrix calculated

62 “CSE4052” “INTRODUCTION TO BIOINFORMATICS” “BAHÇEŞEHİR UNIVERSITY” “SPRING 2005” “Dr. N AYDIN” Percent Accepted Mutation (PAM or Dayhoff) Matrices PAM 1: 1 accepted mutation event per 100 amino acids; PAM 250: 250 mutation events per 100 … PAM 1 matrix can be multiplied by itself N times to give transition matrices for sequences that have undergone N mutations PAM 250: 20% similar; PAM 120: 40%; PAM 80: 50%; PAM 60: 60%

63 “CSE4052” “INTRODUCTION TO BIOINFORMATICS” “BAHÇEŞEHİR UNIVERSITY” “SPRING 2005” “Dr. N AYDIN” PAM1 matrix normalized probabilities multiplied by Ala Arg Asn Asp Cys Gln Glu Gly His Ile Leu Lys Met Phe Pro Ser Thr Trp Tyr Val A R N D C Q E G H I L K M F P S T W Y V A R N D C Q E G H I L K M F P S T W Y V

64 “CSE4052” “INTRODUCTION TO BIOINFORMATICS” “BAHÇEŞEHİR UNIVERSITY” “SPRING 2005” “Dr. N AYDIN” Log Odds Matrices PAM matrices converted to log-odds matrix –Calculate odds ratio for each substitution Taking scores in previous matrix Divide by frequency of amino acid –Convert ratio to log10 and multiply by 10 –Take average of log odds ratio for converting A to B and converting B to A –Result: Symmetric matrix –EXAMPLE: Mount pp

65 “CSE4052” “INTRODUCTION TO BIOINFORMATICS” “BAHÇEŞEHİR UNIVERSITY” “SPRING 2005” “Dr. N AYDIN” PAM250 Log odds matrix

66 “CSE4052” “INTRODUCTION TO BIOINFORMATICS” “BAHÇEŞEHİR UNIVERSITY” “SPRING 2005” “Dr. N AYDIN” Blocks Amino Acid Substitution Matrices (BLOSUM) Larger set of sequences considered Sequences organized into signature blocks Consensus sequence formed –60% identical: BLOSUM 60 –80% identical: BLOSUM 80

67 “CSE4052” “INTRODUCTION TO BIOINFORMATICS” “BAHÇEŞEHİR UNIVERSITY” “SPRING 2005” “Dr. N AYDIN” Nucleic Acid Scoring Matrices Two mutation models: –Uniform mutation rates (Jukes-Cantor) –Two separate mutation rates (Kimura) Transitions Transversions

68 “CSE4052” “INTRODUCTION TO BIOINFORMATICS” “BAHÇEŞEHİR UNIVERSITY” “SPRING 2005” “Dr. N AYDIN” DNA Mutations A C G T PURINES: A, G PYRIMIDINES C, T Transitions: A  G; C  T Transversions: A  C, A  T, C  G, G  T

69 “CSE4052” “INTRODUCTION TO BIOINFORMATICS” “BAHÇEŞEHİR UNIVERSITY” “SPRING 2005” “Dr. N AYDIN” PAM1 DNA odds matrices A. Model of uniform mutation rates among nucleotides. A G T C A 0.99 G T C B. Model of 3-fold higher transitions than transversions. A G T C A 0.99 G T C

70 “CSE4052” “INTRODUCTION TO BIOINFORMATICS” “BAHÇEŞEHİR UNIVERSITY” “SPRING 2005” “Dr. N AYDIN” PAM1 DNA log-odds matrices A. Model of uniform mutation rates among nucleotides. A G T C A 2 G -6 2 T C B. Model of 3-fold higher transitions than transversions. A G T C A 2 G-5 2 T C

71 “CSE4052” “INTRODUCTION TO BIOINFORMATICS” “BAHÇEŞEHİR UNIVERSITY” “SPRING 2005” “Dr. N AYDIN” Linear vs. Affine Gaps Gaps have been modeled as linear More likely contiguous block of residues inserted or deleted –1 gap of length k rather than k gaps of length 1 Scoring scheme should penalize new gaps more

72 “CSE4052” “INTRODUCTION TO BIOINFORMATICS” “BAHÇEŞEHİR UNIVERSITY” “SPRING 2005” “Dr. N AYDIN” Affine Gap Penalty w x = g + r(x-1) w x : total gap penalty; g: gap open penalty; r: gap extend penalty;x: gap length gap penalty chosen relative to score matrix –Gaps not excluded –Gaps not over included –Typical Values: g=-12; r = -4

73 “CSE4052” “INTRODUCTION TO BIOINFORMATICS” “BAHÇEŞEHİR UNIVERSITY” “SPRING 2005” “Dr. N AYDIN” Affine Gap Penalty and Dynamic Programming M i, j = max { D i - 1, j subst(A i, B j ) M i - 1, j subst(A i, B j ) I i - 1, j subst(A i, B j ) D i, j = max { D i, j extend M i, j open I i, j = max { M i-1, j - open I i-1, j - extend

74 “CSE4052” “INTRODUCTION TO BIOINFORMATICS” “BAHÇEŞEHİR UNIVERSITY” “SPRING 2005” “Dr. N AYDIN” Drawbacks to DP Approaches Compute intensive Memory Intensive O(n 2 ) space, between O(n 2 ) and O(n 3 ) time

75 “CSE4052” “INTRODUCTION TO BIOINFORMATICS” “BAHÇEŞEHİR UNIVERSITY” “SPRING 2005” “Dr. N AYDIN” Alternative DP approaches Linear space algorithms Myers-Miller Bounded Dynamic Programming Ewan Birney’s Dynamite Package –Automatic generation of DP code

76 “CSE4052” “INTRODUCTION TO BIOINFORMATICS” “BAHÇEŞEHİR UNIVERSITY” “SPRING 2005” “Dr. N AYDIN” Significance of Alignment Determine probability of alignment occurring at random –Sequence 1: length m –Sequence 2: length n Random sequences: –Alignment follows Gumbel Extreme Value Distribution

77 “CSE4052” “INTRODUCTION TO BIOINFORMATICS” “BAHÇEŞEHİR UNIVERSITY” “SPRING 2005” “Dr. N AYDIN” Gumbel Extreme Value Distribution

78 “CSE4052” “INTRODUCTION TO BIOINFORMATICS” “BAHÇEŞEHİR UNIVERSITY” “SPRING 2005” “Dr. N AYDIN” Probability of Alignment Score Expected # of alignments with score at least S (E-value): E = Kmn e -λS –m,n: Lengths of sequences –K,λ: statistical parameters dependent upon scoring system and background residue frequencies

79 “CSE4052” “INTRODUCTION TO BIOINFORMATICS” “BAHÇEŞEHİR UNIVERSITY” “SPRING 2005” “Dr. N AYDIN” Converting to Bit Scores A raw score can be normalized to a bit score using the formula: The E-value corresponding to a given bit score can then be calculated as:

80 “CSE4052” “INTRODUCTION TO BIOINFORMATICS” “BAHÇEŞEHİR UNIVERSITY” “SPRING 2005” “Dr. N AYDIN” P-Value P-Value: probability of obtaining a given score at random P = 1 – e -E which is approximately e -E

81 “CSE4052” “INTRODUCTION TO BIOINFORMATICS” “BAHÇEŞEHİR UNIVERSITY” “SPRING 2005” “Dr. N AYDIN” Significance of Ungapped Alignments PAM matrices are 10 * log 10 x Converting to log 2 x gives bits of information Converting to log e x gives nats of information Quick Calculation: If bit scoring system is used, significance cutoff is: log 2 (mn)

82 “CSE4052” “INTRODUCTION TO BIOINFORMATICS” “BAHÇEŞEHİR UNIVERSITY” “SPRING 2005” “Dr. N AYDIN” Example (p110) 2 Sequences, each 250 amino acids long Significance: –log 2 (250 * 250) = 16 bits

83 “CSE4052” “INTRODUCTION TO BIOINFORMATICS” “BAHÇEŞEHİR UNIVERSITY” “SPRING 2005” “Dr. N AYDIN” Example (p110) Using PAM250, the following alignment is found: F W L E V E G N S M T A P T G F W L D V Q G D S M T A P A G

84 “CSE4052” “INTRODUCTION TO BIOINFORMATICS” “BAHÇEŞEHİR UNIVERSITY” “SPRING 2005” “Dr. N AYDIN” Example (p110) Using PAM250 (p82), the score is calculated: F W L E V E G N S M T A P T G F W L D V Q G D S M T A P A G S = = 73

85 “CSE4052” “INTRODUCTION TO BIOINFORMATICS” “BAHÇEŞEHİR UNIVERSITY” “SPRING 2005” “Dr. N AYDIN” Significance Example S is in 10 * log 10 x -- convert to a bit score: S = 10 log 10 x S/10 = log 10 x S/10 = log 10 x * (log 2 10/log 2 10) S/10 * log 2 10 = log 10 x / log 2 10 S/10 * log 2 10 = log 2 x 1/3 S ~ log 2 x S’ ~ 1/3S

86 “CSE4052” “INTRODUCTION TO BIOINFORMATICS” “BAHÇEŞEHİR UNIVERSITY” “SPRING 2005” “Dr. N AYDIN” Significance Example S’ = 1/3S = 1/3 * 73 = bits Significance cutoff = 16 bits Therefore, this alignment is significant

87 “CSE4052” “INTRODUCTION TO BIOINFORMATICS” “BAHÇEŞEHİR UNIVERSITY” “SPRING 2005” “Dr. N AYDIN” Estimation of E and P For PAM250, K = 0.09; = Using equations 30 and 31: S’ = * 73 – ln 0.09 * 250 * 250 S’ = – 8.63 = 8.09 bits P(S’ >= 8.09) = 1 – e (-e ) = 3.1* 10 -4

88 “CSE4052” “INTRODUCTION TO BIOINFORMATICS” “BAHÇEŞEHİR UNIVERSITY” “SPRING 2005” “Dr. N AYDIN” Significance of Gapped Alignments Gapped alignments use same statistics and K cannot be easily estimated Empirical estimations and gap scores determined by looking at random alignments

89 “CSE4052” “INTRODUCTION TO BIOINFORMATICS” “BAHÇEŞEHİR UNIVERSITY” “SPRING 2005” “Dr. N AYDIN” Bayesian Statistics Built upon conditional probabilities Used to derive joint probability of multiple events or conditions P(B|A): Probability of condition B given condition A is true P(B): Probability of condition B, regardless of condition A P(A, B): Joint probability of A and B occurring simultaneously

90 “CSE4052” “INTRODUCTION TO BIOINFORMATICS” “BAHÇEŞEHİR UNIVERSITY” “SPRING 2005” “Dr. N AYDIN” Bayesian Statistics A has two substates: A1, A2 B has two substates: B1, B2 P(B1) = 0.3 is known P(B2) = 1.0 – 0.3 = 0.7 These are marginal probabilities

91 “CSE4052” “INTRODUCTION TO BIOINFORMATICS” “BAHÇEŞEHİR UNIVERSITY” “SPRING 2005” “Dr. N AYDIN” Joint Probabilities Bayes Theorem: –P(A1,B1) = P(B1)P(A1|B1) –P(A1,B1) = P(A1)P(B1|A1)

92 “CSE4052” “INTRODUCTION TO BIOINFORMATICS” “BAHÇEŞEHİR UNIVERSITY” “SPRING 2005” “Dr. N AYDIN” Bayesian Example Given: –P(A1|B1) = 0.8; P(A2|B2) = 0.7 Then –P(A2|B1) = 1.0 – 0.8 = 0.2; P(A1|B2) = 1.0 – 0.7 = 0.3 AND –P(A1,B1) = P(B1)P(A1|B1) = 0.3 * 0.8 = 0.24 –P(A2,B2) = P(B2)P(A2|B2) = 0.7 * 0.7 = 0.49 –…

93 “CSE4052” “INTRODUCTION TO BIOINFORMATICS” “BAHÇEŞEHİR UNIVERSITY” “SPRING 2005” “Dr. N AYDIN” Posterior Probabilities Calculation of joint probabilities results in posterior probabilities –Not known initially –Calculated using Prior probabilities Initial information

94 “CSE4052” “INTRODUCTION TO BIOINFORMATICS” “BAHÇEŞEHİR UNIVERSITY” “SPRING 2005” “Dr. N AYDIN” Applications of Bayesian Statistics Evolutionary distance between two sequences (Mount, pp ) Sequence Alignment (Mount, ) Significance of Alignments (Durbin, 36-38) Gibbs Sampling (Covered later)

95 “CSE4052” “INTRODUCTION TO BIOINFORMATICS” “BAHÇEŞEHİR UNIVERSITY” “SPRING 2005” “Dr. N AYDIN” Pairwise Sequence Alignment Programs Blast 2 Sequences –NCBI –word based sequence alignment LALIGN –FASTA package –Mult. Local alignments needle –Global Needleman/Wunsch alignment water –Local Smith/Waterman alignment

96 “CSE4052” “INTRODUCTION TO BIOINFORMATICS” “BAHÇEŞEHİR UNIVERSITY” “SPRING 2005” “Dr. N AYDIN” Various Sequence Alignments Wise2 -- Genomic to protein Sim4 -- Aligns expressed DNA to genomic sequence spidey -- aligns mRNAs to genomic sequence est2genome -- aligns ESTs to genomic sequence