350 likes | 443 Views
CSCE555 Bioinformatics. Lecture 10 Motif Discovery Meeting: MW 4:00PM-5:15PM SWGN2A21 Instructor: Dr. Jianjun Hu Course page: http://www.scigen.org/csce555. HAPPY CHINESE NEW YEAR. University of South Carolina Department of Computer Science and Engineering 2008 www.cse.sc.edu. Outline.
E N D
CSCE555 Bioinformatics Lecture 10 Motif Discovery Meeting: MW 4:00PM-5:15PM SWGN2A21 Instructor: Dr. Jianjun HuCourse page: http://www.scigen.org/csce555 HAPPY CHINESE NEW YEAR University of South Carolina Department of Computer Science and Engineering 2008 www.cse.sc.edu.
Outline • Introduction to DNA Motif • Motif Representations (Recap) • Motif database search • Algorithms for motif discovery
What is a DNA motif? • Motif A Recurring pattern • A short conserved sequence pattern associated with distinct functions of a protein or DNA • DNA motifs asTranscription Factor biding sites
Transcription: binding sites (DNA) and factors (proteins) Colored lines are binding sites: DNA sequence patterns. Blobs are factors (proteins) that recognize binding sites.
Example:Transcription Factor Binding Sites Estrogen Receptor Transcription start DNA ERE (estrogen response element)
Why are sequence patterns useful--revisited In the context of transcriptional regulation, sequence patterns can be used to help answer several questions. • What transcription factors are involved in regulating my gene? • Does my gene contain a DNA binding domain? • What novel transcription factor binding sites does my set of co-regulated genes contain?
How do we represent sequence patterns? The three most common pattern representation languages: • regular expressions (e.g.,leucine zipper) • profiles (PWMs, PSSMs etc.) • hidden Markov models (HMMs)
1) Regular expressions define sets of sequences that they match Sp1 binds to DNA via 3 zinc-finger binding domains: C-X(2,4)-C-X(3)- [LIVMFYWC]-X(8)-H- X(3,5)-H These particular domains recognize Sp1 binding sites: GRGGCRGGW Transcription factor Sp1 binding to DNA
2) Profiles are built from multiple alignments of instances of a pattern Example: nuclear hormone receptor transcription factor binding siteprofile derived from experimentally determined sites. Observed counts can be converted to frequencies by dividing by the number of observed instances. So profiles are probabilistic models of sequence patterns. Counts of number of times each letter is observed at each position in pattern.
3) Making a Markov Model A C A - - - A T G T C A A C T A T C A C A C - - A G C A G A - - - A T C A C C G - - A T C [AT][CG][AC][ACGT-](3)A[TG][GC] ~3600 possible valid sequences
Making a Markov Model of Motif 0.4 C:0.4 G:0.2 T:0.2 A:0.2 0.6 0.6 1.0 1.0 0.4 1.0 1.0 A:0.8 T:0.2 C:0.8 G:0.2 A:0.8 C:0.2 A:1.0 T:0.8 G:0.2 C:0.8 G:0.2 P(ACAC--ATC)=0.8x1.0x0.8x1.0x0.8x1.0x0.6x0.4 x0.6x1.0x1.0x0.8x1.0x0.8 = 0.0047
How to score the match of a sequence against three motif models? • Regular express: exact match or fuzzy match • Profile: sum of log-odds • HMM: probability score P(s|H)
Outline • Introduction to DNA Motif • Motif Representations (Recap) • Motif database search • Algorithms for motif discovery
How do we search for occurrences of known patterns? Tools exist that allow us to search for one or more known sequence patterns in one or more sequences in different ways. • The patterns can come from a database of known patterns or be novel patterns we have discovered using pattern discovery software or other means. • Some tools treat each pattern independently; others look for groups of matches to patterns. • All tools compare each pattern to each position and compute a score which can be the number of mutations (regular expression patterns) or a probability or log-odds (profiles and HMMs).
Many useful databases of patterns have been compiled • TRANSFAC – transcription factor binding sites (profiles) • PROSITE – protein sites and domains (regular expressions and profiles) • EPD – eukaryotic promoters (profiles) • PFAM – protein families and domains (HMMs) • BLOCKS – protein families (profiles)
Searching for known patterns in a given sequence • MOTIF – search protein sequence against Prosite, PFAM etc.; search DNA sequence against TRANSFAC • PROFILESCAN – search protein sequence against Prosite database of profiles or regular expressions • MAST – search for occurrences of one or more patterns in a DNA sequence (or database of sequences)
Outline • Introduction to DNA Motif • Motif Representations (Recap) • Motif database search • Algorithms for motif discovery
The Motif Discovery Problem • We are given a set of sequences, each containing an instance of an unknown motif. Find the motif. • Multiple, local sequence alignment. • A clean, computer-sciencey problem. A bit too clean, we should be suspicious…
In Real Life • A microarray experiment indicates that 50 genes share similar expression patterns. • Do they share a common type of transcription factor binding site? • Almost certainly some of the genes were included erroneously: experimental noise. • Perhaps they share a common mRNA degradation signal. • Is the TFBS near the transcription start site? • Yeast: probably. Human: who knows?
Approaches to Motif Discovery • Matrix-based: • Gibbs Sampling - most popular. • Expectation maximization. • Stormo’s greedy algorithm. • Consensus sequence-based: • Several algorithms by Pevzner. • Box-finder of Kielbasa et al.
Three Ingredients of Almost any Bioinformatics Method • Search space (haystack) • Scoring scheme • Search algorithm (= optimization technique) Mathematically precise formulation of the problem Strictly speaking, Gibbs sampling and expectation-maximization are search algorithms. They are not specific to motif discovery; indeed they were first used in other contexts.
Gibbs Sampling: Simplifying Assumptions • The width of the motif is known in advance. • No indels (gaps). • Each sequence contains precisely one instance of the motif. • The sequences are single-stranded (e.g. mRNA).
Search Space Motif width = W N Length = L Size of search space = (L – W + 1)N L=100, W=15, N=10 size 1019
Scoring Scheme • Assign a numeric score to any proposed answer. • What score should this get? caga ctga cacc cgca
Some Definitions caga ctga cacc cgca k count matrix: cki = i • pki = cki / N • pi = background abundance of ith residue type
Two Scoring Schemes • Based on frequentist statistics / information theory: • Based on Bayesian statistics:
Worked Example N = 4 pi = ¼ cki = Score = 1.99 - 0.50 + 0.20 + 0.60 = 2.29
Search Algorithm • We want the global maximum score!(Or as close as we can get.) • Exact algorithms (e.g. dynamic programming) would be too slow (e.g. lifetime of universe). • Therefore we resort to a heuristic algorithm: Gibbs sampling, which is a type of Monte Carlo Markov chain method.
1 Suppose the search space is a 2D rectangle. (Typically, more than 2 dimensions!) Start at a random point X. Randomly pick a dimension. 2 Look at all points along this dimension. Move to one of them randomly, proportional to its score π. X Gibbs Sampling Search Repeat.
Choose a random starting state. Randomly pick a sequence. Look at all motif positions in this sequence. Pick one randomly proportional to exp(score). Gibbs Sampling for Motif Search Repeat.
Does it Work in Practice? • Only successful cases get published! • Seems more successful in microbes (bacteria & yeast) than in animals. • The search algorithm seems to work quite well, the problem is the scoring scheme: real motifs often don’t have higher scores than you would find in random sequences by chance. I.e. the needle looks like hay. • Attempts to deal with this: • Assume the motif is an inverted palindrome (they often are). • Only analyze sequence regions that are conserved in another species (e.g. human vs. mouse). • As usual, repetitive sequences cause problems. • More powerful algorithm: MEME
Go to our MEME server: • http://molgen.biol.rug.nl/meme/website/meme.html • Fill in your emailadres, description of the sequences • Open the fasta formatted file you just saved with Genome2d (click “Browse”) • Select the number of motifs, number of sites and the optimum width of the motif • Click “Search given strand only” • Click “Start search”
Something like this will appear in your email. The results are quite self explanatory.
Summary • Motif discovery and Motif search problem • Motif representation • Gibbs sampling algorithm for motif discovery • Using MEME (Expectation Maximization algorithm) for motif discovery
Acknowledgement • Zhiping Weng (Boston Uni.) • Timothy L. Bailey