|
2 | 2 |
|
3 | 3 | Translate RNA sequences into proteins. |
4 | 4 |
|
5 | | -RNA can be broken into three-nucleotide sequences called codons, and then translated to a protein like so: |
| 5 | +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: |
6 | 6 |
|
7 | | -RNA: `"AUGUUUUCU"` => translates to |
| 7 | +| RNA | Three-letter codons | Amino acids | |
| 8 | +|-------------|---------------------|-----------------------------------------| |
| 9 | +| "AUGUUUUCU" | "AUG", "UUU", "UCU" | "Methionine", "Phenylalanine", "Serine" | |
8 | 10 |
|
9 | | -Codons: `"AUG", "UUU", "UCU"` |
10 | | -=> which become a protein with the following sequence |
| 11 | +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: |
11 | 12 |
|
12 | | -Protein: `"Methionine", "Phenylalanine", "Serine"` |
| 13 | +| RNA | Three-letter codons | Amino acids | |
| 14 | +|-------------------|-----------------------------------|-----------------------------------------| |
| 15 | +| "AUGUUUUCUUAAAUG" | "AUG", "UUU", "UCU", "UAA", "AUG" | "Methionine", "Phenylalanine", "Serine" | |
13 | 16 |
|
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. |
17 | | - |
18 | | -There are also three terminating codons (also known as _stop codons_); if any of these codons are encountered, all translation ends and the protein is terminated. |
19 | | -All subsequent codons are ignored, like this: |
20 | | - |
21 | | -RNA: `"AUGUUUUCUUAAAUG"` => |
22 | | - |
23 | | -Codons: `"AUG", "UUU", "UCU", "UAA", "AUG"` => |
24 | | - |
25 | | -Protein: `"Methionine", "Phenylalanine", "Serine"` |
26 | | - |
27 | | -Note the stop codon `"UAA"` terminates the translation and the final methionine is not translated into the protein sequence. |
| 17 | +(Note that the latter AUG is not translated into another methionine.) |
28 | 18 |
|
29 | 19 | Below are the codons and resulting amino acids needed for the exercise. |
30 | 20 |
|
|
0 commit comments