97
CSE182-L7 Protein Sequence Analysis using HMMs, Gene Finding

CSE182-L7 Protein Sequence Analysis using HMMs, Gene Finding

  • View
    224

  • Download
    3

Embed Size (px)

Citation preview

Page 1: CSE182-L7 Protein Sequence Analysis using HMMs, Gene Finding

CSE182-L7

Protein Sequence Analysis using HMMs,

Gene Finding

Page 2: CSE182-L7 Protein Sequence Analysis using HMMs, Gene Finding

Domain analysis via profiles

• Given a database of profiles of known domains/families, we can query our sequence against each of them, and choose the high scoring ones to functionally characterize our sequences.

• What if the sequence matches some other sequences weakly (using BLAST), but does not match any known profile?

Page 3: CSE182-L7 Protein Sequence Analysis using HMMs, Gene Finding

Psi-BLAST idea

• Iterate:– Find homologs using Blast on query– Discard very similar homologs– Align, make a profile, search with profile.– Why is this more sensitive?

Seq Db

--In the next iteration, the red sequence will be thrown out.--It matches the query in non-essential residues

Page 4: CSE182-L7 Protein Sequence Analysis using HMMs, Gene Finding

Psi-BLAST speed

• Two time consuming steps.1. Multiple alignment of homologs2. Searching with Profiles.

1. Does the keyword search idea work?

• Multiple alignment:– Use ungapped multiple

alignments only

• Pigeonhole principle again: – If profile of length m must score

>= T– Then, a sub-profile of length l must

score >= lT|/m– Generate all l-mers that score at

least lT|/M– Search using an automaton

Page 5: CSE182-L7 Protein Sequence Analysis using HMMs, Gene Finding

Representation 3: HMMs

• Building good profiles relies upon good alignments.– Difficult if there are gaps in the

alignment.– Psi-BLAST/BLOCKS etc. work with

gapless alignments. • An HMM representation of Profiles

helps put the alignment construction/membership query in a uniform framework.

• Also allows for position specific gap scoring.

V

Page 6: CSE182-L7 Protein Sequence Analysis using HMMs, Gene Finding

QUIZ!

• Question:• your ‘friend’ likes to gamble. • He tosses a coin: HEADS, he gives you a

dollar. TAILS, you give him a dollar.• Usually, he uses a fair coin, but ‘once in

a while’, he uses a loaded coin. • Can you say what fraction of the times

he loads the coin?

Page 7: CSE182-L7 Protein Sequence Analysis using HMMs, Gene Finding

The generative model

• Think of each column in the alignment as generating a distribution.

• For each column, build a node that outputs a residue with the appropriate distribution

0.71

0.14

Pr[F]=0.71Pr[Y]=0.14

Page 8: CSE182-L7 Protein Sequence Analysis using HMMs, Gene Finding

A simple Profile HMM

• Connect nodes for each column into a chain. Thie chain generates random sequences.

• What is the probability of generating FKVVGQVILD?• In this representation

– Prob [New sequence S belongs to a family]= Prob[HMM generates sequence S]

• What is the difference with Profiles?

Page 9: CSE182-L7 Protein Sequence Analysis using HMMs, Gene Finding

Profile HMMs can handle gaps

• The match states are the same as on the previous page.

• Insertion and deletion states help introduce gaps.

• A sequence may be generated using different paths.

Page 10: CSE182-L7 Protein Sequence Analysis using HMMs, Gene Finding

Example

• Probability [ALIL] is part of the family?• Note that multiple paths can generate this sequence.

– M1I1M2M3

– M1M2I2M3

• In order to compute the probabilities, we must assign probabilities of transition between states

A L - LA I V LA I - L

Page 11: CSE182-L7 Protein Sequence Analysis using HMMs, Gene Finding

Profile HMMs

• Directed Automaton M with nodes and edges. – Nodes emit symbols according to ‘emission

probabilities’– Transition from node to node is guided by ‘transition

probabilities’

• Joint probability of seeing a sequence S, and path P– Pr[S,P|M] = Pr[S|P,M] Pr[P|M]– Pr[ALIL AND M1I1M2M3| M]

= Pr[ALIL| M1I1M2M3,M] Pr[M1I1M2M3| M]

• Pr[ALIL | M] = ?

Page 12: CSE182-L7 Protein Sequence Analysis using HMMs, Gene Finding

Formally

• The emitted sequence is S=S1S2…Sm

• The path traversed id P1P2P3..

• ej(s) = emission probability of symbol s in state Pj

• Transition probability T[j,k] : Probability of transitioning from state j to state k.

• Pr(P,S|M) = eP1(S1) T[P1,P2] eP2(S2) ……

• What is Pr(S|M)?

Page 13: CSE182-L7 Protein Sequence Analysis using HMMs, Gene Finding

Two solutions

• An unknown (hidden) path is traversed to produce (emit) the sequence S.

• The probability that M emits S can be either – The sum over the joint probabilities over all paths.

• Pr(S|M) = ∑P Pr(S,P|M)– OR, it is the probability of the most likely path

• Pr(S|M) = maxP Pr(S,P|M)

• Both are appropriate ways to model, and have similar algorithms to solve them.

Page 14: CSE182-L7 Protein Sequence Analysis using HMMs, Gene Finding

Viterbi Algorithm for HMM

• Let Pmax(i,j|M) be the probability of the most likely solution that emits S1…Si, and ends in state j (is it sufficient to compute this?)

• Pmax(i,j|M) = max k Pmax(i-1,k) T[k,j] ej(Si) (Viterbi)

• Psum(i,j|M) = ∑ k (Psum(i-1,k) T[k,j]) ej(Si)

A L - LA I V LA I - L

Page 15: CSE182-L7 Protein Sequence Analysis using HMMs, Gene Finding

Profile HMM membership

• We can use the Viterbi/Sum algorithm to compute the probability that the sequence belongs to the family.

• Backtracking can be used to get the path, which allows us to give an alignment

A L - LA I V LA I - L

Path: M1 M2 I2 M3

A L I L

Page 16: CSE182-L7 Protein Sequence Analysis using HMMs, Gene Finding

Summary

• HMMs allow us to model position specific gap penalties, and allow for automated training to get a good alignment.

• Patterns/Profiles/HMMs allow us to represent families and foucs on key residues

• Each has its advantages and disadvantages, and needs special algorithms to query efficiently.

Page 17: CSE182-L7 Protein Sequence Analysis using HMMs, Gene Finding

Protein Domain databases

• A number of databases capture proteins (domains) using various representations

• Each domain is also associated with structure/function information, parsed from the literature.

• Each database has specific query mecahnisms that allow us to compare our seqeunces against them, and assign function

3D

HMM

Page 18: CSE182-L7 Protein Sequence Analysis using HMMs, Gene Finding

Gene Finding

What is a Gene?

Page 19: CSE182-L7 Protein Sequence Analysis using HMMs, Gene Finding

Gene

• We define a gene as a location on the genome that codes for proteins.

• The genic information is used to manufacture proteins through transcription, and translation.

• There is a unique mapping from triplets to amino-acids

Page 20: CSE182-L7 Protein Sequence Analysis using HMMs, Gene Finding

Eukaryotic gene structure

Page 21: CSE182-L7 Protein Sequence Analysis using HMMs, Gene Finding

Translation

• The ribosomal machinery reads mRNA.

• Each triplet is translated into a unique amino-acid until the STOP codon is encountered.

• There is also a special signal where translation starts, usually at the ATG (M) codon.

Page 22: CSE182-L7 Protein Sequence Analysis using HMMs, Gene Finding

Translation

• The ribosomal machinery reads mRNA.

• Each triplet is translated into a unique amino-acid until the STOP codon is encountered.

• There is also a special signal where translation starts, usually at the ATG (M) codon.

• Given a DNA sequence, how many ways can you translate it?

Page 23: CSE182-L7 Protein Sequence Analysis using HMMs, Gene Finding

Gene Features

ATG

5’ UTR

intron

exon3’ UTR

AcceptorDonor splice siteTranscription start

Translation start

Page 24: CSE182-L7 Protein Sequence Analysis using HMMs, Gene Finding

Gene identification

• Eukaryotic gene definitions: – Location that codes for a protein– The transcript sequence(s) that encodes the protein– The protein sequence(s)

• Suppose you want to know all of the genes in an organism.

• This was a major problem in the 70s. PhDs, and careers were spent isolating a single gene sequence.

• All of that changed with better reagents and the development of high throughput methods like EST sequencing

Page 25: CSE182-L7 Protein Sequence Analysis using HMMs, Gene Finding

Expressed Sequence Tags

• It is possible to extract all of the mRNA from a cell.

• However, mRNA is unstable• An enzyme called reverse

transcriptase is used to make a DNA copy of the RNA.

• Use DNA polymerase to get a complementary DNA strand.

• Sequence the (stable) cDNA from both ends.

• This leads to a collection of transcripts/expressed sequences (ESTs).

• Many might be from the same gene

AAAATTTT

AAAATTTT

Page 26: CSE182-L7 Protein Sequence Analysis using HMMs, Gene Finding

EST sequencing

• The expressed transcript (mRNA) has a poly-A tail at the end, which can be used as a template for Reverse Transcriptase.

• This collection of DNA has only the spliced message!

• It is sampled at random and sequenced from one (3’/5’) or both ends.

• Each message is sampled many times.

• The resulting collection of sequences is called an EST database

AAAATTTT

AAAATTTT

Page 27: CSE182-L7 Protein Sequence Analysis using HMMs, Gene Finding

EST Sequencing

• Often, reverse transcriptase breaks off early. Why is this a good thing?

• The 3’ end may not have a much coding sequence.• We can assemble the 5’ end to get more of the coding

sequence

Page 28: CSE182-L7 Protein Sequence Analysis using HMMs, Gene Finding

Project

• EST clustering and assembly• Given a collection of EST (3’/5’) sequences, your goal is to cluster

all ESTs from the same gene, and produce a consensus.• Note that all the 3’ ESTs should line up at the 3’ end.• 5’ and 3’ ESTs from the same clone should have the same clone

ID, which should allow us to recruit them

Input

Output

Page 29: CSE182-L7 Protein Sequence Analysis using HMMs, Gene Finding

Project Extra credit• Some genes may be alternatively spliced and may

have multiple transcripts• Can you deconvolute the information back from ESTs?

ATG

Page 30: CSE182-L7 Protein Sequence Analysis using HMMs, Gene Finding

Computational Gene Finding

• Given Genomic DNA, identify all the coordinates of the gene

ATG

5’ UTR

intron

exon 3’ UTR

AcceptorDonor splice siteTranscription start

Translation start

Page 31: CSE182-L7 Protein Sequence Analysis using HMMs, Gene Finding

Gene Finding: The 1st generation

• Given genomic DNA, does it contain a gene (or not)?

• Key idea: The distributions of nucleotides is different in coding (translated exons) and non-coding regions.

• Therefore, a statistical test can be used to discriminate between coding and non-coding regions.

Page 32: CSE182-L7 Protein Sequence Analysis using HMMs, Gene Finding

Coding versus Non-coding

• You are given a collection of exons, and a collection of intergenic sequence.

• Count the number of occurrences of ATGATG in Introns and Exons.– Suppose 1% of the hexamers in Exons are ATGATG– Only 0.01% of the hexamers in Intons are ATGATG

• How can you use this idea to find genes?

Page 33: CSE182-L7 Protein Sequence Analysis using HMMs, Gene Finding

Generalizing

AAAAAAAAAAACAAAAAGAAAAAT

I E

Compute a frequency count for all hexamers. Use this to decide whether a sequence is an exon/intron

Page 34: CSE182-L7 Protein Sequence Analysis using HMMs, Gene Finding

Coding versus non-coding

• Fickett and Tung (1992) compared various measures• Measures that preserve the triplet frame are

the most successful.

• Genscan: 5th order Markov Model• Conservation across species

Page 35: CSE182-L7 Protein Sequence Analysis using HMMs, Gene Finding

Coding vs. non-coding regions

Given : Three 5th order transition matrices C(1),C(2),C(3)

trained on coding exons

P h (Xa,b ) = C((h+i)mod 3+1)[Xa+i]i= 0

b−a

Coding ratio, r =Ph (Xa,b )

PD(Xa,b )

Coding Score s = log2(r)

Compute average coding score (per base) of exons and introns, and take the difference. If the measure is good, the difference must be biased away from 0.

Page 36: CSE182-L7 Protein Sequence Analysis using HMMs, Gene Finding

Coding differential for 380 genes

Page 37: CSE182-L7 Protein Sequence Analysis using HMMs, Gene Finding

Other Signals

GTATG

AG

Coding

Page 38: CSE182-L7 Protein Sequence Analysis using HMMs, Gene Finding

Coding region can be detected

Coding

• Plot the coding score using a sliding window of fixed length.• The (large) exons will show up reliably.• Not enough to predict gene boundaries reliably

Page 39: CSE182-L7 Protein Sequence Analysis using HMMs, Gene Finding

Other Signals

GTATG

AG

Coding

• Signals at exon boundaries are precise but not specific. Coding signals are specific but not precise.

• When combined they can be effective

Page 40: CSE182-L7 Protein Sequence Analysis using HMMs, Gene Finding

The second generation of Gene finding

• Ex: Grail II. Used statistical techniques to combine various signals into a coherent gene structure.

• It was not easy to train on many parameters. Guigo & Bursett test revealed that accuracy was still very low.

• Problem with multiple genes in a genomic region

Page 41: CSE182-L7 Protein Sequence Analysis using HMMs, Gene Finding
Page 42: CSE182-L7 Protein Sequence Analysis using HMMs, Gene Finding

HMMs and gene finding

• HMMs allow for a systematic approach to merging many signals.

• They can model multiple genes, partial genes in a genomic region, as also genes on both strands.

Page 43: CSE182-L7 Protein Sequence Analysis using HMMs, Gene Finding

The Viterbi Algorithm

Let vk(i) be the probability of the

most likely path that ends in state πk,

and emits symbols x1L x

k

Then,

vk (i +1) = ek (x i+1)maxl

(v l (i)alk )

Page 44: CSE182-L7 Protein Sequence Analysis using HMMs, Gene Finding

HMMs and gene finding

• The Viterbi algorithm (and backtracking) allows us to parse a string through the states of an HMM

• Can we describe Eukaryotic gene structure by the states of an HMM?• This could be a solution to the GF problem.

Page 45: CSE182-L7 Protein Sequence Analysis using HMMs, Gene Finding

An HMM for Gene structure

Page 46: CSE182-L7 Protein Sequence Analysis using HMMs, Gene Finding

Generalized HMMs, and other refinements

• A probabilistic model for each of the states (ex: Exon, Splice site) needs to be described

• In standard HMMs, there is an exponential distribution on the duration of time spent in a state.

• This is violated by many states of the gene structure HMM. Solution is to model these using generalized HMMs.

Page 47: CSE182-L7 Protein Sequence Analysis using HMMs, Gene Finding

Length distributions of Introns & Exons

Page 48: CSE182-L7 Protein Sequence Analysis using HMMs, Gene Finding

Generalized HMM for gene finding

• Each state also emits a ‘duration’ for which it will cycle in the same state. The time is generated according to a random process that depends on the state.

Page 49: CSE182-L7 Protein Sequence Analysis using HMMs, Gene Finding

Forward algorithm for gene finding

j i

qk

Fk (i) = P qkj<i

∑ (X j ,i) fqk ( j − i +1) alkl∈Q

∑ Fl ( j)

Emission Prob.: Probability that you emitted Xi..Xj in state qk (given by the 5th order markov model)

Forward Prob: Probability that you emitted I symbols and ended up in state qk

Duration Prob.: Probability that you stayedin state qk for j-i+1 steps

Page 50: CSE182-L7 Protein Sequence Analysis using HMMs, Gene Finding

HMMs and Gene finding

• Generalized HMMs are an attractive model for computational gene finding– Allow incorporation of various signals– Quality of gene finding depends upon

quality of signals.

Page 51: CSE182-L7 Protein Sequence Analysis using HMMs, Gene Finding

DNA Signals

• Coding versus non-coding• Splice Signals• Translation start

Page 52: CSE182-L7 Protein Sequence Analysis using HMMs, Gene Finding

Splice signals

• GT is a Donor signal, and AG is the acceptor signal

GT AG

Page 53: CSE182-L7 Protein Sequence Analysis using HMMs, Gene Finding

PWMs

• Fixed length for the splice signal.• Each position is generated independently

according to a distribution• Figure shows data from > 1200 donor

sites

321123456321123456AAGGTGAGTAAGGTGAGTCCGGTAAGTCCGGTAAGTGAGGTGAGGGAGGTGAGGTAGGTAAGGTAGGTAAGG

Page 54: CSE182-L7 Protein Sequence Analysis using HMMs, Gene Finding

MDD

• PWMs do not capture correlations between positions• Many position pairs in the Donor signal are correlated

Page 55: CSE182-L7 Protein Sequence Analysis using HMMs, Gene Finding

• Choose the position which has the highest correlation score.

• Split sequences into two: those which have the consensus at position I, and the remaining.

• Recurse until <Terminating conditions>

Page 56: CSE182-L7 Protein Sequence Analysis using HMMs, Gene Finding

MDD for Donor sites

Page 57: CSE182-L7 Protein Sequence Analysis using HMMs, Gene Finding

De novo Gene prediction: Sumary

• Various signals distinguish coding regions from non-coding

• HMMs are a reasonable model for Gene structures, and provide a uniform method for combining various signals.

• Further improvement may come from improved signal detection

Page 58: CSE182-L7 Protein Sequence Analysis using HMMs, Gene Finding

How many genes do we have?

Nature

Science

Page 59: CSE182-L7 Protein Sequence Analysis using HMMs, Gene Finding

Alternative splicing

Page 60: CSE182-L7 Protein Sequence Analysis using HMMs, Gene Finding

Comparative methods

• Gene prediction is harder with alternative splicing.• One approach might be to use comparative

methods to detect genes• Given a similar mRNA/protein (from another

species, perhaps?), can you find the best parse of a genomic sequence that matches that target sequence• Yes, with a variant on alignment algorithms that penalize

separately for introns, versus other gaps.

Page 61: CSE182-L7 Protein Sequence Analysis using HMMs, Gene Finding

Gene Features

ATG

5’ UTR

intron

exon3’ UTR

AcceptorDonor splice siteTranscription start

Translation start

Page 62: CSE182-L7 Protein Sequence Analysis using HMMs, Gene Finding

Gene Finding

• Given genomic DNA

Page 63: CSE182-L7 Protein Sequence Analysis using HMMs, Gene Finding

Coding versus Non-coding

• You are given a collection of exons, and a collection of intergenic sequence.

• Count the number of occurrences of ATGATG in Introns and Exons.– Suppose 1% of the hexamers in Exons are ATGATG– Only 0.01% of the hexamers in Intons are ATGATG

• How can you use this idea to find genes?

Page 64: CSE182-L7 Protein Sequence Analysis using HMMs, Gene Finding

Generalizing

AAAAAAAAAAACAAAAAGAAAAAT

I E

Compute a frequency count for all hexamers. Use this to decide whether a sequence X is an exon/intron.

105 20

10X

105

Page 65: CSE182-L7 Protein Sequence Analysis using HMMs, Gene Finding

A geometric approach

• Plot the following vectors– E= [10, 20]

– I = [10, 5]

– V3 = [5, 10]

– V4 = [9, 15]

• Is V3 more like E or more like I?

5

20

15

10

15105

Page 66: CSE182-L7 Protein Sequence Analysis using HMMs, Gene Finding

Choosing between Introns and Exons

• V’ = V/||V||• All vectors have the

same length (lie on the unit circle)

• Next, compute the angle to E, and I.

• Choose the feature that is ‘closer’ (smaller angle.

E

I

V3

β

α

E - score(V3) =α

α + β

Page 67: CSE182-L7 Protein Sequence Analysis using HMMs, Gene Finding

Coding versus non-coding

• Fickett and Tung (1992) compared various measures• Measures that preserve the triplet frame are

the most successful.

• Genscan: 5th order Markov Model• Conservation across species

Page 68: CSE182-L7 Protein Sequence Analysis using HMMs, Gene Finding

Coding region can be detected

E-score

• Plot the E-score using a sliding window of fixed length.• The (large) exons will show up reliably.• Not enough to predict gene boundaries reliably

Page 69: CSE182-L7 Protein Sequence Analysis using HMMs, Gene Finding

Other Signals

GTATG

AG

Coding

• Signals at exon boundaries are precise but not specific. Coding signals are specific but not precise.

• When combined they can be effective

Page 70: CSE182-L7 Protein Sequence Analysis using HMMs, Gene Finding

Combining Signals

• We can compute the following: – E-score[i,j]– I-score[i,j]– D-score[i]– I-score[i]– Goal is to find coordinates that maximize

the total score

i j

Page 71: CSE182-L7 Protein Sequence Analysis using HMMs, Gene Finding

The second generation of Gene finding

• Ex: Grail II. Used statistical techniques to combine various signals into a coherent gene structure.

• It was not easy to train on many parameters. Guigo & Bursett test revealed that accuracy was still very low.

• Problem with multiple genes in a genomic region

Page 72: CSE182-L7 Protein Sequence Analysis using HMMs, Gene Finding

Combining signals using D.P.

• An HMM is the best way to model and optimize the combination of signals

• Here, we will use a simpler approach which is essentially the same as the Viterbi algorithm for HMMs, but without the formalism.

Page 73: CSE182-L7 Protein Sequence Analysis using HMMs, Gene Finding

Gene finding reformulated

IIIIIEEEEEEIIIIIIEEEEEEIIIIEEEEEEEIIIII

• Recall that our goal was to identify the coordinates of the exons.

• Instead, we label every nucleotide as I (Intron/Intergenic) or E (Exon). For simplicity, we treat intergenic and introns as identical.

Page 74: CSE182-L7 Protein Sequence Analysis using HMMs, Gene Finding

Gene finding reformulated

IIIIIEEEEEEIIIIIIEEEEEEIIIIEEEEEE IIIII

• Given a labeling L, we can score it as

• I-score[0..i1] + E-score[i1..i2] + D-score[i2+1] + I-score[i2+1..i3-1] + A-score[i3-1] + E-score[i3..i4] + …….

• Goal is to compute a labeling with maximum score.

i1 i2 i3 i4

Page 75: CSE182-L7 Protein Sequence Analysis using HMMs, Gene Finding

Optimum labeling using D.P. (Viterbi)

• Define VE(i) = Best score of a labeling of the prefix 1..i such that the i-th position is labeled E

• Define VI(i) = Best score of a labeling of the prefix 1..i such that the i-th position is labeled I

• Why is it enough to compute VE(i) & VI(i) ?

Page 76: CSE182-L7 Protein Sequence Analysis using HMMs, Gene Finding

Optimum parse of the gene

VE (i) = max j<i

E_score[ jK i] +VI ( j −1)

+A_score[ j −1]}

⎧ ⎨ ⎩

VI (i) = max j<i

I_score[ j..i] +VE ( j −1)

+D_score[ j]}

⎧ ⎨ ⎩

j i

j i

Page 77: CSE182-L7 Protein Sequence Analysis using HMMs, Gene Finding

Generalizing

• Note that we deal with two states, and consider all paths that move between the two states.

E

I

i

Page 78: CSE182-L7 Protein Sequence Analysis using HMMs, Gene Finding

Generalizing

• We did not deal with the boundary cases in the recurrence.

• Instead of labeling with two states, we can label with multiple states, – Einit, Efin, Emid,

– I, IG (intergenic)

Einit

I

Efin

Emid

IG

Note: all links are not shown here

Page 79: CSE182-L7 Protein Sequence Analysis using HMMs, Gene Finding

HMMs and gene finding

• HMMs allow for a systematic approach to merging many signals.

• They can model multiple genes, partial genes in a genomic region, as also genes on both strands.

• They allow an automated approach to weighting features.

Page 80: CSE182-L7 Protein Sequence Analysis using HMMs, Gene Finding

An HMM for Gene structure

Page 81: CSE182-L7 Protein Sequence Analysis using HMMs, Gene Finding

Generalized HMMs, and other refinements

• A probabilistic model for each of the states (ex: Exon, Splice site) needs to be described

• In standard HMMs, there is an exponential distribution on the duration of time spent in a state.

• This is violated by many states of the gene structure HMM. Solution is to model these using generalized HMMs.

Page 82: CSE182-L7 Protein Sequence Analysis using HMMs, Gene Finding

Length distributions of Introns & Exons

Page 83: CSE182-L7 Protein Sequence Analysis using HMMs, Gene Finding

Generalized HMM for gene finding

• Each state also emits a ‘duration’ for which it will cycle in the same state. The time is generated according to a random process that depends on the state.

Page 84: CSE182-L7 Protein Sequence Analysis using HMMs, Gene Finding

Forward algorithm for gene finding

j i

qk

Vk (i) = Sqkj<i

∑ (X j ,i) fqk ( j − i +1) alkl∈Q

∑ Vl ( j)

Emission Prob.: Probability that you emitted Xi..Xj in state qk (given by the 5th order markov model)

Forward Prob: Probability that you emitted I symbols and ended up in state qk

Duration Prob.: Probability that you stayedin state qk for j-i+1 steps

Page 85: CSE182-L7 Protein Sequence Analysis using HMMs, Gene Finding

HMMs and Gene finding

• Generalized HMMs are an attractive model for computational gene finding– Allow incorporation of various signals– Quality of gene finding depends upon

quality of signals.

Page 86: CSE182-L7 Protein Sequence Analysis using HMMs, Gene Finding

DNA Signals

• Coding versus non-coding• Splice Signals• Translation start

Page 87: CSE182-L7 Protein Sequence Analysis using HMMs, Gene Finding

Splice signals

• GT is a Donor signal, and AG is the acceptor signal

GT AG

Page 88: CSE182-L7 Protein Sequence Analysis using HMMs, Gene Finding

PWMs

• Fixed length for the splice signal.• Each position is generated independently

according to a distribution• Figure shows data from > 1200 donor

sites

321123456321123456AAGAAGGTGTGAGTGAGTCCGCCGGTGTAAGTAAGTGAGGAGGTGTGAGGGAGGTAGTAGGTGTAAGGAAGG

Page 89: CSE182-L7 Protein Sequence Analysis using HMMs, Gene Finding

MDD

• PWMs do not capture correlations between positions• Many position pairs in the Donor signal are correlated

Page 90: CSE182-L7 Protein Sequence Analysis using HMMs, Gene Finding

• Choose the position which has the highest correlation score.

• Split sequences into two: those which have the consensus at position I, and the remaining.

• Recurse until <Terminating conditions>

Page 91: CSE182-L7 Protein Sequence Analysis using HMMs, Gene Finding

MDD for Donor sites

Page 92: CSE182-L7 Protein Sequence Analysis using HMMs, Gene Finding

Gene prediction: Summary

• Various signals distinguish coding regions from non-coding

• HMMs are a reasonable model for Gene structures, and provide a uniform method for combining various signals.

• Further improvement may come from improved signal detection

Page 93: CSE182-L7 Protein Sequence Analysis using HMMs, Gene Finding

How many genes do we have?

Nature

Science

Page 94: CSE182-L7 Protein Sequence Analysis using HMMs, Gene Finding

Alternative splicing

Page 95: CSE182-L7 Protein Sequence Analysis using HMMs, Gene Finding

Comparative methods

• Gene prediction is harder with alternative splicing.• One approach might be to use comparative

methods to detect genes• Given a similar mRNA/protein (from another

species, perhaps?), can you find the best parse of a genomic sequence that matches that target sequence• Yes, with a variant on alignment algorithms that penalize

separately for introns, versus other gaps.

Page 96: CSE182-L7 Protein Sequence Analysis using HMMs, Gene Finding

Comparative gene finding tools

• Procrustes/Sim4: mRNA vs. genomic• Genewise: proteins versus genomic• CEM: genomic versus genomic• Twinscan: Combines comparative and

de novo approach.

Page 97: CSE182-L7 Protein Sequence Analysis using HMMs, Gene Finding

Databases

• RefSeq and other databases maintain sequences of full-length transcripts.

• We can query using sequence.