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 <[EMAIL PROTECTED]>
GPG Fingerprint: 0CCA 8EE2 2EEB 25E2 AB04 06F7 1BB9 E634 9B87 56EE
-------------------------------------------------------------------
Alone, adj.: In bad company.
-- Ambrose Bierce, "The Devil's Dictionary"



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Cdk-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cdk-user

Reply via email to