[BioPython] Adding new database types to EUtils

Luca Beltrame luca.beltrame at unimi.it
Tue Dec 4 10:19:42 UTC 2007


Hello. 
I've been trying to use EUtils to do run some queries through NCBI, but 
apparently GEO isn't present in the database list defined by EUtils:

In [8]: EUtils.databases
Out[8]:
{'gene': <Bio.EUtils.Config.DatabaseInfo instance at 0x8422ecc>,
 'genome': <Bio.EUtils.Config.DatabaseInfo instance at 0x8422e0c>,
 'journals': <Bio.EUtils.Config.DatabaseInfo instance at 0x8422dec>,
 'nucleotide': <Bio.EUtils.Config.DatabaseInfo instance at 0x8422e2c>,
 'omim': <Bio.EUtils.Config.DatabaseInfo instance at 0x8422dcc>,
 'popset': <Bio.EUtils.Config.DatabaseInfo instance at 0x8422e6c>,
 'protein': <Bio.EUtils.Config.DatabaseInfo instance at 0x8422e4c>,
 'pubmed': <Bio.EUtils.Config.DatabaseInfo instance at 0x8422dac>,
 'sequences': <Bio.EUtils.Config.DatabaseInfo instance at 0x8422e8c>,
 'unigene': <Bio.EUtils.Config.DatabaseInfo instance at 0x8422eac>}

Therefore queries using the DBIdsClient method search() trying to use GEO, 
such as this one:

from Bio.EUtils import DBIdsClient
client = DBIdsClient.DBIdsClient()
test_search = client.search("GSE4830",db="geo")

will fail with KeyError (because it's not defined).

How can I extend EUtils.databases to add support for GEO? I've looked a bit at 
the class definitions in the API, and I'm not sure on how to proceed. Any 
hints would be greatly appreciated.

Thanks.

-- 
Luca Beltrame, MSc. - Molecular Medicine PhD Student
Dipartimento di Scienze e Tecnologie Biomediche - UniMI
CNR - Institute of Biomedical Technologies Research Fellow
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.open-bio.org/pipermail/biopython/attachments/20071204/fa18da1a/attachment.sig>


More information about the Biopython mailing list