cs 5263 & cs 4593 bioinformatics motif finding. what is a (biological) motif? a motif is a...

73
CS 5263 & CS 4593 Bioinformatics Motif finding

Upload: aubrey-flynn

Post on 13-Dec-2015

226 views

Category:

Documents


2 download

TRANSCRIPT

Page 1: CS 5263 & CS 4593 Bioinformatics Motif finding. What is a (biological) motif? A motif is a recurring fragment, theme or pattern Sequence motif: a sequence

CS 5263 & CS 4593 Bioinformatics

Motif finding

Page 2: CS 5263 & CS 4593 Bioinformatics Motif finding. What is a (biological) motif? A motif is a recurring fragment, theme or pattern Sequence motif: a sequence

What is a (biological) motif?

• A motif is a recurring fragment, theme or pattern• Sequence motif: a sequence pattern of nucleotides in a

DNA sequence or amino acids in a protein • Structural motif: a pattern in a protein structure formed

by the spatial arrangement of amino acids.• Network motif: patterns that occur in different parts of a

network at frequencies much higher than those found in randomized network

• Commonality: – higher frequency than would be expected by chance– Has, or is conjectured to have, a biological significance

Page 3: CS 5263 & CS 4593 Bioinformatics Motif finding. What is a (biological) motif? A motif is a recurring fragment, theme or pattern Sequence motif: a sequence

Sequence motif finding

• Given: a set of sequences

• Goal: find sequence motifs that appear in all or the majority of the sequences, and are likely associated with some functions– In DNA: regulatory sequences

• Other names: transcription factor binding sites, transcription factor binding motifs, cis-regulatory elements, cis-regulatory motifs, DNA motifs, etc.

– In protein: functional/structural domains

Page 4: CS 5263 & CS 4593 Bioinformatics Motif finding. What is a (biological) motif? A motif is a recurring fragment, theme or pattern Sequence motif: a sequence

Roadmap

• Biological background

• Representation of motifs

• Algorithms for finding motifs

• Other issues– Search for instances of given motifs– Distinguish functional vs non-functional motifs

Page 5: CS 5263 & CS 4593 Bioinformatics Motif finding. What is a (biological) motif? A motif is a recurring fragment, theme or pattern Sequence motif: a sequence

Biological background for motif finding

Page 6: CS 5263 & CS 4593 Bioinformatics Motif finding. What is a (biological) motif? A motif is a recurring fragment, theme or pattern Sequence motif: a sequence

Genome is fixed – Cells are dynamic

• A genome is static– (almost) Every cell in our body has a copy of

the same genome

• A cell is dynamic– Responds to internal/external conditions– Most cells follow a cell cycle of division– Cells differentiate during development

Page 7: CS 5263 & CS 4593 Bioinformatics Motif finding. What is a (biological) motif? A motif is a recurring fragment, theme or pattern Sequence motif: a sequence

Gene regulation

• … is responsible for the dynamic cell

• Gene expression (production of protein) varies according to:– Cell type– Cell cycle– External conditions– Location– Etc.

Page 8: CS 5263 & CS 4593 Bioinformatics Motif finding. What is a (biological) motif? A motif is a recurring fragment, theme or pattern Sequence motif: a sequence

Where gene regulation takes place

• Opening of chromatin

• Transcription

• Translation

• Protein stability

• Protein modifications

Page 9: CS 5263 & CS 4593 Bioinformatics Motif finding. What is a (biological) motif? A motif is a recurring fragment, theme or pattern Sequence motif: a sequence

GenePromoter

RNA polymerase(Protein)

Transcription Factor (TF)(Protein)

DNA

Transcriptional Regulation of genes

Page 10: CS 5263 & CS 4593 Bioinformatics Motif finding. What is a (biological) motif? A motif is a recurring fragment, theme or pattern Sequence motif: a sequence

GeneTF binding site, cis-regulatory element

RNA polymerase(Protein)

Transcription Factor (TF)(Protein)

DNA

Transcriptional Regulation of genes

Page 11: CS 5263 & CS 4593 Bioinformatics Motif finding. What is a (biological) motif? A motif is a recurring fragment, theme or pattern Sequence motif: a sequence

Transcriptional Regulation of genes

Gene

RNA polymerase

Transcription Factor(Protein)

DNA

TF binding site, cis-regulatory element

Page 12: CS 5263 & CS 4593 Bioinformatics Motif finding. What is a (biological) motif? A motif is a recurring fragment, theme or pattern Sequence motif: a sequence

Gene

RNA polymerase

Transcription Factor

DNA

New protein

Transcriptional Regulation of genes

TF binding site, cis-regulatory element

Page 13: CS 5263 & CS 4593 Bioinformatics Motif finding. What is a (biological) motif? A motif is a recurring fragment, theme or pattern Sequence motif: a sequence

The Cell as a Regulatory Network

A B Make DC

If C then D

If B then NOT D

If A and B then D D

Make BD

If D then B

C

gene D

gene B

Page 14: CS 5263 & CS 4593 Bioinformatics Motif finding. What is a (biological) motif? A motif is a recurring fragment, theme or pattern Sequence motif: a sequence

Transcription Factors Binding to DNA

Transcriptional regulation:• Transcription factors

bind to DNA

Binding recognizes specific DNA substrings:

• Regulatory motifs

Page 15: CS 5263 & CS 4593 Bioinformatics Motif finding. What is a (biological) motif? A motif is a recurring fragment, theme or pattern Sequence motif: a sequence

Experimental methods

• DNase footprinting– Tedious – Time-consuming

• High-throughput techniques: ChIP-chip, ChIP-seq– Expensive– Other limitations

Page 16: CS 5263 & CS 4593 Bioinformatics Motif finding. What is a (biological) motif? A motif is a recurring fragment, theme or pattern Sequence motif: a sequence

Computational methods for finding cis-regulatory motifs

Given a collection of genes that are believed to be regulated by the same/similar protein– Co-expressed genes– Evolutionarily conserved genes

Find the common TF-binding motif from promoters

.

.

.

Page 17: CS 5263 & CS 4593 Bioinformatics Motif finding. What is a (biological) motif? A motif is a recurring fragment, theme or pattern Sequence motif: a sequence

Essentially a Multiple Local Alignment

• Find “best” multiple local alignment• Multidimensional Dynamic Programming?

– Heuristics must be used

.

.

.instance

Page 18: CS 5263 & CS 4593 Bioinformatics Motif finding. What is a (biological) motif? A motif is a recurring fragment, theme or pattern Sequence motif: a sequence

Characteristics of cis-Regulatory Motifs

• Tiny (6-12bp)• Intergenic regions are

very long • Highly Variable

• ~Constant Size– Because a constant-size

transcription factor binds

• Often repeated• Often conserved

Page 19: CS 5263 & CS 4593 Bioinformatics Motif finding. What is a (biological) motif? A motif is a recurring fragment, theme or pattern Sequence motif: a sequence

Motif representation

• Collection of exact words– {ACGTTAC, ACGCTAC, AGGTGAC, …}

• Consensus sequence (with wild cards)– {AcGTgTtAC}– {ASGTKTKAC} S=C/G, K=G/T (IUPAC code)

• Position-specific weight matrices (PWM)

Page 20: CS 5263 & CS 4593 Bioinformatics Motif finding. What is a (biological) motif? A motif is a recurring fragment, theme or pattern Sequence motif: a sequence

Position-Specific Weight Matrix

1 2 3 4 5 6 7 8 9

A .97 .10 .02 .03 .10 .01 .05 .85 .03

C .01 .40 .01 .04 .05 .01 .05 .05 .03

G .01 .40 .95 .03 .40 .01 .3 .05 .03

T .01 .10 .02 .90 .45 .97 .6 .05 .91

A S G T K T K A C

Page 21: CS 5263 & CS 4593 Bioinformatics Motif finding. What is a (biological) motif? A motif is a recurring fragment, theme or pattern Sequence motif: a sequence

Sequence Logo

fre

que

ncy

1 2 3 4 5 6 7 8 9

A .97 .10 .02 .03 .10 .01 .05 .85 .03

C .01 .40 .01 .04 .05 .01 .05 .05 .03

G .01 .40 .95 .03 .40 .01 .3 .05 .03

T .01 .10 .02 .90 .45 .97 .6 .05 .91

http://weblogo.berkeley.edu/

http://biodev.hgen.pitt.edu/cgi-bin/enologos/enologos.cgi

Page 22: CS 5263 & CS 4593 Bioinformatics Motif finding. What is a (biological) motif? A motif is a recurring fragment, theme or pattern Sequence motif: a sequence

Sequence Logo

1 2 3 4 5 6 7 8 9

A .97 .10 .02 .03 .10 .01 .05 .85 .03

C .01 .40 .01 .04 .05 .01 .05 .05 .03

G .01 .40 .95 .03 .40 .01 .3 .05 .03

T .01 .10 .02 .90 .45 .97 .6 .05 .91

http://weblogo.berkeley.edu/

http://biodev.hgen.pitt.edu/cgi-bin/enologos/enologos.cgi

Page 23: CS 5263 & CS 4593 Bioinformatics Motif finding. What is a (biological) motif? A motif is a recurring fragment, theme or pattern Sequence motif: a sequence

Entropy and information content

• Entropy: a measure of uncertainty

• The entropy of a random variable X that can assume the n different values x1, x2, . . . , xn with the respective probabilities p1, p2, . . . , pn is defined as

Page 24: CS 5263 & CS 4593 Bioinformatics Motif finding. What is a (biological) motif? A motif is a recurring fragment, theme or pattern Sequence motif: a sequence

Entropy and information content

• Example: A,C,G,T with equal probability H = 4 * (-0.25 log2 0.25) = log2 4 = 2 bits Need 2 bits to encode (e.g. 00 = A, 01 = C, 10 = G, 11 = T) Maximum uncertainty

• 50% A and 50% C: H = 2 * (-0. 5 log2 0.5) = log2 2 = 1 bit

• 100% A H = 1 * (-1 log2 1) = 0 bit Minimum uncertainty

• Information: the opposite of uncertainty I = maximum uncertainty – entropy The above examples provide 0, 1, and 2 bits of information,

respectively

Page 25: CS 5263 & CS 4593 Bioinformatics Motif finding. What is a (biological) motif? A motif is a recurring fragment, theme or pattern Sequence motif: a sequence

Entropy and information content

1 2 3 4 5 6 7 8 9

A .97 .10 .02 .03 .10 .01 .05 .85 .03

C .01 .40 .01 .04 .05 .01 .05 .05 .03

G .01 .40 .95 .03 .40 .01 .3 .05 .03

T .01 .10 .02 .90 .45 .97 .6 .05 .91

H .24 1.72 .36 .63 1.60 0.24 1.40 0.85 0.58

I 1.76 0.28 1.64 1.37 0.40 1.76 0.60 1.15 1.42Mean 1.15Total 10.4

Expected occurrence in random DNA: 1 / 210.4 = 1 / 1340

Expected occurrence of an exact 5-mer: 1 / 210 = 1 / 1024

Page 26: CS 5263 & CS 4593 Bioinformatics Motif finding. What is a (biological) motif? A motif is a recurring fragment, theme or pattern Sequence motif: a sequence

Sequence Logo

1 2 3 4 5 6 7 8 9

A .97 .10 .02 .03 .10 .01 .05 .85 .03

C .01 .40 .01 .04 .05 .01 .05 .05 .03

G .01 .40 .95 .03 .40 .01 .3 .05 .03

T .01 .10 .02 .90 .45 .97 .6 .05 .91

I 1.76 0.28 1.64 1.37 0.40 1.76 0.60 1.15 1.42

Page 27: CS 5263 & CS 4593 Bioinformatics Motif finding. What is a (biological) motif? A motif is a recurring fragment, theme or pattern Sequence motif: a sequence

Real example

• E. coli. Promoter• “TATA-Box” ~ 10bp upstream of transcription

start• TACGAT• TAAAAT• TATACT• GATAAT• TATGAT• TATGTT

Consensus: TATAAT

Note: none of the instances matches the consensus perfectly

Page 28: CS 5263 & CS 4593 Bioinformatics Motif finding. What is a (biological) motif? A motif is a recurring fragment, theme or pattern Sequence motif: a sequence

Finding Motifs

Page 29: CS 5263 & CS 4593 Bioinformatics Motif finding. What is a (biological) motif? A motif is a recurring fragment, theme or pattern Sequence motif: a sequence

Classification of approaches

• Combinatorial algorithms– Based on enumeration of words and

computing word similarities

• Probabilistic algorithms– Construct probabilistic models to distinguish

motifs vs non-motifs

Page 30: CS 5263 & CS 4593 Bioinformatics Motif finding. What is a (biological) motif? A motif is a recurring fragment, theme or pattern Sequence motif: a sequence

Combinatorial motif finding

Given a set of sequences S = {x1, …, xn}

• A motif W is a consensus string w1…wK

• Find motif W* with “best” match to x1, …, xn

Definition of “best”:d(W, xi) = min hamming dist. between W and a word in xi

d(W, S) = i d(W, xi)

W* = argmin( d(W, S) )

Page 31: CS 5263 & CS 4593 Bioinformatics Motif finding. What is a (biological) motif? A motif is a recurring fragment, theme or pattern Sequence motif: a sequence

Exhaustive searches

1. Pattern-driven algorithm:

For W = AA…A to TT…T (4K possibilities)Find d( W, S )

Report W* = argmin( d(W, S) )

Running time: O( K N 4K )

(where N = i |xi|)

Guaranteed to find the optimal solution.

Page 32: CS 5263 & CS 4593 Bioinformatics Motif finding. What is a (biological) motif? A motif is a recurring fragment, theme or pattern Sequence motif: a sequence

Exhaustive searches

2. Sample-driven algorithm:

For W = a K-char word in some xi

Find d( W, S )Report W* = argmin( d( W, S ) )OR Report a local improvement of W*

Running time: O( K N2 )

Page 33: CS 5263 & CS 4593 Bioinformatics Motif finding. What is a (biological) motif? A motif is a recurring fragment, theme or pattern Sequence motif: a sequence

Exhaustive searches

• Problem with sample-driven approach:

• If:– True motif does not occur in data, and– True motif is “weak”

• Then,– random strings may score better than any

instance of true motif

Page 34: CS 5263 & CS 4593 Bioinformatics Motif finding. What is a (biological) motif? A motif is a recurring fragment, theme or pattern Sequence motif: a sequence

Example

• E. coli. Promoter• “TATA-Box” ~ 10bp upstream of transcription

start• TACGAT• TAAAAT• TATACT• GATAAT• TATGAT• TATGTT

Consensus: TATAAT

Each instance differs at most 2 bases from the consensus

None of the instances matches the consensus perfectly

Page 35: CS 5263 & CS 4593 Bioinformatics Motif finding. What is a (biological) motif? A motif is a recurring fragment, theme or pattern Sequence motif: a sequence

Heuristic methods

• Cannot afford exhaustive search on all patterns

• Sample-driven approaches may miss real patterns

• However, a real pattern should not differ too much from its instances in S

• Start from the space of all words in S, extend to the space with real patterns

Page 36: CS 5263 & CS 4593 Bioinformatics Motif finding. What is a (biological) motif? A motif is a recurring fragment, theme or pattern Sequence motif: a sequence

Some of the popular tools

• Consensus (Hertz & Stormo, 1999)

• WINNOWER (Pevzner & Sze, 2000)

• MULTIPROFILER (Keich & Pevzner, 2002)

• PROJECTION (Buhler & Tompa, 2001)

• WEEDER (Pavesi et. al. 2001)

• And dozens of others

Page 37: CS 5263 & CS 4593 Bioinformatics Motif finding. What is a (biological) motif? A motif is a recurring fragment, theme or pattern Sequence motif: a sequence

Extended sample-driven (ESD) approaches

• Hybrid between pattern-driven and sample-driven• Assume each instance does not differ by more than α

bases to the motif ( usually depends on k)

motif

instance

The real motif will reside in the -neighborhood of some words in S.

Instead of searching all 4K patterns, we can search the -neighborhood of every word in S.

α-neighborhood

Page 38: CS 5263 & CS 4593 Bioinformatics Motif finding. What is a (biological) motif? A motif is a recurring fragment, theme or pattern Sequence motif: a sequence

Extended sample-driven (ESD) approaches

• Naïve: N Kα 3α NK

# of patterns to test # of words in sequences

Page 39: CS 5263 & CS 4593 Bioinformatics Motif finding. What is a (biological) motif? A motif is a recurring fragment, theme or pattern Sequence motif: a sequence

Better idea

• Using a joint suffix tree, find all patterns that:– Have length K– Appeared in at least m sequences with at

most α mismatches

• Post-processing

• Details later

Page 40: CS 5263 & CS 4593 Bioinformatics Motif finding. What is a (biological) motif? A motif is a recurring fragment, theme or pattern Sequence motif: a sequence

Probabilistic modeling approaches

for motif finding

Page 41: CS 5263 & CS 4593 Bioinformatics Motif finding. What is a (biological) motif? A motif is a recurring fragment, theme or pattern Sequence motif: a sequence

Probabilistic modeling approaches

• A motif model– Usually a PWM– M = (Pij), i = 1..4, j = 1..k, k: motif length

• A background model– Usually the distribution of base frequencies in

the genome (or other selected subsets of sequences)

– B = (bi), i = 1..4

• A word can be generated by M or B

Page 42: CS 5263 & CS 4593 Bioinformatics Motif finding. What is a (biological) motif? A motif is a recurring fragment, theme or pattern Sequence motif: a sequence

Expectation-Maximization

• For any word W, P(W | M) = PW[1] 1 PW[2] 2…PW[K] K

P(W | B) = bW[1] bW[2] …bW[K]

• Let = P(M), i.e., the probability for any word to be generated by M.

• Then P(B) = 1 - • Can compute the posterior probability P(M|W)

and P(B|W) P(M|W) ~ P(W|M) * P(B|W) ~ P(W|B) * (1-)

Page 43: CS 5263 & CS 4593 Bioinformatics Motif finding. What is a (biological) motif? A motif is a recurring fragment, theme or pattern Sequence motif: a sequence

Expectation-Maximization

Initialize: Randomly assign each word to M or B• Let Zxy = 1 if position y in sequence x is a motif, and 0

otherwise• Estimate parameters M, , B

Iterate until converge:• E-step: Zxy = P(M | X[y..y+k-1]) for all x and y• M-step: re-estimate M, given Z (B usually fixed)

Page 44: CS 5263 & CS 4593 Bioinformatics Motif finding. What is a (biological) motif? A motif is a recurring fragment, theme or pattern Sequence motif: a sequence

Expectation-Maximization

• E-step: Zxy = P(M | X[y..y+k-1]) for all x and y

• M-step: re-estimate M, given Z

Initialize E-step

M-step

prob

abili

ty

position

1

9

5

1

9

5

Page 45: CS 5263 & CS 4593 Bioinformatics Motif finding. What is a (biological) motif? A motif is a recurring fragment, theme or pattern Sequence motif: a sequence

MEME

• Multiple EM for Motif Elicitation

• Bailey and Elkan, UCSD

• http://meme.sdsc.edu/

• Multiple starting points

• Multiple modes: ZOOPS, OOPS, TCM

Page 46: CS 5263 & CS 4593 Bioinformatics Motif finding. What is a (biological) motif? A motif is a recurring fragment, theme or pattern Sequence motif: a sequence

Gibbs Sampling

• Another very useful technique for estimating missing parameters

• EM is deterministic– Often trapped by local optima

• Gibbs sampling: stochastic behavior to avoid local optima

Page 47: CS 5263 & CS 4593 Bioinformatics Motif finding. What is a (biological) motif? A motif is a recurring fragment, theme or pattern Sequence motif: a sequence

Gibbs Sampling

Initialize: Randomly assign each word to M or B• Let Zxy = 1 if position y in sequence x is a motif, and 0

otherwise• Estimate parameters M, B,

Iterate:• Randomly remove a sequence X* from S• Recalculate model parameters using S \ X*• Compute Zx*y for X*• Sample a y* from Zx*y. • Let Zx*y = 1 for y = y* and 0 otherwise

Page 48: CS 5263 & CS 4593 Bioinformatics Motif finding. What is a (biological) motif? A motif is a recurring fragment, theme or pattern Sequence motif: a sequence

Gibbs Sampling

• Gibbs sampling: sample one position according to probability– Update prediction of one training sequence at a time

• Viterbi: always take the highest• EM: take weighted average

0 2 4 6 8 10 12 14 16 18 200

0.05

0.1

0.15

0.2

position

prob

abili

ty

Sampling

Simultaneously update predictions of all sequences

position

prob

abili

ty

Page 49: CS 5263 & CS 4593 Bioinformatics Motif finding. What is a (biological) motif? A motif is a recurring fragment, theme or pattern Sequence motif: a sequence

Gibbs sampling motif finders• Gibbs Sampler

– First appeared as: Larence et.al. Science 262(5131):208-214. – Continually developed and updated. webpage– The newest version: Thompson et. al. Nucleic Acids Res. 35 (s2):W232-

W237 • AlignACE

– Hughes et al., J. of Mol Bio, 2000 10;296(5):1205-14. – Allow don’t care positions– Additional tools to scan motifs on new seqs, and to compare and group

motifs• BioProspector, X. Liu et. al. PSB 2001 , an improvement of

AlignACE– Liu, Brutlag and Liu. Pac Symp Biocomput. 2001;:127-38. – Allow two-block motifs– Consider higher-order markov models

Page 50: CS 5263 & CS 4593 Bioinformatics Motif finding. What is a (biological) motif? A motif is a recurring fragment, theme or pattern Sequence motif: a sequence

Limits of Motif Finders

• Given upstream regions of coregulated genes:– Increasing length makes motif finding harder –

random motifs clutter the true ones– Decreasing length makes motif finding harder – true

motif missing in some sequences

0

gene???

Page 51: CS 5263 & CS 4593 Bioinformatics Motif finding. What is a (biological) motif? A motif is a recurring fragment, theme or pattern Sequence motif: a sequence

Challenging problem

• (k, d)-motif challenge problem• Many algorithms fail at (15, 4)-motif for n = 20 and L = 600• Combinatorial algorithms usually work better on challenge problem

– However, they are usually designed to find (k, d)-motifs– Performance in real data varies

k

d mutationsn = 20

L = 600

Page 52: CS 5263 & CS 4593 Bioinformatics Motif finding. What is a (biological) motif? A motif is a recurring fragment, theme or pattern Sequence motif: a sequence

(15, 4)-motif

• Information content: 11.7 bits

• ~ 6mers. Expected occurrence 1 per 3k bp

Page 53: CS 5263 & CS 4593 Bioinformatics Motif finding. What is a (biological) motif? A motif is a recurring fragment, theme or pattern Sequence motif: a sequence

Actual

Results by MEME

llr = 163 E-value = 3.2e+005

llr = 177     E-value = 1.5e+006

llr = 88     E-value = 2.5e+005

Page 54: CS 5263 & CS 4593 Bioinformatics Motif finding. What is a (biological) motif? A motif is a recurring fragment, theme or pattern Sequence motif: a sequence

Motif finding in practice

• Where the input come from?

• Possibility 1: transcriptomic studies– E.g. microarray, RNA-seq (later)

• Possibility 2: phylogenetic analysis (not covered)

• Possibility 3: ChIP-chip

• Possibility 4: ChIP-seq

Page 55: CS 5263 & CS 4593 Bioinformatics Motif finding. What is a (biological) motif? A motif is a recurring fragment, theme or pattern Sequence motif: a sequence

Chromatin Immunoprecipitation (ChIP)

• ChIP is a method to investigate protein-DNA interaction in vivo.

• The output of ChIP is enriched fragments of DNA that were bound by a particular protein.

• The identity of DNA fragments need to be further determined by a second method.

Page 56: CS 5263 & CS 4593 Bioinformatics Motif finding. What is a (biological) motif? A motif is a recurring fragment, theme or pattern Sequence motif: a sequence

ChIPSeq Workflow

ChIP

Size Selection

Sequencing

Mapping onto Genome

Page 57: CS 5263 & CS 4593 Bioinformatics Motif finding. What is a (biological) motif? A motif is a recurring fragment, theme or pattern Sequence motif: a sequence

ChIP-chip

Array of intergenic sequences from the whole

genome

ChIP

Page 58: CS 5263 & CS 4593 Bioinformatics Motif finding. What is a (biological) motif? A motif is a recurring fragment, theme or pattern Sequence motif: a sequence

How to make sense of the motifs?

• Each program usually reports a number of motifs (tens to hundreds)– Many motifs are variations of each other– Each program also report some different ones

• Each program has its own way of scoring motifs– Best scored motifs often not interesting– AAAAAAAA– ACACACAC– TATATATAT

Page 59: CS 5263 & CS 4593 Bioinformatics Motif finding. What is a (biological) motif? A motif is a recurring fragment, theme or pattern Sequence motif: a sequence

How to make sense of the motifs?

• Now we’ve found some pretty-looking motifs– This is probably the easiest step

• What to do next?– Are they real?– How do we find more instances in the rest of

the genome?– What are their functional meaning?

• Motifs => regulatory networks

Page 60: CS 5263 & CS 4593 Bioinformatics Motif finding. What is a (biological) motif? A motif is a recurring fragment, theme or pattern Sequence motif: a sequence

How to make sense of the motifs?

• Combine results from different algorithms usually helpful– Ones that appeared multiple times are probably more

interesting• Except simple repeats like AAAAA or ATATATATA

– Cluster motifs into groups.

• Compare with known motifs in database– TRANSFAC– JASPAR– YPD (yeast promoter database)

Page 61: CS 5263 & CS 4593 Bioinformatics Motif finding. What is a (biological) motif? A motif is a recurring fragment, theme or pattern Sequence motif: a sequence

Strategies to improve results

• How to tell real motifs (functional) from noises? Statistical test of significance.– Enrichment in target sequences vs

background sequences

Target setT

Background setB

Assumed to contain a common motif, P

Assumed to not contain P, or with very low frequency

Ideal case: every sequence in T has P, no sequence in B has P

Page 62: CS 5263 & CS 4593 Bioinformatics Motif finding. What is a (biological) motif? A motif is a recurring fragment, theme or pattern Sequence motif: a sequence

Statistical test for significance

• If n / N >> m / M– P is enriched (over-represented) in T– Statistical significance?

• If we randomly draw N sequences from (B+T), how likely we will see at least n sequences having P?

Target setT

Background set + target setB + TN M

P

P appeared in n sequences

P appeared in m sequences

Page 63: CS 5263 & CS 4593 Bioinformatics Motif finding. What is a (biological) motif? A motif is a recurring fragment, theme or pattern Sequence motif: a sequence

Hypergeometric distribution

• A box with M balls (seqs), of which m are red (with motifs), and the rest are blue (without motifs).

– Red ball: sequences with motifs– Blue ball: sequences without motifs

• We randomly draw N balls (seqs) from the box

• What’s the probability we’ll see n red balls?

# of choices to have n red balls

Total # of choices to draw N balls

N

M

nN

mM

n

m

mNMnhypegeom ),,;(

Page 64: CS 5263 & CS 4593 Bioinformatics Motif finding. What is a (biological) motif? A motif is a recurring fragment, theme or pattern Sequence motif: a sequence

Cumulative hypergeometric test for motif significance

• We are interested in: if we randomly pick m balls, how likely that we’ll see at least n red balls?

1

0

1

0

),min(

1

),,;(1

),,;(),,;(

n

i

n

i

Nm

ni

N

M

iN

mM

i

m

mNMihypogeom

mNMihypogeommNMncHypegeom

Null hypothesis: our selection is random.

Alternative hypothesis: our selection favored red balls.

When prob is small, we reject the null hypothesis.

Equivalent: we accept the alternative hypothesis

(The number of red balls is larger than expected).

Page 65: CS 5263 & CS 4593 Bioinformatics Motif finding. What is a (biological) motif? A motif is a recurring fragment, theme or pattern Sequence motif: a sequence

Example• Yeast genome has 6000 genes• Select 50 genes believed to be co-regulated by a common TF• Found a motif from the promoter seqs of these 50 genes• The motif appears in 20 of these 50 genes• In the rest of the genome, 100 genes have this motif• M = 6000, N = 50, m = 100+20 = 120, n = 20• Intuitively:

– m/M = 120/6000=1/50. (1 out 50 genes has the motif)– N = 50, would expect only 1 gene in the target set to have the motif – 20-fold enrichment

• P-value = cHyperGeom(20; 6000, 50, 120) = 6 x 10-22

• This motif is significantly enriched in the set of genes

Page 66: CS 5263 & CS 4593 Bioinformatics Motif finding. What is a (biological) motif? A motif is a recurring fragment, theme or pattern Sequence motif: a sequence

ROC curve for motif significance

• Motif is usually a PWM• Any word will have a score

– Typical scoring function: Log (P(W | M) / P(W | B))– W: a word. – M: a PWM. – B: background model

• To determine whether motif M occurred in a sequence, a cutoff has to be decided– Different cutoffs give different # of occurrences– Stringent cutoff: low occurrence in both + and - sequences– Loose cutoff: high occurrence in both + and - sequences– It may be better to look at a range of cutoffs

Page 67: CS 5263 & CS 4593 Bioinformatics Motif finding. What is a (biological) motif? A motif is a recurring fragment, theme or pattern Sequence motif: a sequence

ROC curve for motif significance

• With different score cutoff, will have different m and n• Assume you want to use P to classify T and B• Sensitivity: n / N• Specificity: (M-N-m+n) / (M-N)• False Positive Rate = 1 – specificity: (m – n) / (M-N)• With decreasing cutoff, sensitivity , FPR

Target setT

Background set + target setB + TN M

P

Appeared in n sequences

Appeared in m sequences

Given a score cutoff

Page 68: CS 5263 & CS 4593 Bioinformatics Motif finding. What is a (biological) motif? A motif is a recurring fragment, theme or pattern Sequence motif: a sequence

ROC curve for motif significance

ROC-AUC: area under curve.

1: the best. 0.5: random.

Motif 1 is more enriched than motif 2.

1-specificity

sens

itivi

ty

Motif 1Motif 2Random

A good cutoff

Highest cutoff. No motif can pass the cutoff. Sensitivity = 0. specificity = 1.

Lowest cutoff. Every sequence has the motif. Sensitivity = 1. specificity = 0.

0

1

10

Page 69: CS 5263 & CS 4593 Bioinformatics Motif finding. What is a (biological) motif? A motif is a recurring fragment, theme or pattern Sequence motif: a sequence

Other strategies

• Cross-validation– Randomly divide sequences into 10 sets, hold 1 set

for test. – Do motif finding on 9 sets. Does the motif also appear

in the testing set?

• Phylogenetic conservation information– Does a motif also appears in the homologous genes

of another species?– Strongest evidence– However, will not be able to find species-specific ones

Page 70: CS 5263 & CS 4593 Bioinformatics Motif finding. What is a (biological) motif? A motif is a recurring fragment, theme or pattern Sequence motif: a sequence

Other strategies

• Finding motif modules– Will two motifs always appear in the same gene?

• Location preference– Some motifs appear to be in certain location

• E.g., within 50-150bp upstream to transcription start

– If a detected motif has strong positional bias, may be a sign of its function

• Evidence from other types of data sources– Do the genes having the motif always have similar activities

(gene expression levels) across different conditions?– Interact with the same set of proteins?– Similar functions?– etc.

Page 71: CS 5263 & CS 4593 Bioinformatics Motif finding. What is a (biological) motif? A motif is a recurring fragment, theme or pattern Sequence motif: a sequence

To search for new instances

• Usually many false positives• Score cutoff is critical• Can estimate a score cutoff from the “true”

binding sites

Motif finding

Scoring function

A set of scores for the “true” sites. Take mean - std as a cutoff. (or a cutoff such that the majority of “true” sites can be predicted).

Log (P(W | M) / P(W | B))

Page 72: CS 5263 & CS 4593 Bioinformatics Motif finding. What is a (biological) motif? A motif is a recurring fragment, theme or pattern Sequence motif: a sequence

To search for new instances

• Use other information, such as positional biases of motifs to restrict the regions that a motif may appear

• Use gene expression data to help: the genes having the true motif should have similar activities– Risk of circular reasoning: most likely this is how you

get the initial sequences to do motif finding

• Phylogenetic conservation is the key

Page 73: CS 5263 & CS 4593 Bioinformatics Motif finding. What is a (biological) motif? A motif is a recurring fragment, theme or pattern Sequence motif: a sequence

References

• D’haeseleer P (2006) What are DNA sequence motifs? NATURE BIOTECHNOLOGY, 24 (4):423-425

• D’haeseleer P (2006) How does DNA sequence motif discovery work? NATURE BIOTECHNOLOGY, 24 (8):959-961

• MacIsaac KD, Fraenkel E (2006) Practical strategies for discovering regulatory DNA sequence motifs. PLoS Comput Biol 2(4): e36

• Lawrence CE et. al. (1993) Detecting Subtle Sequence Signals: A Gibbs Sampling Strategy for Multiple Alignment, Science, 262(5131):208-214