[Biopython] Retrieving fasta seqs

Peter biopython at maubp.freeserve.co.uk
Tue Feb 2 15:43:38 UTC 2010


On Tue, Feb 2, 2010 at 3:30 PM, Kevin Lam <aboulia at gmail.com> wrote:
> Traceback (most recent call last):
>  File "test.py", line 22, in ?
>    ids.add(recordf3)
> # Then add each line to .ids.
> MemoryError

OK, so it fails way before you do anything with Biopython - the
problem is simply building a very large set of strings in memory.
You could try using a list instead of a set (trivial code change),
which I would expect to use less memory but run slower.

Peter




More information about the Biopython mailing list