Assignment 8
Due date: 3/29/10
Translation from mRNA to protein sequence
Write a function called translate(sequence) that translates a sequence of mRNA into a protein sequence.
Assume that the input sequence is an mRNA sequence, i.e. it is composed of the letters $A,C,G,U$. Your function should return the translation of the RNA sequence into protein. The translated protein sequence should end at the first stop codon encountered during the translation process.
Every three bases are translated into an amino acid using the genetic code.
For example, the sequence AUGUCAGGU translates into MSG.
The complete codon table and more information can be found here.
Use a python dictionary to represent the codon table.
