[Bioperl-l] How to read in the whole fasta file in the memory?
sdavis2 at mail.nih.gov
Wed Dec 30 13:04:53 EST 2009
On Wed, Dec 30, 2009 at 12:26 PM, Peng Yu <pengyu.ut at gmail.com> wrote:
> With Bio::SeqIO, I can only read in the records in a fasta file one by
> one. This is preferable if there are many records in a file.
> But I also want to read all the records in. I could use a while loop
> to read all records in. But could somebody let me know if there is a
> function in bioperl that can read in all the record at once and return
> me an object?
In perl, you can use an array to store the records. You could also
use a hash if you have reasonable keys for the entries.
> Bioperl-l mailing list
> Bioperl-l at lists.open-bio.org
More information about the Bioperl-l