Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: DNA Reverse Complement

by jkahn (Friar)
on Sep 14, 2002 at 05:12 UTC ( #197795=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub revdnacomp {
      # my $dna = @_;  
    ...
      $revcomp =~ tr/ACGTacgt/TGCAtgca/;
      return $revcomp;
    }
    
  2. or download this
    sub revcompl { # operates on all elements passed in
      my (@dna) = @_;
    ...
      }
      return @done; # or reverse @done;  # what's best semantics?
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://197795]
help
Chatterbox?
[Lady_Aleena]: choroba, the tables in that group of modules is from the World Builder's Guidebook, so I thought it best to add the name of the book to the name of the module.
[choroba]: oh, I see
[Lady_Aleena]: There is the RolePlaying:: WorldBuilding:: WorldBuildersGuide book suite and the RolePlaying:: WorldBuilding:: HighLevelCampaigns suite.

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (9)
As of 2017-05-24 22:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?