Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: how to make this code more efficient? Need to Compute the Min and Max of a Temperature using an equation

by almut (Canon)
on Apr 19, 2010 at 19:19 UTC ( [id://835575]=note: print w/replies, xml ) Need Help??


in reply to how to make this code more efficient? Need to Compute the Min and Max of a Temperature using an equation

while (my $uniqueseq = $stream->next_seq()) { push @oligomers, $uniqueseq->seq; }

Instead of expanding all possible combinations into an array that you then iterate over, why not directly call tm_Base_Stacking(...) (or tm_NNH() for that matter(?)) in that loop?

That should at least get rid of the memory problem (unless the Bio::Tools::IUPAC iterator internally pre-expands the set itself), although the runtime problem would likely still persist...

  • Comment on Re: how to make this code more efficient? Need to Compute the Min and Max of a Temperature using an equation
  • Select or Download Code

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (2)
As of 2026-02-09 09:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.