[Biopython] Formatting of the xml return from Entrez DB Gene is not parsed correctly
Peter
biopython at maubp.freeserve.co.uk
Fri Sep 11 09:34:53 UTC 2009
On Thu, Sep 10, 2009 at 10:47 PM, Michael S. Koeris
<michael.koeris at gmail.com> wrote:
> Hi,
>
> I am trying to parse out the nucleic acid accession numbers from an
> Entrez.efetch query made to the Gene database. For some reason the parser
> does not create a dictionary when I call handle.read on it, even when I
> force the query to return xml. It just generates a string.
Can you give us a tiny example script? Just fill in the missing bit here ;)
from Bio import Entrez
handle = Entrez.efetch(...)
record = Entrez.read(handle)
print record
Peter
More information about the Biopython
mailing list