Comments (3)
Hi, if you look a bit closer on pubchem, you will find out that your compound is a hydrochloride salt and the 3D structure is not of the salt but the free base (CID 139856)
Screenshot here:
If you want to dig a little deeper, pubchempy.get_compounds('13985','cid',record_type = '3d')
is just an just a call to this URL: (https://pubchem.ncbi.nlm.nih.gov/rest/pug/compound/cid/13985/JSON?record_type=3d). If you browse that URL using your favorite browser, you would get a 'no record found').
I hope this helps!
from pubchempy.
Hi, if you look a bit closer on pubchem, you will find out that your compound is a hydrochloride salt and the 3D structure is not of the salt but the free base (CID 139856)
Screenshot here:
If you want to dig a little deeper,
pubchempy.get_compounds('13985','cid',record_type = '3d')
is just an just a call to this URL: (https://pubchem.ncbi.nlm.nih.gov/rest/pug/compound/cid/13985/JSON?record_type=3d). If you browse that URL using your favorite browser, you would get a 'no record found').I hope this helps!
Hi:
Thanks a lot! That answers my question - not only about this very molecule but about all others. I did have a vague impression that those 'should have 3D structures but could not be located by Pubchempy' molecules are salts.
I was also reading your answer for another post (you are really contributing a lot to the community - thanks! ). Pubchem mark the relationship between the salt and its free base as 'parent compound'. Since you were able to retrive pKa using your script, I could probably modify that code (with your permission of course) and retrive the parent compound as well.
from pubchempy.
Hi @ffzffz08 ,
Thank you very much for your kind words. I am glad that some would find my answers helpful :) .
And yes, please modify my code any way you want, I believe I have at least MIT license on there so you can modify it anyway you desire. I have not use pubchempy to retrieve 'parent' compound before but I think you would figure it out one way or another :)
Best of luck and let us know if you have any questions :D!
from pubchempy.
Related Issues (20)
- pubchempy missing results available on the pubchem web page HOT 2
- Using the search bar
- Errors in the encoding of some bits HOT 1
- Is it possible to calculate the PMI of the compounds?
- Is it possible to get 3D coordinates of ligand using CID or SID? HOT 1
- Is it possible to list the position of each functional group (atom number of key atom) in iupac name?
- obtaining compounds by property
- Timeout
- obtaining CCS values
- Assay.from_aid().to_dict() fails for multiple AIDs
- Minor python syntax problem
- Obtaining hazard classes and categories
- Certain compounds cannot be retrieved by name anymore
- Can not generate SMILES of compounds from known CAS numbers HOT 4
- Neither NAMES nor CAS hyphened numbers, verified on PubChem, seem to retrieve many compounds' SMILES
- Get compounds function is too slow HOT 9
- Ask for help about how to find Pubchem CID of many compounds by CAS numbers HOT 3
- Inconsistencies in Isomeric SMILES Data Retrieval Using PubChemPy Compared to Previous Data
- Questions about "Chemical and Physical Properties"
- SSLCertVerificationError while running the simplest of PubChemPy examples
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pubchempy.