Created
March 4, 2015 12:39
-
-
Save anonymous/7b45d73822699e300c7b to your computer and use it in GitHub Desktop.
get compound weights
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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