Question: SDF data from pubchem database by entering SID or CID of molecule
0
gravatar for Sabine
2.3 years ago by
Sabine60
India
Sabine60 wrote:

Hi All, I want to download the SDF file data for a list of pubchem compounds. I have SID, CID information of all of the molecules. It will be difficult to retrieve the SDF one by one for all of these compounds. Is there any tools/softwares to collect the SDF data by entering these SID or CID? Thank you for suggestion

ADD COMMENTlink modified 2.3 years ago by mgab50 • written 2.3 years ago by Sabine60
1
gravatar for Gungor Budak
2.3 years ago by
Gungor Budak230
Ankara/Turkey
Gungor Budak230 wrote:

You can use PubChemPy Python wrapper for PUG REST API:

import pubchempy as pcp
pcp.download('SDF', '5090.sdf', 5090, 'cid')

So above code downloads an SDF file for compound with CID 5090.

ADD COMMENTlink modified 2.3 years ago • written 2.3 years ago by Gungor Budak230

Thank you. i will work on it

ADD REPLYlink written 2.3 years ago by Sabine60
1
gravatar for mgab
2.3 years ago by
mgab50
Germany
mgab50 wrote:

I have tried using SID but it is not working, that is

pcp.download('SDF', '134310260.sdf', 134310260, 'sid')
ADD COMMENTlink written 2.3 years ago by mgab50
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 838 users visited in the last hour