Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^2: A more efficient sort or heap algorithm...

by bioinformatics (Friar)
on Apr 28, 2009 at 22:55 UTC ( [id://760778]=note: print w/replies, xml ) Need Help??


in reply to Re: A more efficient sort or heap algorithm...
in thread A more efficient sort or heap algorithm...

Your advice is fantastic as per usual. The array of arrays does make a lot more sense, suggestion #3 makes even more than the current stuff. I'll try both to get a better feel how each performs, and try and be a little more clever next time. Thanks :).
Bioinformatics
  • Comment on Re^2: A more efficient sort or heap algorithm...

Replies are listed 'Best First'.
Re^3: A more efficient sort or heap algorithm...
by stajich (Chaplain) on Jul 19, 2009 at 01:53 UTC
    You could also take a look at how GFF files are stored in Bio::DB::GFF or Bio::DB::SeqFeature::Store which use RDMS to handle these types of range queries (mysql,postgres, sqlite) and an in-memory berkeleydb implementation. The get_features_by_location is basically what you'd want to use for your problem.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (5)
As of 2024-04-24 00:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found