Skip to content

Instantly share code, notes, and snippets.

@mnowotka
Created April 23, 2014 12:41
Show Gist options
  • Save mnowotka/11213720 to your computer and use it in GitHub Desktop.
Save mnowotka/11213720 to your computer and use it in GitHub Desktop.
from bioservices import *
s = ChEMBLdb(verbose=False)
res = []
for i in range(1,1001):
try:
res.append(s.get_compounds_by_chemblId('CHEMBL%s' % i))
except:
res.append(404)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment