Skip to content

Instantly share code, notes, and snippets.

Created March 4, 2015 12:39
Show Gist options
  • Save anonymous/7b45d73822699e300c7b to your computer and use it in GitHub Desktop.
Save anonymous/7b45d73822699e300c7b to your computer and use it in GitHub Desktop.
get compound weights
from chembl_webresource_client.new_client import new_client
molecules = new_client.molecule
clean_mols = molecules.filter(molecule_properties__full_mwt__isnull=False)
len(clean_mols)
weights = [x['molecule_properties']['full_mwt'] for x in clean_mols[0:1000]]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment