Skip to content

Tweak language and formatting in protein-translation/description.md #2558

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 9 additions & 20 deletions exercises/protein-translation/description.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,30 +2,19 @@

Translate RNA sequences into proteins.

RNA can be broken into three-nucleotide sequences called codons, and then translated to a protein like so:
You can break an RNA strand into three-nucleotide sequences called codons and then translate them into amino acids to make a protein like so:

RNA: `"AUGUUUUCU"` => translates to
| RNA | Three-letter codons | Amino acids |
| ----------- | ------------------- | --------------------------------------- |
| "AUGUUUUCU" | "AUG", "UUU", "UCU" | "Methionine", "Phenylalanine", "Serine" |

Codons: `"AUG", "UUU", "UCU"`
=> which become a protein with the following sequence =>
There are also three STOP codons. If you encounter any of these codons, ignore the rest of the sequence — the protein is complete. For example, UAA is a STOP codon, so ignore any subsequent codons:

Protein: `"Methionine", "Phenylalanine", "Serine"`
| RNA | Three-letter codons | Amino acids |
| ----------------- | --------------------------------- | --------------------------------------- |
| "AUGUUUUCUUAAAUG" | "AUG", "UUU", "UCU", "UAA", "AUG" | "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.
(Note that the latter AUG is not translated into another methionine.)

Below are the codons and resulting amino acids needed for the exercise.

Expand Down