70
99
Obtaining the codons from a ``DnaSequence`` object
71
100
--------------------------------------------------
77
106
>>> from cogent import LoadSeqs,DNA
79
107
>>> my_seq = DNA.makeSequence('ATGCACTGGTAA','my_gene')
80
108
>>> codons = my_seq.getInMotifSize(3)
82
110
['ATG', 'CAC', 'TGG', 'TAA']
90
120
Remove the stop codon first
91
121
^^^^^^^^^^^^^^^^^^^^^^^^^^^