From 1bee6bcc0667e6df281b6040205ed4a12f99d46b Mon Sep 17 00:00:00 2001 From: Kevin Bloch Date: Sat, 7 Jun 2025 15:28:03 +0200 Subject: [PATCH 1/8] Rewrite per discussion at http://forum.exercism.org/t/tweak-language-and-formatting-in-protein-translation-description-md/17005/72 --- exercises/protein-translation/description.md | 49 +++++++------------- 1 file changed, 17 insertions(+), 32 deletions(-) diff --git a/exercises/protein-translation/description.md b/exercises/protein-translation/description.md index dc9209269c..75358403fb 100644 --- a/exercises/protein-translation/description.md +++ b/exercises/protein-translation/description.md @@ -1,44 +1,29 @@ # Description -Translate RNA sequences into proteins. +Your job is to translate RNA sequences into proteins. -RNA can be broken into three-nucleotide sequences called codons, and then translated to a protein like so: +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. -RNA: `"AUGUUUUCU"` => translates to +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: -Codons: `"AUG", "UUU", "UCU"` -=> which become a protein with the following sequence => +|Codon|Amino Acid| +| --- | --- | +|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| -Protein: `"Methionine", "Phenylalanine", "Serine"` +For example, the RNA string “AUGUUUUCU” has three codons: “AUG”, “UUU” and “UCU”. These map to Methionine, Phenylalanine, and 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. +### “STOP” Codons -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. +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. -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 | Amino Acid | -| :----------------- | :------------ | -| 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 | +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”). Learn more about [protein translation on Wikipedia][protein-translation]. From 8f404e0284657bfc07ce3b5c764adda394139b0d Mon Sep 17 00:00:00 2001 From: Kevin Bloch Date: Sat, 7 Jun 2025 15:32:20 +0200 Subject: [PATCH 2/8] Fix linter error ("Heading levels should only increment by one level at a time") --- exercises/protein-translation/description.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exercises/protein-translation/description.md b/exercises/protein-translation/description.md index 75358403fb..a629e5cfe8 100644 --- a/exercises/protein-translation/description.md +++ b/exercises/protein-translation/description.md @@ -19,7 +19,7 @@ In the real world, there are 64 codons, which in turn correspond to 20 amino aci For example, the RNA string “AUGUUUUCU” has three codons: “AUG”, “UUU” and “UCU”. These map to Methionine, Phenylalanine, and Serine. -### “STOP” Codons +## “STOP” Codons 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. From f4caab32b8a8e8d9f4cf97631800248787e122a7 Mon Sep 17 00:00:00 2001 From: Kevin Bloch Date: Sat, 7 Jun 2025 15:34:10 +0200 Subject: [PATCH 3/8] Fix linter error (table formatting standardization) --- exercises/protein-translation/description.md | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/exercises/protein-translation/description.md b/exercises/protein-translation/description.md index a629e5cfe8..a573fa1de4 100644 --- a/exercises/protein-translation/description.md +++ b/exercises/protein-translation/description.md @@ -6,16 +6,16 @@ RNA strands are made up of three-nucleotide sequences called **codons**. Each co 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: -|Codon|Amino Acid| -| --- | --- | -|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| +| Codon | Amino Acid | +| ------------------ | ------------- | +| 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 | For example, the RNA string “AUGUUUUCU” has three codons: “AUG”, “UUU” and “UCU”. These map to Methionine, Phenylalanine, and Serine. From 24bf5fa1f40911875ab10e00b7a538d8faa2fac0 Mon Sep 17 00:00:00 2001 From: Kevin Bloch Date: Sat, 14 Jun 2025 12:19:52 +0200 Subject: [PATCH 4/8] One sentence per line in exercises/protein-translation/description.md Co-authored-by: Erik Schierboom --- 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 a573fa1de4..22a8d4dae0 100644 --- a/exercises/protein-translation/description.md +++ b/exercises/protein-translation/description.md @@ -21,7 +21,8 @@ For example, the RNA string “AUGUUUUCU” has three codons: “AUG”, “UUU ## “STOP” Codons -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. +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. 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”). From b164d0353cd77cadaae861f468285934256845ae Mon Sep 17 00:00:00 2001 From: Kevin Bloch Date: Sat, 14 Jun 2025 12:20:08 +0200 Subject: [PATCH 5/8] One sentence per line in exercises/protein-translation/description.md Co-authored-by: Erik Schierboom --- exercises/protein-translation/description.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/exercises/protein-translation/description.md b/exercises/protein-translation/description.md index 22a8d4dae0..89f0e1bd88 100644 --- a/exercises/protein-translation/description.md +++ b/exercises/protein-translation/description.md @@ -24,7 +24,9 @@ For example, the RNA string “AUGUUUUCU” has three codons: “AUG”, “UUU 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. -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”). +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”). Learn more about [protein translation on Wikipedia][protein-translation]. From ef749763007c900dc01d17eb69ea390f46f81ebf Mon Sep 17 00:00:00 2001 From: Kevin Bloch Date: Sat, 14 Jun 2025 12:20:18 +0200 Subject: [PATCH 6/8] One sentence per line in exercises/protein-translation/description.md Co-authored-by: Erik Schierboom --- 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 89f0e1bd88..0987652135 100644 --- a/exercises/protein-translation/description.md +++ b/exercises/protein-translation/description.md @@ -17,7 +17,8 @@ In the real world, there are 64 codons, which in turn correspond to 20 amino aci | UGG | Tryptophan | | UAA, UAG, UGA | STOP | -For example, the RNA string “AUGUUUUCU” has three codons: “AUG”, “UUU” and “UCU”. These map to Methionine, Phenylalanine, and Serine. +For example, the RNA string “AUGUUUUCU” has three codons: “AUG”, “UUU” and “UCU”. +These map to Methionine, Phenylalanine, and Serine. ## “STOP” Codons From 581cf3ad3d3a4dc85186cdcf535bb31dc5b70e6a Mon Sep 17 00:00:00 2001 From: Kevin Bloch Date: Sat, 14 Jun 2025 12:20:34 +0200 Subject: [PATCH 7/8] One sentence per line in exercises/protein-translation/description.md Co-authored-by: Erik Schierboom --- exercises/protein-translation/description.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/exercises/protein-translation/description.md b/exercises/protein-translation/description.md index 0987652135..04e2af2521 100644 --- a/exercises/protein-translation/description.md +++ b/exercises/protein-translation/description.md @@ -2,7 +2,9 @@ Your job is to translate RNA sequences into proteins. -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. +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. 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: From ec3e02fa3b4bd1bc8c2004fafdfcbf2947c478a5 Mon Sep 17 00:00:00 2001 From: Kevin Bloch Date: Sat, 14 Jun 2025 12:20:42 +0200 Subject: [PATCH 8/8] One sentence per line in exercises/protein-translation/description.md Co-authored-by: Erik Schierboom --- exercises/protein-translation/description.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/exercises/protein-translation/description.md b/exercises/protein-translation/description.md index 04e2af2521..4f79794b40 100644 --- a/exercises/protein-translation/description.md +++ b/exercises/protein-translation/description.md @@ -6,7 +6,9 @@ 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. -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: +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: | Codon | Amino Acid | | ------------------ | ------------- |