User 0224fcf261
03-05-2005 16:24:59
Hi,
Sorry for the basic question, but i have used the API as described in other posts to generate the CFP and PFP for an SD file, but i now want to generate the fingerprints for individual SMILES in code. I have the following:
However the generate() method returns Null. Can you tell me what i have missed out ? Am i not using the right classes ?
Many thanks
Alistair
Sorry for the basic question, but i have used the API as described in other posts to generate the CFP and PFP for an SD file, but i now want to generate the fingerprints for individual SMILES in code. I have the following:
Code: |
CFParameters cfparams = new CFParameters(new File("C:\\JChem3.08\\jchem\\examples\\config\\cfp.xml")); ChemicalFingerprint cf = new ChemicalFingerprint(cfparams); try { String[] sa = cf.generate(MolImporter.importMol(smiles)); for (int i = 0; i < sa.length; i++) { System.out.println(sa[i]); } } catch (Exception e) { e.printStackTrace(); } |
However the generate() method returns Null. Can you tell me what i have missed out ? Am i not using the right classes ?
Many thanks
Alistair