mirror of
https://codeberg.org/andyscott/exercism.git
synced 2024-12-22 14:43:10 -05:00
61 lines
1.7 KiB
Markdown
61 lines
1.7 KiB
Markdown
|
# RNA Transcription
|
||
|
|
||
|
Welcome to RNA Transcription on Exercism's C Track.
|
||
|
If you need help running the tests or submitting your code, check out `HELP.md`.
|
||
|
|
||
|
## Introduction
|
||
|
|
||
|
You work for a bioengineering company that specializes in developing therapeutic solutions.
|
||
|
|
||
|
Your team has just been given a new project to develop a targeted therapy for a rare type of cancer.
|
||
|
|
||
|
~~~~exercism/note
|
||
|
It's all very complicated, but the basic idea is that sometimes people's bodies produce too much of a given protein.
|
||
|
That can cause all sorts of havoc.
|
||
|
|
||
|
But if you can create a very specific molecule (called a micro-RNA), it can prevent the protein from being produced.
|
||
|
|
||
|
This technique is called [RNA Interference][rnai].
|
||
|
|
||
|
[rnai]: https://admin.acceleratingscience.com/ask-a-scientist/what-is-rnai/
|
||
|
~~~~
|
||
|
|
||
|
## Instructions
|
||
|
|
||
|
Your task is determine the RNA complement of a given DNA sequence.
|
||
|
|
||
|
Both DNA and RNA strands are a sequence of nucleotides.
|
||
|
|
||
|
The four nucleotides found in DNA are adenine (**A**), cytosine (**C**), guanine (**G**) and thymine (**T**).
|
||
|
|
||
|
The four nucleotides found in RNA are adenine (**A**), cytosine (**C**), guanine (**G**) and uracil (**U**).
|
||
|
|
||
|
Given a DNA strand, its transcribed RNA strand is formed by replacing each nucleotide with its complement:
|
||
|
|
||
|
- `G` -> `C`
|
||
|
- `C` -> `G`
|
||
|
- `T` -> `A`
|
||
|
- `A` -> `U`
|
||
|
|
||
|
~~~~exercism/note
|
||
|
If you want to look at how the inputs and outputs are structured, take a look at the examples in the test suite.
|
||
|
~~~~
|
||
|
|
||
|
## Source
|
||
|
|
||
|
### Contributed to by
|
||
|
|
||
|
- @bcc32
|
||
|
- @Gamecock
|
||
|
- @gea-migration
|
||
|
- @h-3-0
|
||
|
- @patricksjackson
|
||
|
- @QLaille
|
||
|
- @RealBarrettBrown
|
||
|
- @ryanplusplus
|
||
|
- @sjwarner
|
||
|
- @wolf99
|
||
|
|
||
|
### Based on
|
||
|
|
||
|
Hyperphysics - https://web.archive.org/web/20220408112140/http://hyperphysics.phy-astr.gsu.edu/hbase/Organic/transcription.html
|