From 2154eeb741c37d2e6379ba1dbee339a9887a8cf7 Mon Sep 17 00:00:00 2001 From: "Kevin Bloch (@codingthat)" Date: Wed, 23 Apr 2025 15:41:29 +0200 Subject: [PATCH 1/4] Tweak language and formatting in `protein-translation/description.md` --- exercises/protein-translation/description.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/exercises/protein-translation/description.md b/exercises/protein-translation/description.md index dc9209269c..2f7948d9e6 100644 --- a/exercises/protein-translation/description.md +++ b/exercises/protein-translation/description.md @@ -7,7 +7,7 @@ RNA can be broken into three-nucleotide sequences called codons, and then transl RNA: `"AUGUUUUCU"` => translates to Codons: `"AUG", "UUU", "UCU"` -=> which become a protein with the following sequence => +=> which become a protein with the following sequence Protein: `"Methionine", "Phenylalanine", "Serine"` @@ -15,9 +15,8 @@ There are 64 codons which in turn correspond to 20 amino acids; however, all of 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: +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. +All subsequent codons are ignored, like this: RNA: `"AUGUUUUCUUAAAUG"` => From 15708f68d21af7ea396ca95b3f92c3839290f13b Mon Sep 17 00:00:00 2001 From: Kevin Bloch Date: Mon, 28 Apr 2025 14:43:24 +0200 Subject: [PATCH 2/4] Further improvements per http://forum.exercism.org/t/tweak-language-and-formatting-in-protein-translation-description-md/17005/27 (wording, active voice, tables, STOP codons) --- exercises/protein-translation/description.md | 28 +++++++------------- 1 file changed, 9 insertions(+), 19 deletions(-) diff --git a/exercises/protein-translation/description.md b/exercises/protein-translation/description.md index 2f7948d9e6..03d46d6fd6 100644 --- a/exercises/protein-translation/description.md +++ b/exercises/protein-translation/description.md @@ -2,29 +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, all translation ends and the protein is terminated. -All subsequent codons 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. From 49095047875afa31d87f0cd11afcc776b8454739 Mon Sep 17 00:00:00 2001 From: Kevin Bloch Date: Mon, 28 Apr 2025 14:45:22 +0200 Subject: [PATCH 3/4] Table fixes as recommended by linter CI check --- exercises/protein-translation/description.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/exercises/protein-translation/description.md b/exercises/protein-translation/description.md index 03d46d6fd6..4c317bbe3a 100644 --- a/exercises/protein-translation/description.md +++ b/exercises/protein-translation/description.md @@ -5,13 +5,13 @@ Translate RNA sequences into proteins. 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 | Three-letter codons | Amino acids | -|-------------|---------------------|-----------------------------------------| +| ----------- | ------------------- | --------------------------------------- | | "AUGUUUUCU" | "AUG", "UUU", "UCU" | "Methionine", "Phenylalanine", "Serine" | 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: | RNA | Three-letter codons | Amino acids | -|-------------------|-----------------------------------|-----------------------------------------| +| ----------------- | --------------------------------- | --------------------------------------- | | "AUGUUUUCUUAAAUG" | "AUG", "UUU", "UCU", "UAA", "AUG" | "Methionine", "Phenylalanine", "Serine" | (Note that the latter AUG is not translated into another methionine.) From 56e00b41b6e6e4bd646602e61aefe2152dec9eba Mon Sep 17 00:00:00 2001 From: Kevin Bloch Date: Fri, 9 May 2025 11:34:12 +0200 Subject: [PATCH 4/4] Change bracketed "Note:" to "In other words," and restore "64 codons" text. --- exercises/protein-translation/description.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/exercises/protein-translation/description.md b/exercises/protein-translation/description.md index 4c317bbe3a..7fb6c2e275 100644 --- a/exercises/protein-translation/description.md +++ b/exercises/protein-translation/description.md @@ -14,8 +14,9 @@ There are also three STOP codons. If you encounter any of these codons, ignore t | ----------------- | --------------------------------- | --------------------------------------- | | "AUGUUUUCUUAAAUG" | "AUG", "UUU", "UCU", "UAA", "AUG" | "Methionine", "Phenylalanine", "Serine" | -(Note that the latter AUG is not translated into another methionine.) +In other words, the latter AUG is not translated into another methionine here because it’s preceded by a STOP codon. +There are 64 codons which in turn correspond to 20 amino acids; however, not all codons will be used in this exercise. Below are the codons and resulting amino acids needed for the exercise. | Codon | Amino Acid |