From: Rajarshi G. <rg...@in...> - 2007-03-10 04:56:36
|
Hi, I'm using the following code to read in an SD file from a String: MDLReader reader = new MDLReader(new StringReader(sdf)); ChemFile chemfile = (ChemFile) reader.read(new ChemFile()); IChemSequence seq = chemfile.getChemSequence(0); IChemModel model = seq.getChemModel(0); IMoleculeSet moleculeSet = model.getMoleculeSet(); IMolecule molecule = moleculeSet.getMolecule(0); (I've attached the SD file to this mail). However when I do molecule.getProperty(CDKConstants.TITLE) it gives me a null rather than the expected title. Am I doing something wrong here? ------------------------------------------------------------------- Rajarshi Guha <rg...@in...> GPG Fingerprint: 0CCA 8EE2 2EEB 25E2 AB04 06F7 1BB9 E634 9B87 56EE ------------------------------------------------------------------- Alone, adj.: In bad company. -- Ambrose Bierce, "The Devil's Dictionary" |