Skip to content

meo84/ruby-rna-transcription

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ruby: 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

The tests use the Minitest testing framework. To install it run the command:

gem install minitest

Run the tests with the ruby command:

ruby rna_transcription_test.rb

Resources

If you have never used Minitest, check out Intro to TDD tutorial from Jumpstart Lab.

Source

Rosalind http://rosalind.info/problems/rna

This exercise is from the Ruby track on Exercism

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages