6.4.7Bioinformatics & Computational Biology

Explain gene prediction methods

2,443 words11 min readdifficulty · medium

WHY do we need gene prediction at all?

WHAT: Sequencing gives you raw DNA — billions of letters. But raw sequence does not tell you which stretches actually code for proteins or functional RNA.

WHY it's hard:

  • There are no obvious markers separating a gene from junk DNA.
  • In eukaryotes, genes are interrupted: coding pieces (exons) are broken up by non-coding pieces (introns) that get spliced out.
  • Any DNA stretch has 6 reading frames (3 forward, 3 reverse), and most are meaningless.

HOW we attack it: We look for statistical signals and sequence signals that real genes leave behind, then combine them.


The two big families of methods

1. Ab initio (intrinsic) methods

Use only the query sequence and statistical models of what genes look like.

2. Homology / evidence-based (extrinsic) methods

Compare the sequence to known genes, proteins, or expressed sequences (mRNA/EST/RNA-seq).


Sequence signals we hunt for (content vs. signal)

Figure — Explain gene prediction methods

Building block 1 — Open Reading Frames (ORFs)

WHY ORFs matter: In prokaryotes, genes are (mostly) continuous ORFs, so ORF-finding alone works well. In eukaryotes, introns break the ORF, so ORFs are only part of the story.

Deriving: how many codons, how long an ORF?

DNA is read in triplets. If an ORF spans nn nucleotides (including start & stop), the number of codons is:

C=n3C = \frac{n}{3}

The number of amino acids in the protein (start codon → Met is kept, stop codon → no amino acid):

Laa=n31L_{aa} = \frac{n}{3} - 1

Deriving: probability a random codon is a stop

There are 43=644^3 = 64 codons. Three of them (TAA, TAG, TGA) are stops.

P(stop)=3640.047P(\text{stop}) = \frac{3}{64} \approx 0.047

Expected number of codons before hitting a stop (geometric distribution mean):

E[codons before stop]=1P(stop)=64321E[\text{codons before stop}] = \frac{1}{P(\text{stop})} = \frac{64}{3} \approx 21


Building block 2 — Markov models & GHMMs (the engine of modern predictors)

Deriving a k-th order Markov probability

A sequence S=s1s2snS = s_1 s_2 \dots s_n. Under a kk-th order Markov model:

P(S)=P(s1sk)i=k+1nP(sisi1,,sik)P(S) = P(s_1 \dots s_k)\prod_{i=k+1}^{n} P(s_i \mid s_{i-1}, \dots, s_{i-k})

Why this product form? We apply the chain rule of probability and then make the Markov assumption: each base depends only on the previous kk bases, not the entire history. This makes the huge joint probability tractable (only need 4k+14^{k+1} parameters).

We then compute a log-likelihood ratio score comparing a coding model vs a non-coding (null) model:

SLLR=logP(sequencecoding)P(sequencenon-coding)S_{LLR} = \log \frac{P(\text{sequence} \mid \text{coding})}{P(\text{sequence} \mid \text{non-coding})}

GHMM (Generalized Hidden Markov Model): tools like GENSCAN, AUGUSTUS, GeneMark, Glimmer use HMMs where hidden states = {exon, intron, intergenic, 5'UTR, splice site, ...}. The predictor finds the most probable state path (via the Viterbi algorithm) that explains the observed DNA — that path is the predicted gene structure.


Homology-based methods (borrowing the dictionary)

  • BLAST/BLAT the sequence against protein/nucleotide databases → conserved regions likely code.
  • EST / cDNA / RNA-seq alignment: expressed sequences map directly onto exons, revealing exon boundaries and splicing experimentally.
  • Tools: GeneWise, Exonerate, spliced aligners (STAR, HISAT).

Prokaryotes vs. Eukaryotes


Worked examples


Common mistakes (Steel-man + fix)


Flashcards

What is gene prediction?
The computational identification of genes (exon/intron boundaries, regulatory signals) in genomic DNA, from sequence alone or with external evidence.
Two main families of gene prediction methods?
Ab initio (intrinsic, uses sequence + statistical models) and homology/evidence-based (extrinsic, compares to known sequences).
Difference between signal sensors and content sensors?
Signal sensors detect short specific motifs (start/stop codons, splice sites); content sensors measure region-wide statistics (codon bias, GC content, ORF length).
Define an ORF.
A DNA stretch from a start codon (ATG) to a stop codon with no in-frame stop in between.
The three stop codons?
TAA, TAG, TGA.
Splice donor and acceptor consensus?
Donor = GT (5' end of intron), Acceptor = AG (3' end of intron) — the "GT...AG rule".
Probability a random codon is a stop, and expected run length?
3/64 ≈ 0.047; expected ~64/3 ≈ 21 codons before a stop.
Formula for amino acids from ORF of n nucleotides?
L_aa = n/3 − 1 (stop codon codes no amino acid).
Why are Markov models used in gene finding?
Coding DNA has biased base-neighbor statistics (codon usage); a k-th order Markov model captures P(next base | previous k bases), differing for coding vs non-coding.
What does the Viterbi algorithm do in a GHMM gene finder?
Finds the most probable hidden-state path (exon/intron/intergenic) explaining the DNA = the predicted gene structure.
Why is eukaryotic gene finding harder than prokaryotic?
Eukaryotic genes are split by introns and need splice-site + UTR modeling; prokaryotic genes are mostly continuous ORFs.
Name two ab initio eukaryotic gene finders.
GENSCAN and AUGUSTUS (also GeneMark).
Name two prokaryotic gene finders.
Glimmer and Prodigal (also GeneMarkS).
Why combine ab initio with homology/evidence?
Ab initio finds novel genes but errs on boundaries; homology/evidence is accurate but blind to unknown genes — combining gives best accuracy.
What is the log-odds coding score and why use log?
log[P(seq|coding)/P(seq|non-coding)]; log converts a product of tiny probabilities into a stable sum where sign indicates coding.

Recall Feynman: explain to a 12-year-old

Imagine a super-long string of only four letters — A, T, G, C — with NO spaces. Somewhere in there are "recipes" (genes) that tell the cell how to build things, but they're hidden in a sea of gibberish. Gene prediction is like a smart word-search: we know real recipes always start with a special "GO" word (ATG) and end with a "STOP" word, and their letters follow certain patterns that gibberish doesn't. The computer scores every chunk: "does this look like a real recipe, or random junk?" We also peek in a big cookbook of known recipes to double-check. When both the pattern-clues and the cookbook agree — jackpot, we found a gene!


Connections

  • Sequence Alignment (BLAST) — homology-based prediction relies on it
  • Hidden Markov Models — the statistical engine of GENSCAN/AUGUSTUS
  • Central Dogma — transcription/splicing/translation define what a "gene" is
  • Genetic Code & Codons — source of codon bias and stop-codon statistics
  • RNA-seq & Transcriptomics — expression evidence for exon boundaries
  • Genome Annotation Pipelines — MAKER/BRAKER combine all methods
  • Prokaryote vs Eukaryote Genome Organization — why methods differ

Concept Map

needs

makes hard

via

via

uses

uses

detect ATG and stop codons

measure gene-like regions

works well in

broken by introns in

gives

compares to

Gene Prediction

Raw DNA sequence

No spaces or markers

Ab initio methods

Homology-based methods

Signal sensors

Content sensors

Open Reading Frames

Eukaryote exons and introns

Prokaryote genes

Codon and protein length

Hinglish (regional understanding)

Intuition Hinglish mein samjho

Socho ki poora genome ek aisi kitaab hai jisme sirf 4 letters hain — A, T, G, C — aur beech me koi space ya full-stop nahi. Gene prediction ka matlab hai is bina-space wali kitaab me asli "recipes" yaani genes ko dhoondhna: kahan se gene shuru hota hai, kahan khatam. Ye mushkil hai kyunki genome me bahut saara "junk" hota hai, aur eukaryotes me toh gene ke beech me introns (kaat ke phenke jaane wale tukde) bhi hote hain, jo exons ko todte hain.

Do main tarike hote hain. Ab initio method sirf sequence ke patterns dekhta hai — jaise start codon ATG, stop codons (TAA/TAG/TGA), aur splice sites (GT...AG rule). Iske saath ye "content" bhi check karta hai: kya is region me codon bias aur base-neighbour statistics gene jaisi lagti hain? Iske liye Markov models aur HMM use hote hain (GENSCAN, AUGUSTUS, GeneMark) jo Viterbi algorithm se best gene structure nikalte hain. Dusra tarika homology-based hai — sequence ko known proteins ya RNA-seq/EST data se compare karo (BLAST wagairah); jahan match milta hai wahan gene hone ke chances zyada.

Ek zaroori intuition: random DNA me har ~21 codons ke baad ek stop aa jaata hai (kyunki 3 out of 64 codons stop hain). Isliye agar koi ORF sau-do-sau codons tak bina stop ke chalta hai, toh ye chance se hona bahut mushkil hai — matlab ye asli

Test yourself — Bioinformatics & Computational Biology

Connections