Dear RDKitters,

I'm wondering about the total number of accessible descriptors in RDKit:

This is is my code:
"
import sys
from rdkit import Chem
from rdkit.Chem import Descriptors
from rdkit.ML.Descriptors import MoleculeDescriptors

file_in  = sys.argv[1]
file_out = file_in+".descr.sdf"
ms = [x for x in  Chem.SDMolSupplier(file_in) if x is not None]
ms_wr = Chem.SDWriter(file_out)

nms=[x[0] for x in Descriptors._descList]
#nms.remove('MolecularFormula')
print len(Descriptors._descList)


calc = MoleculeDescriptors.MolecularDescriptorCalculator(nms)

for i in range(len(ms)):
  descrs = calc.CalcDescriptors(ms[i])
  for x in range(len(descrs)):
    ms[i].SetProp(str(nms[x]),str(descrs[x]))
  ms_wr.write(ms[i])
"

This gives me 93 descriptors in total.

A brief look and count in the Python API
http://www.rdkit.org/docs/api/rdkit.Chem.Descriptors-module.html
ends up in more than 170 descriptors.

Another brief look (no time to grasp in more depth) reveals that apparently
the fr_* descriptors have not been calculated.

What did I do wrong?


Cheers & Thanks,
Paul

This message and any attachment are confidential and may be privileged or
otherwise protected from disclosure. If you are not the intended recipient,
you must not copy this message or attachment or disclose the contents to
any other person. If you have received this transmission in error, please
notify the sender immediately and delete the message and any attachment
from your system. Merck KGaA, Darmstadt, Germany and any of its
subsidiaries do not accept liability for any omissions or errors in this
message which may arise as a result of E-Mail-transmission or for damages
resulting from any unauthorized changes of the content of this message and
any attachment thereto. Merck KGaA, Darmstadt, Germany and any of its
subsidiaries do not guarantee that this message is free of viruses and does
not accept liability for any damages caused by any virus transmitted
therewith.

Click http://www.merckgroup.com/disclaimer to access the German, French,
Spanish and Portuguese versions of this disclaimer.


------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_nov
_______________________________________________
Rdkit-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/rdkit-discuss

Reply via email to