Skip to content

Instantly share code, notes, and snippets.

@aschreyer
Created February 26, 2013 12:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aschreyer/5037974 to your computer and use it in GitHub Desktop.
Save aschreyer/5037974 to your computer and use it in GitHub Desktop.
USRCAT search with one of the OSDD Malaria compounds, OSM-S-35. The SMILES strings were obtained by using chemicalize.org on the relevant OSDD blog post. Two stereoisomers were found for OSM-S-35 and a conformer generated for each with OpenEye's OMEGA toolkit.
import requests
headers = {'accept': 'application/json'}
files = {'file': open('/home/adrian/Dropbox/OSM-S-35-I.sdf')}
response = requests.post('http://marid.bioc.cam.ac.uk/credo/chemcomps/sim/usr/',
headers=headers, files=files, params={'usrcat':'t', 'limit':25})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment