[Biopython] Entrez.efetch bug?

Morten Kjeldgaard mok at bioxray.dk
Thu Apr 15 15:15:01 UTC 2010


Hi,

I am getting an error with Entrez.efetch() with Biopython version 1.51. This
is my handle:

handle = Entrez.efetch(db='protein', id='114391',rettype='gp')

When I subsequently do this:

 record = Entrez.read(handle)

I get a syntax error from Expat:

ExpatError: syntax error: line 1, column 0

However, if I do the following, it works:

record = handle.read()

but then I need to parse the resulting record using the Genbank parser,
which is a nuisance since I normally should get this for free from the
Entrez module.

Comments, anyone?


-- Morten



More information about the Biopython mailing list