From: lunchbox99 <lun...@tp...> - 2007-06-23 12:04:49
|
Hi all =20 I am very new to cdk so please be gentle if this is a stupid question. =20 I have been trying to calculate some molecular descriptors using org.openscience.cdk.qsar.descriptors.molecular.* When I try to calculate the H-bond donor count for a series of = molecules, I get =93zero=94 count for every molecule (where they are not zero). =20 The code looks like this: =20 HBondDonorCountDescriptor HBD =3D new HBondDonorCountDescriptor(); try { DescriptorValue value =3D HBD.calculate(molecule); IDescriptorResult result =3D value.getValue(); System.out.println(((IntegerResult)result).intValue()); } catch (CDKException e) { e.printStackTrace(); } =20 If I calculate H-bond acceptors or rotatable bond count using the same = basic idea, it works perfectly. I also tried the HBD calculator using the cdk knime workflow and got all zeros for that as well (so I=92m inclined to = think it=92s not my code). The =93molecule=94 atom containers, which are read = from sdf, can be converted to smiles and fingerprints generated so I think the molecules are OK. =20 Has anyone tried the HBD count in cdk1.0? Am I doing the HBD count wrong = in my code? =20 =20 Regards, lunchbox99 No virus found in this outgoing message. Checked by AVG Free Edition.=20 Version: 7.5.472 / Virus Database: 269.9.6/862 - Release Date: = 22/06/2007 3:04 PM =20 |