[BioPython] Problems parsing proteins

Bonis Sanz, Julio JBonis at imim.es
Thu May 6 05:12:19 EDT 2004


Hi all!, 

I am trying to get some info about proteins from NCBI. This is a very simple
example:

#######################
from Bio import GenBank
rParser = GenBank.FeatureParser()
rDict = GenBank.NCBIDictionary(database='proteins'),parser = rParser)
rDict[4503383]
#######################

but it returns this error:

Traceback (most recent call last):
  File "<interactive input>", line 1, in ?
  File "c:\apache2\python\Lib\site-packages\Bio\GenBank\__init__.py", line
1574, in __getitem__
    raise KeyError, "I unexpectedly got back html-formatted data."
KeyError: I unexpectedly got back html-formatted data.


I can not find a solution, maybe NCBI has change its formats?... 

If somebody can help!!!!!

Julio Bonis Sanz MD
http://www.juliobonis.com/portal/

Biomedical Informatics Laboratory
Group of Research in Biomedical Informatics (GRIB) http://www.imim.es/grib/
Municipal Institute of Medical Research (IMIM) http://www.imim.es/
Barcelona - Spain


More information about the BioPython mailing list