Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Loading only portions of a file at any given time

by 1nickt (Monsignor)
on Nov 30, 2017 at 13:38 UTC ( #1204590=note: print w/replies, xml ) Need Help??


in reply to Loading only portions of a file at any given time

Hi, if you won't know which header section you need until you start parsing the second file, I'd think you'd have a hard time doing what you want efficiently on the fly. Can you simply break your FASTA file into separate files in advance, one per header?


The way forward always starts with a minimal test.
  • Comment on Re: Loading only portions of a file at any given time

Replies are listed 'Best First'.
Re^2: Loading only portions of a file at any given time
by TJCooper (Beadle) on Nov 30, 2017 at 13:43 UTC
    Indeed, I found that to be the main issue when trying to think of a way to do this. I could definitely split the FASTA file beforehand, although I try to minimise the amount of steps required to run a script hence the question! Thanks for your input.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1204590]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (7)
As of 2018-04-27 08:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?