Skip to content

Commit 1bee6bc

Browse files
committed
1 parent 504995a commit 1bee6bc

File tree

1 file changed

+17
-32
lines changed

1 file changed

+17
-32
lines changed

exercises/protein-translation/description.md

Lines changed: 17 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,29 @@
11
# Description
22

3-
Translate RNA sequences into proteins.
3+
Your job is to translate RNA sequences into proteins.
44

5-
RNA can be broken into three-nucleotide sequences called codons, and then translated to a protein like so:
5+
RNA strands are made up of three-nucleotide sequences called **codons**. Each codon translates to an **amino acid**. When joined together, those amino acids make a protein.
66

7-
RNA: `"AUGUUUUCU"` => translates to
7+
In the real world, there are 64 codons, which in turn correspond to 20 amino acids. However, for this exercise, you’ll only use a few of the possible 64. They are listed below:
88

9-
Codons: `"AUG", "UUU", "UCU"`
10-
=> which become a protein with the following sequence =>
9+
|Codon|Amino Acid|
10+
| --- | --- |
11+
|AUG|Methionine|
12+
|UUU, UUC|Phenylalanine|
13+
|UUA, UUG|Leucine|
14+
|UCU, UCC, UCA, UCG|Serine|
15+
|UAU, UAC|Tyrosine|
16+
|UGU, UGC|Cysteine|
17+
|UGG|Tryptophan|
18+
|UAA, UAG, UGA|STOP|
1119

12-
Protein: `"Methionine", "Phenylalanine", "Serine"`
20+
For example, the RNA string “AUGUUUUCU” has three codons: “AUG”, “UUU” and “UCU”. These map to Methionine, Phenylalanine, and Serine.
1321

14-
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.
15-
If it works for one codon, the program should work for all of them.
16-
However, feel free to expand the list in the test suite to include them all.
22+
### “STOP” Codons
1723

18-
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.
24+
You’ll note from the table above that there are three **STOP codons**. If you encounter any of these codons, ignore the rest of the sequence — the protein is complete.
1925

20-
All subsequent codons after are ignored, like this:
21-
22-
RNA: `"AUGUUUUCUUAAAUG"` =>
23-
24-
Codons: `"AUG", "UUU", "UCU", "UAA", "AUG"` =>
25-
26-
Protein: `"Methionine", "Phenylalanine", "Serine"`
27-
28-
Note the stop codon `"UAA"` terminates the translation and the final methionine is not translated into the protein sequence.
29-
30-
Below are the codons and resulting amino acids needed for the exercise.
31-
32-
| Codon | Amino Acid |
33-
| :----------------- | :------------ |
34-
| AUG | Methionine |
35-
| UUU, UUC | Phenylalanine |
36-
| UUA, UUG | Leucine |
37-
| UCU, UCC, UCA, UCG | Serine |
38-
| UAU, UAC | Tyrosine |
39-
| UGU, UGC | Cysteine |
40-
| UGG | Tryptophan |
41-
| UAA, UAG, UGA | STOP |
26+
For example, “AUGUUUUCUUAAAUG” contains a STOP codon (“UAA”). Once we reach that point, we stop processing. We therefore only consider the part before it (i.e. “AUGUUUUCU”), not any further codons after it (i.e. “AUG”).
4227

4328
Learn more about [protein translation on Wikipedia][protein-translation].
4429

0 commit comments

Comments
 (0)