[Biopython-dev] [Bug 2468] Tutorial needs a fix: Bio.WWW.NCBI
bugzilla-daemon at portal.open-bio.org
bugzilla-daemon at portal.open-bio.org
Sun Jun 15 07:03:18 UTC 2008
http://bugzilla.open-bio.org/show_bug.cgi?id=2468
mdehoon at ims.u-tokyo.ac.jp changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
------- Comment #6 from mdehoon at ims.u-tokyo.ac.jp 2008-06-15 03:03 EST -------
I created a subsection Examples to the tutorial chapter on Bio.Entrez, and
added
the example from section 2.5 and Martin's taxonomy example to it. With the
Bio.Entrez currently in CVS, finding the lineage works as follows:
>>> handle = Entrez.esearch(db="Taxonomy", term="Cypripedioideae")
>>> record = Entrez.read(handle)
>>> record["IdList"]
['158330']
>>> handle = Entrez.efetch(db="Taxonomy", id="158330", retmode='xml')
>>> records = Entrez.read(handle)
>>> records[0]['Lineage']
'cellular organisms; Eukaryota; Viridiplantae; Streptophyta; Streptophytina;
Embryophyta; Tracheophyta; Euphyllophyta; Spermatophyta; Magnoliophyta;
Liliopsida; Asparagales; Orchidaceae'
--
Configure bugmail: http://bugzilla.open-bio.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the Biopython-dev
mailing list