http://www.perlmonks.org?node_id=1204590


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.