cokelaer / bioservices

Access to Biological Web Services from Python.

Home Page:http://bioservices.readthedocs.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

UniChem example from docs fails

prismofeverything opened this issue · comments

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!

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.