mcs07 / PubChemPy

Python wrapper for the PubChem PUG REST API.
http://pubchempy.readthedocs.io
MIT License
379 stars 106 forks source link

Retrieving MoA (mechanism of action) #38

Open phosseini opened 5 years ago

phosseini commented 5 years ago

I'm looking for a method to give me the MoA (mechanism of action) of compounds. I could not find such a method in your API. I also downloaded the XML files of compounds both using your download method and directly from the FTP server and couldn't find the MoA information (I haven't looked at the ASN1 files yet though.)

I wonder if there's any method in pubchempy which can give me the MoA of compounds, if available.

[UPDATE] I just realized I can programmatically get the MoA information by sending a request like: https://pubchem.ncbi.nlm.nih.gov/rest/pug_view/data/compound/2519/JSON?heading=Mechanism+of+Action for a compound with cid 2519. But still wondering if I can get such information using the PubChemPy?

khoivan88 commented 4 years ago

@phosseini : I don't believe pug_view is included in the PubChemPy library yet based on @mcs07 tweet here. So, no I don't think you can get the MoA from PubChemPy yet, or at least until @mcs07 include pug_view.