Sequence homology and alignment

Slides:



Advertisements
Similar presentations
BLAST Sequence alignment, E-value & Extreme value distribution.
Advertisements

Gapped Blast and PSI BLAST Basic Local Alignment Search Tool ~Sean Boyle Basic Local Alignment Search Tool ~Sean Boyle.
Measuring the degree of similarity: PAM and blosum Matrix
Introduction to Bioinformatics
Local alignments Seq X: Seq Y:. Local alignment  What’s local? –Allow only parts of the sequence to match –Results in High Scoring Segments –Locally.
Psi-BLAST, Prosite, UCSC Genome Browser Lecture 3.
Aligning sequences and searching databases
1 Exercise: BIOINFORMATIC DATABASES and BLAST. 2 Outline  NCBI and Entrez  Pubmed  Google scholar  RefSeq  Swissprot  Fasta format  PDB: Protein.
Sequence Alignment Storing, retrieving and comparing DNA sequences in Databases. Comparing two or more sequences for similarities. Searching databases.
Optimatization of a New Score Function for the Detection of Remote Homologs Kann et al.
Heuristic alignment algorithms and cost matrices
1 Multiple sequence alignment Lesson 4. 2 VTISCTGSSSNIGAG-NHVKWYQQLPG VTISCTGTSSNIGS--ITVNWYQQLPG LRLSCSSSGFIFSS--YAMYWVRQAPG LSLTCTVSGTSFDD--YYSTWVRQPPG.
Alignment methods and database searching April 14, 2005 Quiz#1 today Learning objectives- Finish Dotter Program analysis. Understand how to use the program.
|| || ||||| ||| || || ||||||||||||||||||| MVHLTPEEKTAVNALWGKVNVDAVGGEALGRLLVVYPWTQRFFE… ATGGTGAACCTGACCTCTGACGAGAAGACTGCCGTCCTTGCCCTGTGGAACAAGGTGGACG TGGAAGACTGTGGTGGTGAGGCCCTGGGCAGGTTTGTATGGAGGTTACAAGGCTGCTTAAG.
Introduction to bioinformatics
1 ATGGTGAACCTGACCTCTGACGAGAAGACTGCCGTCCTTGCCCTGTGGAACAAGGTGGACG TGGAAGACTGTGGTGGTGAGGCCCTGGGCAGGTTTGTATGGAGGTTACAAGGCTGCTTAAG GAGGGAGGATGGAAGCTGGGCATGTGGAGACAGACCACCTCCTGGATTTATGACAGGAACT.
Sequence similarity.
Similar Sequence Similar Function Charles Yan Spring 2006.
Sequence Alignment III CIS 667 February 10, 2004.
1-month Practical Course Genome Analysis Lecture 3: Residue exchange matrices Centre for Integrative Bioinformatics VU (IBIVU) Vrije Universiteit Amsterdam.
Bioinformatics Unit 1: Data Bases and Alignments Lecture 3: “Homology” Searches and Sequence Alignments (cont.) The Mechanics of Alignments.
1 Lesson 3 Aligning sequences and searching databases.
Sequence alignment, E-value & Extreme value distribution
Introduction to Bioinformatics From Pairwise to Multiple Alignment.
Alignment Statistics and Substitution Matrices BMI/CS 576 Colin Dewey Fall 2010.
Pairwise Alignment How do we tell whether two sequences are similar? BIO520 BioinformaticsJim Lund Assigned reading: Ch , Ch 5.1, get what you can.
An Introduction to Bioinformatics
. Sequence Alignment and Database Searching 2 Biological Motivation u Inference of Homology  Two genes are homologous if they share a common evolutionary.
Protein Sequence Alignment and Database Searching.
Evolution and Scoring Rules Example Score = 5 x (# matches) + (-4) x (# mismatches) + + (-7) x (total length of all gaps) Example Score = 5 x (# matches)
BLAST Workshop Maya Schushan June 2009.
Sequence Alignment Goal: line up two or more sequences An alignment of two amino acid sequences: …. Seq1: HKIYHLQSKVPTFVRMLAPEGALNIHEKAWNAYPYCRTVITN-EYMKEDFLIKIETWHKP.
Pairwise Sequence Alignment. The most important class of bioinformatics tools – pairwise alignment of DNA and protein seqs. alignment 1alignment 2 Seq.
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.
Last lecture summary. Window size? Stringency? Color mapping? Frame shifts?
Comp. Genomics Recitation 3 The statistics of database searching.
Construction of Substitution Matrices
Bioinformatics Multiple Alignment. Overview Introduction Multiple Alignments Global multiple alignment –Introduction –Scoring –Algorithms.
Sequence Alignment Csc 487/687 Computing for bioinformatics.
Function preserves sequences Christophe Roos - MediCel ltd Similarity is a tool in understanding the information in a sequence.
Chapter 3 Computational Molecular Biology Michael Smith
Bioinformatics Ayesha M. Khan 9 th April, What’s in a secondary database?  It should be noted that within multiple alignments can be found conserved.
BLAST: Basic Local Alignment Search Tool Altschul et al. J. Mol Bio CS 466 Saurabh Sinha.
BLAST Slides adapted & edited from a set by Cheryl A. Kerfeld (UC Berkeley/JGI) & Kathleen M. Scott (U South Florida) Kerfeld CA, Scott KM (2011) Using.
Pairwise Local Alignment and Database Search Csc 487/687 Computing for Bioinformatics.
Applied Bioinformatics Week 3. Theory I Similarity Dot plot.
Part 2- OUTLINE Introduction and motivation How does BLAST work?
Pairwise Sequence Alignment Part 2. Outline Summary Local and Global alignments FASTA and BLAST algorithms Evaluating significance of alignments Alignment.
Sequence Based Analysis Tutorial March 26, 2004 NIH Proteomics Workshop Lai-Su L. Yeh, Ph.D. Protein Science Team Lead Protein Information Resource at.
©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.
Construction of Substitution matrices
Blast 2.0 Details The Filter Option: –process of hiding regions of (nucleic acid or amino acid) sequence having characteristics.
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.
MGM workshop. 19 Oct 2010 Some frequently-used Bioinformatics Tools Konstantinos Mavrommatis Prokaryotic Superprogram.
Pairwise Sequence Alignment Exercise 2. || || ||||| ||| || || ||||||||||||||||||| MVHLTPEEKTAVNALWGKVNVDAVGGEALGRLLVVYPWTQRFFE… ATGGTGAACCTGACCTCTGACGAGAAGACTGCCGTCCTTGCCCTGTGGAACAAGGTGGACG.
1 Homology and sequence alignment.. Homology Homology = Similarity between objects due to a common ancestry Hund = Dog, Schwein = Pig.
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.
Pairwise Sequence Alignment and Database Searching
Sequence similarity, BLAST alignments & multiple sequence alignments
Sequence Based Analysis Tutorial
Basic Local Alignment Search Tool
Sequence alignment, E-value & Extreme value distribution
Presentation transcript:

Sequence homology and alignment Lessons 3-4 Sequence homology and alignment

Homology Similarity between characters due to a common ancestry

Sequence homology Similarity between sequences that results from a common ancestor VLSPAVKWAKVGAHAAGHG VLSEAVLWAKVEADVAGHG Basic assumption: Sequence homology → similar structure/function

Sequence alignment Alignment: Comparing two (pairwise) or more (multiple) sequences. Searching for a series of identical or similar characters in the sequences.

Homology Ortholog – homolog with similar function (via speciation) Paralog – homolog which arose from gene duplication Common use: Orthologs – 2 homologs from different species Paralogs – 2 homologs within the same species

How close? Rule of thumb: Proteins are homologous if 25% identical (length >100) DNA sequences are homologous if 70% identical

Twilight zone < 20% identity in proteins – may be homologous and may not be…. (Note that 5% identity will be obtained completely by chance!)

Why sequence alignment? Predict characteristics of a protein – use the structure/function of known proteins for predicting the structure/function of an unknown protein

Sequence modifications Sequences change in the course of evolution due to random mutations Three types of mutations: Insertion - an insertion of a letter or several letters to the sequence. AAGA AAGTA Deletion - deleting a letter (or more) from the sequence. AAGA AGA Substitution - replacing a sequence letter by another. AAGA AACA Insertion or Deletion = Indel

Local vs. Global Global alignment: forces alignment in regions which differ Global alignment – finds the best alignment across the entire two sequences. Local alignment – finds regions of similarity in parts of the sequences. ADLGAVFALCDRYFQ |||| |||| | ADLGRTQN-CDRYYQ Local alignment will return only regions of good alignment ADLG CDRYFQ |||| |||| | ADLG CDRYYQ

When global and when local?

Global alignment PTK2 protein tyrosine kinase 2 of human and rhesus monkey

Protein tyrosine kinase domain

Protein tyrosine kinase domain Human PTK2 and leukocyte tyrosine kinase Both function as tyrosine kinases, in completely different contexts Ancient duplication

Global alignment of PTK and LTK X

Local alignment of PTK and LTK

Pairwise alignment AAGCTGAATTCGAA AGGCTCATTTCTGA One possible alignment: AAGCTGAATT-C-GAA AGGCT-CATTTCTGA-

AAGCTGAATT-C-GAA AGGCT-CATTTCTGA- This alignment includes: 2 mismatches 4 indels (gap) 10 perfect matches

Choosing an alignment: Many different alignments are possible: AAGCTGAATTCGAA AGGCTCATTTCTGA A-AGCTGAATTC--GAA AG-GCTCA-TTTCTGA- AAGCTGAATT-C-GAA AGGCT-CATTTCTGA- Which alignment is better?

Alignment scoring - scoring of sequence similarity: Assumes independence Each position considered separately Score at each position Positive if identical Negative if different or gap Score of an alignment is the sum of position scores Can be positive or negative

Example - naïve scoring system: Perfect match: +1 Mismatch: -2 Indel (gap): -1 AAGCTGAATT-C-GAA AGGCT-CATTTCTGA- A-AGCTGAATTC--GAA AG-GCTCA-TTTCTGA- Score: = (+1)x10 + (-2)x2 + (-1)x4 = 2 Score: = (+1)x9 + (-2)x2 + (-1)x6 = -1 Higher score  Better alignment

Scoring system: The choice of +1,-2, and -1 scores is quite arbitrary Different scoring systems  different alignments Scoring systems implicitly represent a particular theory of evolution Some mismatches are more plausible Transition vs. Transversion LysArg ≠ LysCys Gap extension Vs. Gap opening

Scoring matrix Representing the scoring system as a table or matrix n  n (n is the number of letters the alphabet contains. n=4 for nucleotides, n=20 for amino acids) symmetric T C G A 2 -6

DNA scoring matrices Uniform substitution in all nucleotides: T C G A From To 2 -6 Match Mismatch

DNA scoring matrices Can take into account biological phenomena such as: Transition-transversion

Amino Acid Scoring Matrices Take into account physico-chemical properties

Amino Acid Substitutions Matrices Actual substitutions: Based on empirical data Commonly used by many bioinformatic programs PAM & BLOSUM

Protein matrices – actual substitutions The idea: Given an alignment of a large number of closely related sequences we can score the relation between amino acids based on how frequently they substitute each other M G Y D E M G Y E E M G Y Q E In the fourth column E and D are found in 7 / 8

PAM Matrix - Point Accepted Mutations Based on a database of 1,572 changes in 71 groups of closely related proteins (85% identity) Alignment was easy Counted the number of the substitutions per amino acid pair (20 x 20) Found that common substitutions occurred between chemically similar amino acids

PAM Matrices Family of matrices PAM 80, PAM 120, PAM 250 The number on the PAM matrix represents evolutionary distance Larger numbers are for larger distances

Example: PAM 250 Similar amino acids have greater score

PAM - limitations Only one original dataset Examining proteins with few differences (85% identity) Based mainly on small globular proteins so the matrix is biased

BLOSUM Henikoff and Henikoff (1992) derived a set of matrices based on a much larger dataset BLOSUM observes significantly more replacements than PAM, even for infrequent pairs

BLOSUM: Blocks Substitution Matrix Based on BLOCKS database ~2000 blocks from 500 families of related proteins Families of proteins with identical function Blocks are short conserved patterns of 3-60 aa long without gaps AABCDA----BBCDA DABCDA----BBCBB BBBCDA-AA-BCCAA AAACDA-A--CBCDB CCBADA---DBBDCC AAACAA----BBCCC

BLOSUM Each block represent sequences alignment with different identity percentage For each block the amino-acid substitution rates were calculated to create BLOSUM matrix

BLOSUM Matrices BLOSUMn is based on sequences that shared at least n percent identity BLOSUM62 represents closer sequences than BLOSUM45

Example : Blosum62 derived from block where the sequences clustered share at least 62% identity

More distant sequences PAM vs. BLOSUM PAM100 = BLOSUM90 PAM120 = BLOSUM80 PAM160 = BLOSUM60 PAM200 = BLOSUM52 PAM250 = BLOSUM45 More distant sequences

Scoring system = substitution matrix + gap penalty

Gap penalty We penalize gaps Scoring for gap opening & for extension: Gap-extension penalty < gap-open penalty

Optimal alignment algorithms Needleman-Wunsch (global) Smith-Waterman (local).

Alignment Search Space The “search space” (number of possible gapped alignments) for optimally aligning two sequences is exponential in the length of the sequences, n. If n=100, there are 100100 = 10200 = 100,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000 different alignments. Average protein length is about n=250!

Searching databases

Searching a database Using a sequence as the query to find homologous sequences in the database

DNA or protein? For coding sequences, we can use the DNA sequence or the protein sequence to search for similar sequences. Which is preferable?

Protein is better! Selection (and hence conservation) works on the protein level: CTTTCA = Leu-Ser TTGAGT = Leu-Ser

Query type Nucleotides: a four letter alphabet Amino acids: a twenty letter alphabet Two random DNA sequences will share on average 25% of identity Two random protein sequences will share on average 5% of identity

Conclusions Using the amino acid sequence is preferable for homology search Why use a nucleotide sequence after all? No ORF found, e.g. newly sequenced genome No similar protein sequences were found Specific DNA databases are available (EST)

Some terminology Query sequence - the sequence with which we are searching Hit – a sequence found in the database, suspected as homologous

How do we search a database? Assume we perform pairwise alignment of the query against all the sequences in the database Exact pairwise alignment is O(mn) ≈ O(n2) (m – length of sequence 1, n – length of sequence 2)

How much time will it take? O(n2) computations per search. Assume n=200, so we have 40,000 computations per search Size of database - ~60 million entries 2.4 x 1012 computations for each sequence search we perform! Assume each computation takes 10-6 seconds  24,000 seconds ≈ 6.66 hours for each sequence search 150,000 searches (at least!!) are performed per day

Conclusion Using the exact comparison pairwise alignment algorithm between query and all DB entries – too slow

Heuristic Definition: a heuristic is a design to solve a problem that does not provide exact solution (but is not too bad) and reduces the time complexity of the exact solution

BLAST BLAST - Basic Local Alignment and Search Tool A heuristic for searching a database for similar sequences

DNA or Protein All types of searches are possible. Query: DNA Protein Database: DNA Protein blastn – nuc vs. nuc blastp – prot vs. prot blastx – translated query vs. protein database tblastn – protein vs. translated nuc. DB tblastx – translated query vs. translated database Translated databases: trEMBL genPept

BLAST - underlying hypothesis The underlying hypothesis: when two sequences are similar there are short ungapped regions of high similarity between the two The heuristic: Discard irrelevant sequences Perform exact local alignment with remaining sequences

How do we discard irrelevant sequences quickly? Divide the database into words of length w (w = 3 for protein and w = 7 for DNA) Save the words in a look-up table that can be searched quickly WTD TDF DFG FGY GYP … WTDFGYPAILKGGTAC

BLAST: discarding sequences When the user gives a query sequence, divide it also into words Search the database for consecutive neighbor words

Neighbour words neighbor words are defined according to a scoring matrix (e.g. BLOSUM62 for proteins) with a certain cutoff level GFC (20) GFB GPC (11) WAC (5)

Search for consecutive words Neighbor word Look for a seed: hits on the same diagonal which can be connected A At least 2 hits on the same diagonal with distance which is smaller than a predetermined cutoff Database record This is the filtering stage – many unrelated hits are filtered, saving lots of time! Query

Perform local alignment Database record Query

Try to extend alignment Stop extending when the score of the alignment drops X beneath maximal score obtained this far Discard segments with score < S ASKIOPLLWLAASFLHNEQAPALSDAN JWQEOPLWPLAASOIHLFACNSIFYAS Score=15 Score=17 Score=14 X=4

The result – local alignment The result of BLAST will be a series of local alignments between the query and the different hits found

Theoretically, we could trust any result with an E-value ≤ 1 The number of times we will theoretically find an alignment with a score ≥ Y of a random sequence vs. a random database Theoretically, we could trust any result with an E-value ≤ 1 In practice – BLAST uses estimations. E-values of 10-4 and lower indicate a significant homology. E-values between 10-4 and 10-2 should be checked (similar domains, maybe non-homologous). E-values between 10-2 and 1 are suspicious…

Filtering low complexity Low complexity regions : e.g., Proline rich areas (in protein), Alu repeats (in DNA) Regions of low complexity generate high score of alignment BUT – this does not indicate homology

Solution In BLAST there is masking of low-complexity regions in the query sequence (such regions are represented as XXXXX in query)

Multiple sequence alignment

Like pairwise alignment BUT compare n sequences instead of 2 VTISCTGSSSNIGAG-NHVKWYQQLPG VTISCTGTSSNIGS--ITVNWYQQLPG LRLSCSSSGFIFSS--YAMYWVRQAPG LSLTCTVSGTSFDD--YYSTWVRQPPG PEVTCVVVDVSHEDPQVKFNWYVDG-- ATLVCLISDFYPGA--VTVAWKADS-- AALGCLVKDYFPEP--VTVSWNSG--- VSLTCLVKGFYPSD--IAVEWWSNG-- Like pairwise alignment BUT compare n sequences instead of 2 Rows represent individual sequences Columns represent ‘same’ position May be gaps in some sequences

MSA & Evolution MSA can give you a picture of the forces that shape evolution! Important amino acids or nucleotides are not “allowed” to mutate Less important positions change more easily

Conserved positions Columns where all the sequences contain the same amino acids or nucleotides Important for the function or structure VTISCTGSSSNIGAG-NHVKWYQQLPG VTISCTGSSSNIGS--ITVNWYQQLPG LRLSCTGSGFIFSS--YAMYWYQQAPG LSLTCTGSGTSFDD-QYYSTWYQQPPG

Consensus Sequence The consensus sequence holds the most frequent character of the alignment at each column T G C A T G C A

PSSM – Position Specific Score Matrix Profile 6 5 4 3 2 1 . 0.67 A 0.33 T C G T G C A Profile = PSSM – Position Specific Score Matrix

Alignment methods Progressive alignment (Clustal) Iterative alignment (mafft, muscle) All methods today are an approximation strategy (heuristic algorithm), yield a possible alignment, but not necessarily the best one

Progressive alignment B C D First step: Compute the pairwise alignments for all against all (6 pairwise alignments) the similarities are stored in a table D C B A 11 1 3 10 2

Second step: D C B A 11 1 3 10 2 cluster the sequences to create a tree (guide tree): Represents the order in which pairs of sequences are to be aligned similar sequences are neighbors in the tree distant sequences are distant from each other in the tree The guide tree is imprecise and is NOT the tree which truly describes the relationship between the sequences! A D C B

Third step: A B C D Align most similar pairs Align the alignments as if each of them was a single sequence (replace with a single consensus sequence or use a profile)

Alignment of alignments M Q T F L H T W L Q S W X M Q T - F L H T - W L Q S - W L - T I F M - T I W L T I F M T I W Y

Iterative alignment A B C D Pairwise distance table Guide tree MSA Iterate until the MSA doesn’t change D C B A 11 1 3 10 2 Guide tree MSA A D C B

Searching for remote homologs Sometimes BLAST isn’t enough. Large protein family, and BLAST only gives close members. We want more distant members PSI-BLAST Profile HMMs

Construct profile from blast results PSI-BLAST Position Specific Iterated BLAST Regular blast Construct profile from blast results Blast profile search Final results

PSI-BLAST Advantage: PSI-BLAST looks for seq.s that are close to ours, and learns from them to extend the circle of friends Disadvantage: if we found a WRONG sequence, we will get to unrelated sequences (contamination). This gets worse and worse each iteration

Profile HMM Similar to PSI-BLAST: also uses a profile Takes into account: Dependence among sites (if site n is conserved, it is likely that site n+1 is conserved  part of a domain The probability of a certain column in an alignment

PSI BLAST vs profile HMM Less exact Faster More exact Slower

Case study: Using homology searching The human kinome

Kinases and phosphatases

Multi-tasking enzymes Signal transduction Metabolism Transcription Cell-cycle Differentiation Function of nervous and immune system … And more

How many kinases in the human genome? 1970’s, advent of cloning and sequencing Predicted: 1000 kinases in the human genome

How many kinases in the human genome? 2001 – human genome sequence … As well – databases of Genbank, Swissprot, and dbEST How do we know how many kinases are out there?

The human kinome In 2002, Manning, Whyte, Martinez, Hunter and Sudarsanam set out to: Search and cross-reference all these databases for all kinases Characterize all found kinases

ePKs and aPKs Eukaryotic protein kinases (majority) Atypical protein kinases Sequence homology of the catalytic domain; additional regulatory domains are non-homologous No sequence homology to ePKs; some aPK subfamilies have structural similarity to ePKs

The search Several profiles were built: based on the catalytic domain of (a) 70 known ePKs (b) each subfamily of known aPKs HMM-profile searches and PSI-BLAST searches were performed

The result… 478 apKs 40 ePKs Total of 518 kinases in the human genome (half of the prediction in the 1970’s)

Classifying the kinases Classification based on the catalytic domain Classification based on the regulatory domains 189 sub-families of kinases

Comparison to other species 209 subfamilies of ePKs in human, worm, yeast and fly

The human genome has x2 kinases (in number) as fly or worm The human genome has x2 kinases (in number) as fly or worm. Many are aPKs. Most of them are receptor tyrosine kinases (RTKs) Nervous system Immune system Hemopoiesis

The discovery of new kinases: a new front for battling human diseases

Correlating with human diseases 160 kinases mapped to amplicons seen in tumors 80 kinases mapped to amplicons in other major illnesses Usually kinases are over-expressed in cancer and other diseases

Correlating with human diseases 6 kinase inhibitors have been approved till today for the use against cancer >70 other inhibitors are in clinical trial