Created
March 31, 2015 08:53
-
-
Save amacgregor/b675720870c1572d3914 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Rna Transcription | |
Write a program that, given a DNA strand, returns its RNA complement (per RNA transcription). | |
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` | |
## Making the Test Suite Pass | |
1. Get [PHPUnit]. | |
% wget --no-check-certificate https://phar.phpunit.de/phpunit.phar | |
% chmod +x phpunit.phar | |
2. Execute the tests for an assignment. | |
% phpunit.phar wordy/wordy_test.php | |
[PHPUnit]: http://phpunit.de | |
## Source | |
Rosalind [view source](http://rosalind.info/problems/rna) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment