SDF data from pubchem database by entering SID or CID of molecule
2
0
Entering edit mode
7.8 years ago
Sabine ▴ 70

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

Pubchem SDF file of molecule SDF from Pubchem • 5.4k views
ADD COMMENT
1
Entering edit mode
7.8 years ago
Gungor Budak ▴ 270

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 COMMENT
0
Entering edit mode

Thank you. i will work on it

ADD REPLY
1
Entering edit mode
7.8 years ago
mgab ▴ 60

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

pcp.download('SDF', '134310260.sdf', 134310260, 'sid')
ADD COMMENT

Login before adding your answer.

Traffic: 1600 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6