CSE 549: Computational Biology. Substitution Matrices

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

Bioinformatics. Scoring Matrices. David Gilbert Bioinformatics Research Centre

Substitution matrices

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

Advanced topics in bioinformatics

Quantifying sequence similarity

Similarity or Identity? When are molecules similar?

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

M.O. Dayhoff, R.M. Schwartz, and B. C, Orcutt

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

Local Alignment Statistics

Scoring Matrices. Shifra Ben-Dor Irit Orr

CONCEPT OF SEQUENCE COMPARISON. Natapol Pornputtapong 18 January 2018

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

Sequence analysis and comparison

Lecture 4: Evolutionary models and substitution matrices (PAM and BLOSUM).

Exercise 5. Sequence Profiles & BLAST

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

Pairwise sequence alignments

Pairwise sequence alignments. Vassilios Ioannidis (From Volker Flegel )

Computational Biology

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

Pairwise sequence alignment

In-Depth Assessment of Local Sequence Alignment

Bioinformatics (GLOBEX, Summer 2015) Pairwise sequence alignment

Statistical Distributions of Optimal Global Alignment Scores of Random Protein Sequences

Massachusetts Institute of Technology Computational Evolutionary Biology, Fall, 2005 Notes for November 7: Molecular evolution

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

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

Biochemistry 324 Bioinformatics. Pairwise sequence alignment

Practical considerations of working with sequencing data

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

Introduction to Comparative Protein Modeling. Chapter 4 Part I

BLAST: Target frequencies and information content Dannie Durand

Single alignment: Substitution Matrix. 16 march 2017

Sequence Database Search Techniques I: Blast and PatternHunter tools

Supplemental Materials for. Structural Diversity of Protein Segments Follows a Power-law Distribution

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

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

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

3. SEQUENCE ANALYSIS BIOINFORMATICS COURSE MTAT

Proteins: Characteristics and Properties of Amino Acids

Secondary Structure. Bioch/BIMS 503 Lecture 2. Structure and Function of Proteins. Further Reading. Φ, Ψ angles alone determine protein structure

Sequence comparison: Score matrices

Algorithms in Bioinformatics

What makes a good graphene-binding peptide? Adsorption of amino acids and peptides at aqueous graphene interfaces: Electronic Supplementary

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

Packing of Secondary Structures

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

Sequence Based Bioinformatics

Week 10: Homology Modelling (II) - HHpred

An Introduction to Sequence Similarity ( Homology ) Searching

Structure and evolution of the spliceosomal peptidyl-prolyl cistrans isomerase Cwc27

C H E M I S T R Y N A T I O N A L Q U A L I F Y I N G E X A M I N A T I O N SOLUTIONS GUIDE

Clustering and Model Integration under the Wasserstein Metric. Jia Li Department of Statistics Penn State University

SEQUENCE ALIGNMENT BACKGROUND: BIOINFORMATICS. Prokaryotes and Eukaryotes. DNA and RNA

... and searches for related sequences probably make up the vast bulk of bioinformatics activities.

Exam III. Please read through each question carefully, and make sure you provide all of the requested information.

Large-Scale Genomic Surveys

Pairwise Sequence Alignment

114 Grundlagen der Bioinformatik, SS 09, D. Huson, July 6, 2009

Homology Modeling. Roberto Lins EPFL - summer semester 2005

A New Similarity Measure among Protein Sequences

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

Protein structure. Protein structure. Amino acid residue. Cell communication channel. Bioinformatics Methods

Tools and Algorithms in Bioinformatics

Physiochemical Properties of Residues

Scoring Matrices. Shifra Ben Dor Irit Orr

Supplementary Figure 3 a. Structural comparison between the two determined structures for the IL 23:MA12 complex. The overall RMSD between the two

Properties of amino acids in proteins

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

Protein Bioinformatics. Rickard Sandberg Dept. of Cell and Molecular Biology Karolinska Institutet sandberg.cmb.ki.

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

Other Methods for Generating Ions 1. MALDI matrix assisted laser desorption ionization MS 2. Spray ionization techniques 3. Fast atom bombardment 4.

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

Moreover, the circular logic

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

NMR Assignments using NMRView II: Sequential Assignments

Amino Acid Side Chain Induced Selectivity in the Hydrolysis of Peptides Catalyzed by a Zr(IV)-Substituted Wells-Dawson Type Polyoxometalate

bioinformatics 1 -- lecture 7

Ramachandran Plot. 4ysz Phi (degrees) Plot statistics

Peptides And Proteins

EECS730: Introduction to Bioinformatics

Lecture Notes: Markov chains

Basic Local Alignment Search Tool

Supplementary Information. Broad Spectrum Anti-Influenza Agents by Inhibiting Self- Association of Matrix Protein 1

Supporting information to: Time-resolved observation of protein allosteric communication. Sebastian Buchenberg, Florian Sittel and Gerhard Stock 1

Chapter 2: Sequence Alignment

Homology Modeling (Comparative Structure Modeling) GBCB 5874: Problem Solving in GBCB

Sequence Alignment Techniques and Their Uses

Course Notes: Topics in Computational. Structural Biology.

Sequence Bioinformatics. Multiple Sequence Alignment Waqas Nasir

Similarity searching summary (2)

MODELING EVOLUTION AT THE PROTEIN LEVEL USING AN ADJUSTABLE AMINO ACID FITNESS MODEL

Alignment principles and homology searching using (PSI-)BLAST. Jaap Heringa Centre for Integrative Bioinformatics VU (IBIVU)

Copyright 2000 N. AYDIN. All rights reserved. 1

Sequence Comparison. mouse human

Sequential resonance assignments in (small) proteins: homonuclear method 2º structure determination

Tools and Algorithms in Bioinformatics

Computational Protein Design

Transcription:

CSE 9: Computational Biology Substitution Matrices

How should we score alignments So far, we ve looked at arbitrary schemes for scoring mutations. How can we assign scores in a more meaningful way? Are these scores better than these scores? A C G T A - - - C - - - G - - - T - - - A C G T A - - - C - - - G - - - T - - -

How should we score alignments So far, we ve looked at arbitrary schemes for scoring mutations. How can we assign scores in a more meaningful way? Are these scores A C G T A - - - better than these scores? A C G T A - - - C - - - C - - - One option learn the substitution / mutation rates from real data G - - - G - - - T - - - T - - -

How should we score alignments Main Idea: Assume we can obtain (through a potentially burdensome process) a collection of high quality, high confidence sequence alignments. We have a collection of sequences which, presumably, originated from the same ancestor differences are mutations due to divergence. Learn the frequency of different mutations from these alignments, and use the frequencies to derive our scoring function.

BLOSUM matrix Brick, Kevin, and Elisabetta Pizzi. "A novel series of compositionally biased substitution matrices for comparing Plasmodium proteins." BMC bioinformatics 9. (8):.

Probabilities to Scores Assuming we have a reasonable process by which to compute frequencies, how can we use this to obtain a score?

Probabilities to Scores Assuming we have a reasonable process by which to compute frequencies, how can we use this to obtain a score? Hypothesis we wish to test; two amino acids are correlated because they are homologous. score = log odds ratio = s AB / log observed expected Null hypothesis; two amino acids occur independently (and are uncorrelated and unrelated). Eddy, Sean R. "Where did the BLOSUM alignment score matrix come from?." Nature biotechnology.8 (): -.

Probabilities to Scores score = log odds ratio = s AB / log observed expected ratio - score - Positive scores mean we find conservative substitutions Negative scores mean we find nonconservative substitutions Eddy, Sean R. "Where did the BLOSUM alignment score matrix come from?." Nature biotechnology.8 (): -.

BLOSUM matrix Introduced by Henikoff & Henikoff in 99 Start with the BLOCKS database (H&H 9). Look for conserved (gapless, >=% identical) regions in alignments.. Count all pairs of amino acids in each column of the alignments.. Use amino acid pair frequencies to derive score for a mutation/replacement Henikoff, S.; Henikoff, J.G. (99). "Amino Acid Substitution Matrices from Protein Blocks". PNAS 89 (): 9 99.

} BLOSUM matrix Start with the BLOCKS database (H&H 9). Look for conserved (gapless) regions in alignments. } collection of related proteins conserved block within these proteins sequences too similar are clustered & represented by either a single sequence, or a weighted combination of the cluster members BLOSUM r: the matrix built from blocks with no more than r% of similarity e.g., BLOSUM is the matrix built using sequences with no less than % similarity.* Henikoff, S.; Henikoff, J.G. (99). "Amino Acid Substitution Matrices from Protein Blocks". PNAS 89 (): 9 99.

BLOSUM matrix Start with the BLOCKS database (H&H 9). Count all pairs of amino acids in each column of the alignments. FPTADAGGRS FVTADALGRS FPTPDAGLRN FVTAEAGIRQ FPTAEAGGRS c (i) AB = c (i) A 8 < : c (i) A A c(i) B c (i) if A = B otherwise = num. of occurrences of A in column i What is the intuition behind this expression? Henikoff, S.; Henikoff, J.G. (99). "Amino Acid Substitution Matrices from Protein Blocks". PNAS 89 (): 9 99.

BLOSUM matrix Start with the BLOCKS database (H&H 9). Count all pairs of amino acids in each column of the alignments. FPTADAGGRS FVTADALGRS FPTPDAGLRN FVTAEAGLRQ FPTAEAGGRS c (i) GG = c (i) Example: = GL = c (i) LL = = In this column, there are ways to pair G with G, potential ways to pair G with L and potential way to pair L with L. Henikoff, S.; Henikoff, J.G. (99). "Amino Acid Substitution Matrices from Protein Blocks". PNAS 89 (): 9 99.

Computing Scores. Use amino acid pair frequencies to derive score for a mutation/replacement Total # of potential align. between A & B: c AB = X i c (i) AB Total number of pairwise char. alignments: T = X A B c AB Normalized frequency of aligning A & B: q AB = c AB T

BLOSUM matrix FPTADAGGRS FVTADALGRS FPTPDAGLRN FVTAEAGLRQ FPTAEAGGRS In our example, we get q GL = +++++++++ ()() = Henikoff, S.; Henikoff, J.G. (99). "Amino Acid Substitution Matrices from Protein Blocks". PNAS 89 (): 9 99.

BLOSUM matrix FPTADAGGRS FVTADALGRS FPTPDAGLRN FVTAEAGLRQ FPTAEAGGRS In our example, we get q GL = +++++++++ ()() = why does this denominator work? Henikoff, S.; Henikoff, J.G. (99). "Amino Acid Substitution Matrices from Protein Blocks". PNAS 89 (): 9 99.

BLOSUM matrix FPTADAGGRS FVTADALGRS FPTPDAGLRN FVTAEAGLRQ FPTAEAGGRS cvp = * = cpp = choose = cvv = choose = So cvp + cpp +cvv = = choose In our example, we get q GL = +++++++++ ()() = why does this denominator work? Henikoff, S.; Henikoff, J.G. (99). "Amino Acid Substitution Matrices from Protein Blocks". PNAS 89 (): 9 99.

BLOSUM matrix FPTADAGGRS FVTADALGRS FPTPDAGLRN FVTAEAGLRQ FPTAEAGGRS In our example, we get q GL = +++++++++ ()() = total column sum is always # rows choose Henikoff, S.; Henikoff, J.G. (99). "Amino Acid Substitution Matrices from Protein Blocks". PNAS 89 (): 9 99.

Computing Scores. Use amino acid pair frequencies to derive score for a mutation/replacement Probability of occurrence of amino acid A in any {A,B} pair: p A = q AA + X A=B q AB Expected likelihood of each {A,B} pair, assuming independence: ( (p A )(p B )=(p A ) if A = B e AB = (p A )(p B )+(p B )(p A )=(p A )(p B ) otherwise

Computing Scores Recall the original idea (likelihood scores) score = log odds ratio = s AB / log observed expected score = log odds ratio = s AB = Round log qab e AB! Scaling factor used to produce scores that can be rounded to integers; set to. in H&H 9. Henikoff, S.; Henikoff, J.G. (99). "Amino Acid Substitution Matrices from Protein Blocks". PNAS 89 (): 9 99.

Scores are data-dependent distribution of amino acids across columns matters GG GA WG WA NG GA GA pg =. egg =. qgg =. sgg = Round[()log(. /.)] = Round[()(-.)] = GW GA GW GA GN GA GA pg =. egg =. qgg =. sgg = Round[()log(. /.)] = Round[()()] = adopted from: http://www.bioinfo.rpi.edu/bystrc/courses/biol/lecture.pdf

Scores are data-dependent {G,W} observed a lot GG GA WG AW NG GA GA {G,W} observed rarely GW GA GW GA GN GA AG pg =. pw =. pg =. pw =. egw =. qgw =.7 sgw = Round[()log(.7 /.)] = Round[()(.)] = egw =. qgw =.8 sgw = Round[()log(.8 /.)] = Round[()(-.7)] = - adopted from: http://www.bioinfo.rpi.edu/bystrc/courses/biol/lecture.pdf

Example FPTADAGGRS FVTADALGRS FPTPDAGLRN FVTAEAGLRQ FPTAEAGGRS c AB = X i c (i) AB Matrix of cab values A D E F G L N P Q R S T V A D E F G 9 L N P Q R S T V

Example Matrix of qab values cab q AB = c AB T p A = q AA + X A=B AB q AB A D E F G L N P Q R S T V A. D. E.. F. G.9 L.. N P.. Q. R. S... T. V.. P A P D P E P F P G P L P N P P P Q P R P S P T P V.8.......8.....

Example Matrix of eab values A D E F G L N P Q R S T V A. D.. E..8. F...8. G..8..8.9 L..7.8..8. N.7...... P.88.9....9.. Q.7......8.. R...8..8..... S..7.8..8.7..9... T...8..8....... V..8..8..8....8.8.8. pa qab e AB = ( (p A )(p B )=(p A ) if A = B (p A )(p B )+(p B )(p A )=(p A )(p B ) otherwise

Example s AB = Round qab eab log qab e AB! Matrix of scores A D E F G L N P Q R S T V A D E 7 F 7 G L N P Q 7 R 7 S 7 7 T 7 V Blank cells are missing data (i.e. no observed values); wouldn t happen with sufficient training data.

Dealing with sequence redundancy E.g., for BLOSUM-8, group sequences that are >8% similar (slide from Michael Gribskov)

Point Accepted Mutation Matrix Introduced by Margaret Dayhoff in 978 Observed mutation probabilities between amino acids over 7 families of closely related proteins (8% sequence identity within a family) Based on a Markov mutation model; The PAM is a unit of evolutionary mutation. PAM is the unit for which mutation to occurs per amino acids (this varies e.g. by species). The PAM matrix express the log odds ratio of the likelihood of a point accepted mutation from one amino acid to another to the likelihood that these amino acids were aligned by chance. PAM matrix slides below courtesy of Didier Gonze (http://homepages.ulb.ac.be/~dgonze/teaching/pam_blosum.pdf) Picture from: http://en.wikipedia.org/wiki/margaret_oakley_dayhoff#mediaviewer/file:margaret_oakley_dayhoff_cropped.jpg

PAM scoring matrices The substitution score is expected to depend on the rate of divergence between sequences. accepted mutations The PAM matrices derived by Dayhoff (978): are based on evolutionary distances. have been obtained from carefully aligned closely related protein sequences (7 gapless alignments of sequences having at least 8% similarity). M. Dayhoff Reference: Dayhoff et al. (978). A model of evolutionary change in proteins. In Atlas of Protein Sequence and Structure, vol., suppl.,. National Biomedical Research Foundation, Silver Spring, MD, 978.

PAM scoring matrices PAM = Percent (or Point) Accepted Mutation The PAM matrices are series of scoring matrices, each reflecting a certain level of divergence: PAM = unit of evolution ( PAM = mutation/ amino acid) PAM PAM PAM proteins with an evolutionary distance of % mutation/position idem for % mutations/position % mutations/position (a position could mutate several times) Reference: Dayhoff et al. (978). A model of evolutionary change in proteins. In Atlas of Protein Sequence and Structure, vol., suppl.,. National Biomedical Research Foundation, Silver Spring, MD, 978.

Derivation of the PAM matrices To illustrate how the PAM substitution matrices have been derived, we will consider the following artificial ungapped aligned sequences: A C G H D B G H A D I J C B I J Reference: Borodovsky & Ekisheva (7) Problems and Solutions in Biological sequence analysis. Cambridge Univ Press.

Derivation of the PAM matrices Phylogenetic trees (maximum parsimony) ABGH ABIJ H-J G-I J-H!I-G ABGH ABIJ ABGH ABIJ B-C A-D B-D A-C ACGH DBGH ADIJ CBIJ B-C A-D B-D A-C ACGH DBGH ADIJ CBIJ ABIH ABGJ I-G H-J J-H G-I ABGH ABIJ ABGH ABIJ B-C A-D B-D A-C ACGH DBGH ADIJ CBIJ B-C A-D B-D A-C ACGH DBGH ADIJ CBIJ Here are represented the four more parsimonious (minimum of substitutions) phylogenetic trees for the alignment given above.

Derivation of the PAM matrices Matrix of accepted point mutation counts (A) J I H G D C B A J I H G D C B A For each pair of different amino acids (i,j), the total number a ij of substitutions from i to j along the edges of the phylogenetic tree is calculated. (they are indicated in blue on the previous slide)

Derivation of the PAM matrices Each edge of a given tree is associated with the ungapped alignment of the two sequences connected by this edge. Thus, any tree shown above generates alignments. For example the first phylogenetic tree generates the following alignments: ABGH H-J G-I A B G H A B G H A B G H A B G H A B I J A C G H ABGH ABIJ B-C A-D B-D A-C ACGH DBGH ADIJ CBIJ A B G H A B I J A B I J D B G H A D I J C B I J Those alignments can be used to assess the "relative mutability" of each amino acid.

Derivation of the PAM matrices Relative mutability (m i ) The relative mutability is defined by the ratio of the total number of times that amino acid j has changed in all the pair-wise alignments (in our case x= alignments) to the number of times that j has occurred in these alignments, i.e. alns / tree # of trees m j = number of changes of j number of occurrences of j Relative amino acid mutability values m j for our example Amino acid Changes (substitutions) A 8 B 8 Frequency of occurrence 8 8 Relative mutability m j...7.7.7.7 The relative mutability accounts for the fact that the different amino acids have different mutation rates. This is thus the probability to mutate. I H G J C 8 D 8

Derivation of the PAM matrices Relative mutability of the amino acids aa m i aa m i Trp and Cys are less mutable Asn Ser Asp Glu Ala Thr 97 His Arg Lys Pro Gly Tyr 9 Cys is known to have several unique, indispensable function (attachment site of heme group in cytochrome and of FeS clusters in ferredoxin). It also forms cross-links such as in chymotrypsin or ribonuclease. Big groups like Trp or Phe are less mutable due to their particular chemistry. On the other extreme, the low mutability of Cys must be due to its unique smallness that is advatageous in many places. Ile 9 Phe Met 9 Leu Asn, Ser, Asp and Glu are most mutable Gln Val 9 7 Cys Trp 8 Values according Dayhoff (978) The value for Ala has been arbitrarily set at. Although Ser sometimes functions in the active center, it more often performs a function of lesser importance, easily mimicked by several other amino acids of similar physical and chemical properties.

Derivation of the PAM matrices Effective frequency (f i ) The notion of effective frequency f i takes into account the difference in variability of the primary structure conservation in proteins with different functional roles. Two alignment blocks corresponding to different families may contribute differently to f i even if the number of occurrence of amino acid j in these blocks is the same. " relative frequency of % $ ' = # exposure to mutation& " average composition% " number of mutations in% $ ' ( $ ' # of each group & # the corresponding tree&

Derivation of the PAM matrices Effective frequency (f i ) The effective frequency is defined as where f j = k " b (b q ) j N (b ) the sum is taken over all alignment blocks b q j (b) is the observed frequency of amino acid j in block b, N (b) is the number of substitutions in a tree built for b and the coefficient k is chosen the ensure that the sum of the frequences f j =. In our example, there is only one block, therefore the effective frequencies are equal to the compositional frequencies (f i = q j ): Amino acid A B I H G J C D Frequency f........

Derivation of the PAM matrices Effective frequency of the amino acids determined for the original alignment data (Dayhoff et al., 978) Amino acid Gly Ala Leu Lys Ser Val Thr Frequency f.89.87.8.8.7..8 Amino acid Pro Glu Asp Arg Asn Phe Gln Frequency f...7....8 Amino acid Ile His Cys Tyr Met Trp Frequency f.7..... Source: Dayhoff, 978 Distribution of amino acids found in 8 peptides and proteins listed in the Atlas of Protein Sequence and Structure (98). Doolittle RF (98) Similar amino acid sequences: chance or common ancestry? Science. :9-9.

Derivation of the PAM matrices Mutational probability matrix (M) Let's define M ij the probability of the amino acid in column j having been substituted by an amino acid in row i over a given evolutionary time unit. Non-diagonal elements of M: Diagonal elements of M: M ij = "m j A ij A kj # k M ii =" #m i In these equations, m is the relative mutability and A is the matrix of accepted point mutations. The constant λ represents a degree of freedom that could be used to connect the matrix M with an evolutionary time scale. In our example: see matrix A A A B C D this represents / of the cases this represents 8/ of the cases mutability m If A is mutated, the probability that it is mutated into D is A DA /(A BA +A CA +A DA ) = /8 Thus the probability that A is mutated into D is: M DA = /8 * 8/ = / and the probability that A is not mutated is: M AA = - 8/ = /

Derivation of the PAM matrices Mutational probability matrix (M) Let's define M ij the probability of the amino acid in column j having been substituted by an amino acid in row i over a given evolutionary time unit. Non-diagonal elements of M: Diagonal elements of M: M ij = "m j A ij A kj # k M ii =" #m i In these equations, m is the relative mutability and A is the matrix of accepted point mutations. The constant λ represents a degree of freedom that could be used to connect the matrix M with an evolutionary time scale. The coefficient λ could be adjusted to ensure that a specific (small) number of substitutions would occur on average per hundred residues. This adjustement was done by Dayhoff et al in the following way. The expected number of amino acids that will remain inchanged unchanged in a protein sequence amino acid long is given by: " f j M jj =" f j (# $m j ) j If only one substitution per residue is allowed, then λ is calculated from the equation: $ f j (" #m j ) = 99 j j

For every amino acids We want 99 of them to remain unchanged. $ j f j (" #m j ) = 99 Average probability that amino acids will not mutate

Derivation of the PAM matrices Mutational probability matrix In our example, λ =. and the mutation probability matrix (PAM) is: A B C D G H I J A.998.. B.998.. C...97 D...97 G.997. H.997. I..997 J..997 Note that M is a non-symmetric matrix.

Derivation of the PAM matrices Mutational probability matrix derived by Dayhoff for the amino acids 99 7 7 V 99 Y 997 W 9 987 8 T 8 98 7 7 7 8 S 99 8 P 8 99 8 F 987 8 M 8 99 7 7 K 997 L 7 7 9 987 I 99 8 8 H 99 7 G 98 7 E 7 987 9 Q 997 C 989 D 9 98 N 8 9 99 R 8 7 8 9 987 A V Y W T S P F M K L I H G E Q C D N R A For clarity, the values have been multiplied by Source: Dayhoff, 978 This matrix corresponds to an evolution time period giving mutation/ amino acids, and is refered to as the PAM matrix.

Derivation of the PAM matrices Mutational probability matrix derived by Dayhoff for the amino acids This matrix is the mutation probability matrix for an evolution time of PAM. The diagonal represents the probability to still observe the same residue after PAM. Therefore the diagonal represents the 99% of the case of non-mutation. Note that this does not mean that there was no mutation during this time interval. Indeed, the conservation of a residue could reflect either a conservation during the whole period, or a succession of two or more mutations ending at the initial residue Source: J. van Helden

Derivation of the PAM matrices From PAM to PAM line of PAM column 7 of PAM => Matrix product: PAM = PAM x PAM Source: J. van Helden

Derivation of the PAM matrices From PAM to PAM, PAM, PAM, etc... Remark (from graph theory) a b c d a b c a b c d d Matrix Q indicates the number of paths going from one node to another in step a b c a b c d Matrix Q indicates the number of paths going from one node to another in steps d Source: J. van Helden a b c d a............ b............ c............ d............ Matrix Q n indicates the number of paths going from one node to another in n steps

Derivation of the PAM matrices From PAM to PAM, PAM, PAM, etc... Similarly: PAM gives the probability to observe the changes i j per mutations PAM = PAM gives the probability to observe the changes i j per mutations PAM = PAM gives the probability to observe the changes i j per mutations PAM = PAM gives the probability to observe the changes i j per mutations PAMn = PAM n gives the probability to observe the changes i j per xn mutations. Convergence: it can be verified that PAM = PAM converges to the observed frequencies: $ f A f A... f A ' & ) f lim M n = & R f R... f R ) n "# &.........) & ) % f V f V... f V ( Dayhoff et al. (978) checked this convergence by computing M.

Derivation of the PAM matrices PAM derived by Dayhoff for the amino acids V Y W T S P F M K L I H G E Q C D N R A V Y W T S P F M K L I H G E Q C D N R A 7 7 7 8 8 9 9 7 9 7 7 7 8 9 7 8 8 9 8 8 8 8 7 9 7 7 9 8 7 9 7 9 7 7 7 7 8 7 7 9 7 9 7 7 8 9 8 9 9 For clarity, the values have been multiplied by Source: Dayhoff, 978 This matrix corresponds to an evolution time period giving mutation/ amino acids (i.e. an evolutionary distance of PAM), and is refered to as the PAM matrix.

Derivation of the PAM matrices Interpretation of the PAM matrix In comparing sequences at this evolutionary distance ( PAM), there is: * * * * A * * * * * PAM * * * * A * * * * * probability of % * * * * R * * * * * probability of % * * * * N * * * * * probability of % * * * * W * * * * * probability of %... Source: Dayhoff, 978

Derivation of the PAM matrices From probabilities to scores So far, we have obtained a probability matrix, but we would like a scoring matrix. A score should reflect the significance of an alignment occurring as a result of an evolutionary process with respect to what we could expect by chance. A score should involve the ratio between the probability derived from nonrandom (evolutionary) to random models: r n (i, j) = M n ji f j = P ji,n f i f j probability to see a pair (i,j) due to evolution probability to see a pair (i,j) by chance The matrix M ji n is the mutational probability matrices at PAM distance n. Matrices M and M have been shown before. P ji,n = f i M ji n is the probability that two aligned amino acids have diverged from a common ancestor n/ PAM unit ago, assuming that the substitutions follow a Markov process (for details, see Borodovsky & Ekisheva, 7). Note that R (the odd-score or relatedness matrix) is a symmetric matrix.

Derivation of the PAM matrices Log-odd scores In practice, we often use the log-odd scores defined by s n (i, j) = log M n ji f j = log P ji,n f i f j This definition has convenient practical consequences: A positive score (s n > ) characterizes the accepted mutations A negative score (s n < ) characterizes the unfavourable mutations Another property of the log-odd scores is that they can be added to produce the score of an alignment: T A H G K Y S D G D S alignment = s(t,y) + s(a,s) + s(h,d) + s(g,g) + s(k,d)

Derivation of the PAM matrices Cys C Ser S PAM matrix (log-odds) Thr T - Pro P - Ala A - Gly G - - Asn N - - Asp D - - Glu E - - Gln Q - - - - His H - - - - - Arg R - - - - - - Lys K - - - - Met M - - - - - - - - - - - Ile I - - - - - - - - - - - - Leu L - - - - - - - - - - - - - Val V - - - - - - - - - - - Phe F - - - - - - - - - - - - - - 9 Tyr Y - - - - - - - - - - - - - - - 7 Trp W -8 - - - - -7 - -7-7 - - - - - - - 7 C S T P A G N D E Q H R K M I L V F Y W Cys Ser Thr Pro Ala Gly Asn Asp Glu Gln His Arg Lys Met Ile Leu Val Phe Tyr Trp Hydrophobic C P A G M I L V Aromatic H F Y W Polar S T N Q Y Basic H R K Acidic D E Source: J. van Helden

PAM matrices: exercise The original PAM substitution matrix scores a substitution of Gly by Arg by a negative score - (decimal logarithm and scaling factor are used, with rounding to the nearest neighbour). The average frequency of Arg in the protein sequence database is.. Use this information as well as the method described above to estimate the probability that Gly will be substituted by Arg after a PAM time period. Source: Borodovsky & Ekisheva (7)

PAM matrices: exercise The original PAM substitution matrix scores a substitution of Gly by Arg by a negative score - (decimal logarithm and scaling factor are used, with rounding to the nearest neighbour). The average frequency of Arg in the protein sequence database is.. Use this information as well as the method described above to estimate the probability that Gly will be substituted by Arg after a PAM time period. The element s ij of the PAM substitution matrix and the frequency of amino acid j (f j ) in a protein sequence database are connected by the following formula: # s ij = % log $ P(i " j in PAM) f j Therefore, the probability of substitution of Gly by Arg is: & ( ' P(Gly " Arg in PAM) =.# $. =. Source: Borodovsky & Ekisheva (7)

Derivation of the PAM matrices Scoring an alignment A scoring matrix like PAM can be used to score an alignment T A H G K Y S D G D S alignment = s(t,y) + s(a,s) + s(h,d) + s(g,g) + s(k,d) = - + + + + =

Choosing the appropriate PAM matrix How to choose the appropriate PAM matrix? Correspondance between the observed percent of amino acid difference d between the evolutionary distance n (in PAM) between them: # j f j M n jj = " d identity (%) 99 difference d (%) PAM index n 9 9 8 7 8 7 7 8 8 7 9 twilight zone (detection limit) 8 8

Choosing the appropriate PAM matrix How to choose the appropriate PAM matrix? Altschul SF(99) Amino acid substitution matrices from an information theoretic perspective. J Mol Biol. 9:-. PAM matrix is the most appropriate for database searches PAM matrix is the most appropriate for comparing two specific proteins with suspected homology Remark: In the PAM matrices, the index indicates the percentage of substitution per position. Higher indexes are more appropriate for more distant proteins (PAM better than PAM for distant proteins).

Other Scoring Matrices PAM vs. BLOSUM from: http://en.wikipedia.org/wiki/blosum, http://en.wikipedia.org/wiki/point_accepted_mutation

Other Scoring Matrices PAM vs. BLOSUM PAM BLOSUM Based on global alignments of closely related proteins. Based on local alignments of protein segments. PAM is the matrix calculated from comparisons of sequences with no more than % divergent Other PAM matrices are extrapolated from PAM Larger numbers in name denote larger evolutionary distance Based on explicit, Markovian, model of evolution BLOSUM is calculated from comparisons of sequences no less than % identical Other BLOSUM matrices are not extrapolated, but computed based on observed alignments at different identity percentage Larger numbers in name denote higher sequence similarity (& therefore smaller evolutionary distance) Not based on any explicit model of evolution, but learned empirically from alignments from: http://en.wikipedia.org/wiki/blosum

What about gap penalties? Despite some work +, the setting of gap penalties is still much more arbitrary than the selection of a substitution matrix. Gap penalty values are designed to reduce the score when an alignment has been disturbed by indels. The value should be small enough to allow a previously accumulated alignment to continue with an insertion of one of the sequences, but should not be so large that this previous alignment score is removed completely. Changing the gap function can have significant effects on reported alignments. People often resort to defaults to avoid having to justify a choice. +Reese, J. T., and William R. Pearson. "Empirical determination of effective gap penalties for sequence comparison." Bioinformatics 8. (): -7. http://en.wikipedia.org/wiki/gap_penalty