Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: how can I speed up this perl??

by Roy Johnson (Monsignor)
on Nov 24, 2003 at 15:57 UTC ( [id://309561]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    if (($genome[$i] eq 'a') && ($genome[$i+1] eq 'a'))    { ++$tt; }
             elsif (($genome[$i] eq 'a') && ($genome[$i+1] eq 'g')) { ++$a
    +g; }
    ...
             elsif (($genome[$i] eq 't') && ($genome[$i+1] eq 'g')) { ++$t
    +g; }
             elsif (($genome[$i] eq 't') && ($genome[$i+1] eq 'c')) { ++$g
    +a; }
             elsif (($genome[$i] eq 't') && ($genome[$i+1] eq 't')) { ++$t
    +t; }
    
  2. or download this
    if ($genome[$i] eq 'a') {
        if    ($genome[$i+1] eq 'a') { ++$tt; }
    ...
        elsif ($genome[$i+1] eq 'g') { ++$tg; }
        elsif ($genome[$i+1] eq 'c') { ++$ga; }
        elsif ($genome[$i+1] eq 't') { ++$tt; }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://309561]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (6)
As of 2024-03-28 08:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found