[Bioperl-l] SearchIO speed up
cjfields at uiuc.edu
Thu Aug 10 21:32:01 EDT 2006
I took a quick gander at the SwissKnife code; very nice, but quite long:
Perl6 uses parsing expression grammers and rules, so you could build up your
own custom grammers for parsing files. That would come in very handy here.
Don't know how much of this is implemented or available in Pugs but I may
give it a try sometime.
> -----Original Message-----
> From: bioperl-l-bounces at lists.open-bio.org [mailto:bioperl-l-
> bounces at lists.open-bio.org] On Behalf Of Torsten Seemann
> Sent: Thursday, August 10, 2006 6:46 PM
> To: bioperl-l at bioperl.org
> Subject: Re: [Bioperl-l] SearchIO speed up
> > So the only lazyness you invoke is the object instantiation (but you've
> > already done all the parsing).
> > My proposal involves the "chunks" being unparsed, raw text "blobs", that
> > are essentially blessed into a package that does the parsing only when
> > necessary (and even then, might choose different parsing strategies,
> > on what's been asked for). Thus a potentially large amount of parsing
> > storage is skipped. Additionally, you now have the option of not even
> > storing the blobs in memory, just file seek pointers (requiring temp.
> > storage for streaming pipe data sources), and thus can process very
> > reports without consuming memory (currently a problem).
> This approach is an excellent one, but not all file formats lend
> themselves to
> it. BLAST results have a semantically hierarchial layout, and the BLAST
> report syntax matches that layout, so the approach is well suited.
> BLAST reports are pretty similar too. ie. most of the data for a low-level
> object is encapsulated within a certain part of the input file.
> However, this may not be true for other formats, perhaps HMMER reports,
> "HSP"-related info may be spread across multiple sections of the file.
> But of course, this doesn't prevent us using the approach where suitable,
> using the "slow" method otherwise.
> Torsten Seemann
> Victorian Bioinformatics Consortium, Monash University, Australia
> Bioperl-l mailing list
> Bioperl-l at lists.open-bio.org
More information about the Bioperl-l