Coder Social home page Coder Social logo

Comments (3)

khoivan88 avatar khoivan88 commented on August 27, 2024

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:
Annotation 2020-08-26 193411

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.

ffzffz08 avatar ffzffz08 commented on August 27, 2024

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:
Annotation 2020-08-26 193411

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.

khoivan88 avatar khoivan88 commented on August 27, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.