QED calculation on RDKit 2017.09 #RDKit

QED (quantitative estimate of drug-likeness ) is an one of score of drug likeness reported by Hopkins group.
https://www.ncbi.nlm.nih.gov/pubmed/22270643

The author provided QED calculator for pipeline pilot. So QED could not calculate without pipeline pilot.
But, now we can calculate QED by using RDKit!
RDKit 201709 was implemented QED descriptor. Seems good, let’s use the function.
It is very simple. Just call qed!. I used dataset the same as yesterday.

import os
from rdkit.Chem import rdBase, RDConfig
from rdkit import Chem
from rdkit.Chem import PandasTools
from rdkit.Chem.Draw import IPythonConsole
from rdkit.Chem.Descriptors import qed
print( rdBase.rdkitVersion )

sdfpath = os.path.join( RDConfig.RDDocsDir, "Book/data/cdk2.sdf" )
mols = [ m for m in Chem.SDMolSupplier( sdfpath ) if m != None ]
df = PandasTools.LoadSDF( sdfpath )
print( len( mols ))

df.head( 2 )

df[ "QED" ] =  df.ROMol.apply( qed )
df.head(2 )

from rdkit.Chem import QED
for mol in mols:
    print( QED.properties( mol ) )

It is easy isn’t it ?
I pushed sample code to my repository.
https://github.com/iwatobipen/chemo_info/blob/master/rdkit201709/QED_calc.ipynb
By the way, original QED score was based on ChEMBL ver 09. So, dataset is old. Does the score show difference when we use new version of ChEMBL ? ;-)

Advertisement

Published by iwatobipen

I'm medicinal chemist in mid size of pharmaceutical company. I love chemoinfo, cording, organic synthesis, my family.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: