Question: Download Pubchem Chemical Compunds fingerprint
gravatar for emanismail.92
9 months ago by
emanismail.920 wrote:

I want to download fingerprint of pubchem compound with CID I used the Pubchem api:

but I have a huge list that I need its corresponding fingerprint Is there any way to download as bulk or any way to speed up retrieving data ?

fingerprint pubchem • 608 views
ADD COMMENTlink modified 9 months ago by h.mon24k • written 9 months ago by emanismail.920

Hello emanismail.92!

It appears that your post has been cross-posted to another site:

This is typically not recommended as it runs the risk of annoying people in both communities.

ADD REPLYlink written 9 months ago by h.mon24k
gravatar for h.mon
9 months ago by
h.mon24k wrote:

Not elegant, but works:

cat CIDs.txt | \
while read CID; do
    curl -L${CID}/property/Fingerprint2D/xml -o ${CID}.xml

Where CIDs.txt is a file with the CIDs of interest, one per line.

edit: pay attention to NCBI limits:

Request Volume Limitations

All PubChem web pages (or requests to NCBI in general) have a policy that users should throttle their web page requests, which includes web-based programmatic services. Violation of usage policies may result in the user being temporarily blocked from accessing PubChem (or NCBI) resources. The current request volume limits are:

No more than 5 requests per second.

No more than 400 requests per minute.

No longer than 300 second running time per minute.

ADD COMMENTlink modified 9 months ago • written 9 months ago by h.mon24k
Please log in to add an answer.


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