Exercise 4.5

From Earlham CS Department
Revision as of 22:01, 21 September 2009 by Erika (talk | contribs) (New page: Return to Week 1 <b>Exercise 4.5 in <i>Beginning Perl for Bioinformatics</i></b> <br><br> <nowiki>#!/usr/bin/perl -w use strict;</nowiki> <nowiki> #Erika Phelps #Sept. 21, 2009 #Exerc...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Return to Week 1

Exercise 4.5 in Beginning Perl for Bioinformatics

#!/usr/bin/perl -w use strict; #Erika Phelps #Sept. 21, 2009 #Exercise 4-5

  1. Sometimes information flows from RNA -> DNA. Write a program to reverse
  2. transcribe RNA to DNA.
  1. The RNA

my $RNA = 'AGUCAGUCCUGACUGA';

print "\nHere is the starting RNA:\n\n$RNA.\n\n";

  1. Reverse transcribe into DNA

my $DNA = $RNA;

   $DNA =~ s/U/T/g;
  1. Print the DNA to the screen

print "Here is the result of reverse transcribing RNA to DNA:\n\n";

print "$DNA.\n\n";

exit;