[BioPython] problem with GenBank.NCBIDictionary ?

Catherine Letondal letondal@pasteur.fr
Wed, 15 May 2002 11:02:24 +0200


Hi,

I get an error when trying to use GenBank.NCBIDictionary:

from Bio import GenBank
gb_dict = GenBank.NCBIDictionary(parser=GenBank.RecordParser())
gb_rec = gb_dict['X98475']

Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "/local/lib/python2.2/site-packages/Bio/GenBank/__init__.py", line 1552, in __getitem__
    raise KeyError, "I unexpectedly got back html-formatted data."
KeyError: I unexpectedly got back html-formatted data.

Is my code incorrect?

I have manually tried to open an NCBI query:
from Bio.WWW import NCBI
query=NCBI.query('Text', 'Nucleotide', opt='GenBank', uid='X98475')

...and what I get is the following:
http://www-alt.pasteur.fr/~letondal/tmp/ncbi_result.html
Error handling request: NStr::StringToInt(): cannot convert

Can someone explain??

Thanks!

-- 
Catherine Letondal -- Pasteur Institute Computing Center