cokelaer / bioservices

Access to Biological Web Services from Python.
http://bioservices.readthedocs.io
Other
278 stars 60 forks source link

UniChem example from docs fails #253

Open prismofeverything opened 1 year ago

prismofeverything commented 1 year ago

Hello! Just trying to run through some examples, I get an error for the following snippet from the docs using the latest version of bioservices (1.11.2): https://buildmedia.readthedocs.org/media/pdf/bioservices/latest/bioservices.pdf

>>> from bioservices import UniChem
>>> uni = UniChem()
>>> mapping = uni.get_mapping("kegg_ligand", "chembl")

I get the following stacktrace:

AttributeError: 'UniChem' object has no attribute 'get_mapping'

Any thoughts? Seems like a simple call.... thanks!

cokelaer commented 1 year ago

dear @prismofeverything,

In 2022, the UniChem API changed. Unfortunately the get_mapping service was dropped by UniChem and therefore is not available anymore. I will update the documentation.