Sha256: 4710efcd4dcf503feededfbf65521d02a677f119f5e8f5ec9187dc6e8514c388

Contents?: true

Size: 1.6 KB

Versions: 77

Compression:

Stored size: 1.6 KB

Contents

Translate RNA sequences into proteins.

RNA can be broken into three nucleotide sequences called codons, and then translated to a polypeptide like so:

RNA: `"AUGUUUUCU"` => translates to

Codons: `"AUG", "UUU", "UCU"`
=> which become a polypeptide with the following sequence =>

Protein: `"Methionine", "Phenylalanine", "Serine"`

There are 64 codons which in turn correspond to 20 amino acids; however, all of the codon sequences and resulting amino acids are not important in this exercise.  If it works for one codon, the program should work for all of them.
However, feel free to expand the list in the test suite to include them all.

There are also three terminating codons (also known as 'STOP' codons); if any of these codons are encountered (by the ribosome), all translation ends and the protein is terminated.

All subsequent codons after are ignored, like this:

RNA: `"AUGUUUUCUUAAAUG"` =>

Codons: `"AUG", "UUU", "UCU", "UAA", "AUG"` =>

Protein: `"Methionine", "Phenylalanine", "Serine"`

Note the stop codon `"UAA"` terminates the translation and the final methionine is not translated into the protein sequence.

Below are the codons and resulting Amino Acids needed for the exercise.

Codon                 | Protein
:---                  | :---
AUG                   | Methionine
UUU, UUC              | Phenylalanine
UUA, UUG              | Leucine
UCU, UCC, UCA, UCG    | Serine
UAU, UAC              | Tyrosine
UGU, UGC              | Cysteine
UGG                   | Tryptophan
UAA, UAG, UGA         | STOP

Learn more about [protein translation on Wikipedia](http://en.wikipedia.org/wiki/Translation_(biology))

Version data entries

77 entries across 77 versions & 1 rubygems

Version Path
trackler-2.2.1.159 problem-specifications/exercises/protein-translation/description.md
trackler-2.2.1.158 problem-specifications/exercises/protein-translation/description.md
trackler-2.2.1.157 problem-specifications/exercises/protein-translation/description.md
trackler-2.2.1.156 problem-specifications/exercises/protein-translation/description.md
trackler-2.2.1.155 problem-specifications/exercises/protein-translation/description.md
trackler-2.2.1.154 problem-specifications/exercises/protein-translation/description.md
trackler-2.2.1.153 problem-specifications/exercises/protein-translation/description.md
trackler-2.2.1.152 problem-specifications/exercises/protein-translation/description.md
trackler-2.2.1.151 problem-specifications/exercises/protein-translation/description.md
trackler-2.2.1.150 problem-specifications/exercises/protein-translation/description.md
trackler-2.2.1.149 problem-specifications/exercises/protein-translation/description.md
trackler-2.2.1.148 problem-specifications/exercises/protein-translation/description.md
trackler-2.2.1.147 problem-specifications/exercises/protein-translation/description.md
trackler-2.2.1.146 problem-specifications/exercises/protein-translation/description.md
trackler-2.2.1.145 problem-specifications/exercises/protein-translation/description.md
trackler-2.2.1.144 problem-specifications/exercises/protein-translation/description.md
trackler-2.2.1.143 problem-specifications/exercises/protein-translation/description.md
trackler-2.2.1.142 problem-specifications/exercises/protein-translation/description.md
trackler-2.2.1.141 problem-specifications/exercises/protein-translation/description.md
trackler-2.2.1.140 problem-specifications/exercises/protein-translation/description.md