what you should remember for today
play

What you should remember for today Algorithms are mechanical recipe - PowerPoint PPT Presentation

What you should remember for today Algorithms are mechanical recipe to compute something. Structure of prokaryotic genes. Each genome has uneven codon preferences. Basic form of the Bayes Theorem (earlier this term?) Learning outcomes for


  1. What you should remember for today Algorithms are mechanical recipe to compute something. Structure of prokaryotic genes. Each genome has uneven codon preferences. Basic form of the Bayes Theorem (earlier this term?)

  2. Learning outcomes for today? 1.Interpret algorithms expressed as pseudocode. 2.Describe the limitations of assuming an equivalence between long ORFs and expressed gene products in prokaryotes. 3.Compute and interpret the following prediction performance measures:sensitivity, specificity and F-score. 4.Desribes how GeneMark learns the structure of genes in prokaryotes. 5.Explain why GLIMMER attempts to consider data from longer k-mers.

  3. Open Reading Frames STOP codon TAA, TGA, TAG START codon ATG (also code for protein character M) Finding Genes v.1.0 ORF : Open Reading Frame. Since codons are words of 3 characters. Finding a START and one of three possible STOP codons constitute a reading frame.

  4. Open Reading Frames Sequence as in the DB TCCAACTCGGGGTCCGCATCGCTCCGCCGGCGACCGACGAAGCCG Three first frames TCC AAC TCG GGG TCC GCA TCG CTC CGC CGG CGA CCG ACG AAG CCG A T CCA ACT CGG GGT CCG CAT CGC TCC GCC GGC GAC CGA CGA AGC CGA TC CAA CTC GGG GTC CGC ATC GCT CCG CCG GCG ACC GAC GAA GCC GA But DNA is a double strand… 5’-TCCAACTCGGGGTCCGCATCGCTCCGCCGGCGACCGACGAAGCCG-3’ 3’-AGGTTGAGCCCCAGGCGTAGCGTGGCGGCCGCTGGCTGCTTCGGC-5’ Finding Genes v.1.0 There are 6 possible frames : Some organisms even manage to overlap genes using two reading frames!

  5. ORF ≠ Gene In bacteria : I t is OK to assume that all genes are ORFs. Not all ORFs are genes! Find the longest possible sequence beginning with an ATG, and ● terminating by a TAA, TAG, TGA. There may be multiple ATG inside the gene , but only a single stop ● codon. Real genes will have a regulatory regions upstream of ORF. Use ● pattern detection to do this. Real genes are typically 100-500 codons long. ● Real genes tend to have a bias in the composition of their ● characters. Finding Genes v.1.0

  6. Control sequences Regulatory sequence : Promote the translation of a gene. Sequence found in 5’ of gene. Finding Genes v.1.0

  7. Gene density Bacteria : < 10 Mb genomes usually, >85% gene coding sequences. Eukaryotic genomes : 13 Mb – 10,000Mb genomes. 70% in Baker’s yeast ( Saccharomyces cerevisiae ) 25% in Fruit fly ( Drosophila melanogaster ) 1-3% in flowering plants. Intron : Discontinuity in the sequence of a gene. ~150 bp exon (coding DNA) interspaced with introns (non- coding; few hundreds to thousand bp). 95% human genes have at least 1 intron. 80% fruit fly Finding Genes v.1.0 5 % Yeast

  8. A procedure to identify ORFs in prokaryotic genomes Starting at the first base in the genome, find the position of the first START codon. Once a START codon is found, find the position of the first STOP codon that is in the same frame. Consider all nucleotides including and in-between the position of the first nucleotide in START and the last nuclotide in STOP to be an ORF. Repeat from the end of this gene until the whole genome has been scanned.

  9. Tentative Pseudocode lastSTOP = 0 start = 0 stop = 0 for as long as start is smaller than the length of the genome SET start as the index of the next ATG after lastSTOP. FIND the next in-frame STOP codon SET stop as the index of the third base of the STOP codon WRITE start and stop

  10. ORFs and genes aren't the same It is straightforward to determine the probability of and ORF to be spurious if you know its length.

  11. lastSTOP = 0 start = 0 stop = 0 while start != -1: # Find the first ATG after lastSTOP start = genome.find("ATG", lastSTOP) # Find the first in-frame STOP codon for i in range(start, len(genome), 3): codon = genome[i:i+3] if codon in ["TAA","TGA","TAG"]: stop = i + 2 break print start, stop, stop - start

  12. Tentative Pseudocode II lastSTOP = 0 start = 0 stop = 0 minGenLen = 300 for as long as start is smaller than the length of the genome SET start as the index of the next ATG after lastSTOP. FIND the next in-frame STOP codon SET stop as the index of the third base of the STOP codon IF (stop - start) IS LARGER THAN minGenLen WRITE start and stop SET lastSTOP to stop OTHERWISE INCREMENT lastSTOP by 1

  13. lastSTOP = 0 start = 0 stop = 0 while start != -1: # Find the first ATG after lastSTOP start = genome.find("ATG", lastSTOP) # Find the first in-frame STOP codon for i in range(start, len(genome), 3): codon = genome[i:i+3] if codon in ["TAA","TGA","TAG"]: stop = i + 2 break # Is the ORF long enough? if stop - start >= minGeneLength: print start, stop, stop - start lastSTOP = stop + 1 else: lastSTOP = lastSTOP + 1

  14. The Confusion Matrix Real Codon Not Real Codon True Positives False Positive Predicted as Codon (TP) (FP) False Negative True Negative Ignored as Codon (FN) (TN)

  15. Sensitivity Real Not Real The proportion of real codons (TP) (FP) Predicted that are correctly classified (TP) as such. (FN) (TN) Ignored (FN) Sn = TP / (TP + FN)

  16. Specificity Real Not Real The proportion of predicted (TP) (FP) Predicted codons that are real ORF (TP) (FP) boundaries. (FN) (TN) Ignored Sp = TP / (TP + FP)

  17. F-score Real Not Real The harmonic mean of Sn and (TP) (FP) Predicted Sp. (TP) (FP) F = 2 * Sn * Sp / (Sn + Sp) (FN) (TN) Ignored (FN)

  18. An example Real Not Real Sn = 100 / (100 + 10) = 0.909 100 50 Predicted 100 50 Sp = 100 / (100 + 50) = 0.666 10 1000 Ignored 10 F = (2 * .9 * .66) / (.9 + .66) F = 0.769 This classifier is thus more sensitive than specific.

  19. Using Signal Given two ORFs of exactly the same length. One is a gene while the other is an “accident”. Tell them apart. ● There can be a difference in signal. ● This difference will be genome-dependent. ● The classifier needs to learn what is this difference. ● This must be done without assuming that the ORF is known.

  20. Open Reading Frames Sequence as in the DB TCCAACTCGGGGTCCGCATCGCTCCGCCGGCGACCGACGAAGCCG Three first frames TCC AAC TCG GGG TCC GCA TCG CTC CGC CGG CGA CCG ACG AAG CCG A T CCA ACT CGG GGT CCG CAT CGC TCC GCC GGC GAC CGA CGA AGC CGA TC CAA CTC GGG GTC CGC ATC GCT CCG CCG GCG ACC GAC GAA GCC GA But DNA is a double strand… 5’-TCCAACTCGGGGTCCGCATCGCTCCGCCGGCGACCGACGAAGCCG-3’ 3’-AGGTTGAGCCCCAGGCGTAGCGTGGCGGCCGCTGGCTGCTTCGGC-5’ Finding Genes v.1.0 When given a fragment of sequences, it can be in either 6 frames, or NOT in a gene. The classification is thus a 7-way classification problem.

  21. Training set Dataset for which we already know the classification and is assumed to be a uniform sample of the data to be classified in the future. ● BLAST results of known genes ( prior knowledge ). ● Sample from long ORFs.

  22. GeneMark Is a Markov Model based approach. A statistically averse person may prefer the term: k-mer An approach that is somewhat similar to the de Bruijn graphs.

  23. GeneMark training Principle Store the probability of all Possible hexamer (6-mer) in Each possible frames, and In non-coding regions.

  24. GeneMark table example For a given frame F A T C G AAAAA 0.1 0.1 0.7 0.1 AAAAT 0.05 0.15 0.7 0.1 AAAAC 0.1 0.1 0.7 0.1 AAAAG 0.11 0.1 0.69 0.1 AAATA 0.1 0.4 0.4 0.1 AAATT 0.2 0.3 0.2 0.3 ..... ... ... ... ...

  25. Training for GeneMark DERIVE probabilities for frame F bndrs <==CREATE A list of gene boundaries sampling the frame F. probs <== CREATE a table enumerating each possible k-mers ASSOCIATE a count of 0 for A,T,C,G for each k-mers. for each gene boundary pairs in bndrs orf <== SLICE the matching genome sequence for each hexamer in orf Nuc <== Last nucleotide of the word prefix <== First k nucleotides ADD 1 to the count of nucleotide Nuc occuring after prefix CONVERT all counts into probabilities

  26. GeneMark table example For a given frame F A T C G AAAAA 0.1 0.1 0.7 0.1 AAAAT 0.05 0.15 0.7 0.1 AAAAC 0.1 0.1 0.7 0.1 AAAAG 0.11 0.1 0.69 0.1 AAATA 0.1 0.4 0.4 0.1 AAATT 0.2 0.3 0.2 0.3 ..... ... ... ... ...

  27. Classifying with GeneMark Find the frame F with the highest posterior probability INPUT: 1 sequence s of lenght 12, 7 tables of hexamer frequencies T = {F1,F2,F3,F4,F5,F6,NC} a sequence s OUTPUT: a coding frame or the answer non-coding bestFrame = None bestProb = 0.0 for each frame F in [1,2,3,4,5,6,nc]: freq <== GET table in T which correspond to F Lkl <== EVALUATE the likelihood of s given freq prior <== SET to 0.5 if freq is NC, or 1/12 otherwise P <== EVALUATE the posterior probability of frame given s if P > bestProb: bestFrame = FR bestProb = P RETURN bestFrame

  28. Classifying with GeneMark Principle For a sequence s of length 12: Compute the likelihood of s in all 7 frames Find the frame with highest posterior probability

  29. Likelihood in GeneMark s = abcdefghi ||||||||| 123123123 abcde.... P 2 (abcde) abcdef... P 2 (f|abcde) .bcdefg.. P 3 (g|bcdef) ..cdefgh. P 1 (h|cdefg) ...defghi P 2 (i|defgh)

  30. Bayesian Posterior Probability (that the segment is in frame 3, given sequence s) s = abcdefghi

  31. Point of discussion about GeneMark ● 7-way classification will pick up on genes, regardless of frames. ● Supervised training – is the training set appropriate? ● Is 6-mer appropriate? ● What if we use longer K-mers? ● What if we use shorter K-mers?

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend