[Biopython] changing record attributes while iterating

Peter Cock p.j.a.cock at googlemail.com
Fri Oct 7 07:22:49 UTC 2011


On Friday, October 7, 2011, Michalwrote:
> Hello,
> Does your code with generator save the whole file in the
> memory or does it read each entry and save it immediately?
> Thank you in advance.

Using a generator expression like that only one SeqRecord is in memory at a
time. It goes through the input FASTA one record at a time, renames it,
saves it immediately.

Peter

P.S. list CC'd



More information about the Biopython mailing list