[BioPython] biopython tutorial

Michiel de Hoon mjldehoon at yahoo.com
Wed Aug 6 00:42:53 UTC 2008




--- On Tue, 8/5/08, Peter <peter at maubp.freeserve.co.uk> wrote:
> > 2.
> > record[0]["GBSeq_definition"]
> > 'Opuntia subulata rpl16 gene, intron;
> chloroplast'
> >
> > ...should be (AFAICT):
> 
> Something strange is going on - the NCBI didn't give me
> XML by default
> as I expected:
> 
> from Bio import Entrez
> handle = Entrez.efetch(db="nucleotide",
> id="57240072",
> email="A.N.Other at example.com")
> data = handle.read()
> print data[:100]
> 
> It looks like the NCBI may have changed something -
> Michiel?
In this example, retmode='xml' was missing for the current efetch.
With retmode='xml', the rest of the example in the Tutorial works correctly. Confusingly, if you use rettype='xml' you will get a different XML output (this is the XML output Nick was looking at).

I fixed this section in CVS.

--Michiel


      



More information about the Biopython mailing list