Hi, using the latest CDK when I write out a molecule using the
SDFWriter I loose all aromaticity (ie no kekule form or aromatic bonds
in the output). Has anybody seen this?

        SmilesParser sp = new
SmilesParser(DefaultChemObjectBuilder.getInstance());
        IAtomContainer mol = sp.parseSmiles("c1ccccc1CC");
        CDKHueckelAromaticityDetector.detectAromaticity(mol);

        SDFWriter writer = new SDFWriter(new FileWriter(new File(filename)));
        writer.write(mol)

-- 
Rajarshi Guha
NIH Chemical Genomics Center

------------------------------------------------------------------------------
uberSVN's rich system and user administration capabilities and model 
configuration take the hassle out of deploying and managing Subversion and 
the tools developers use with it. Learn more about uberSVN and get a free 
download at:  http://p.sf.net/sfu/wandisco-dev2dev
_______________________________________________
Cdk-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cdk-user

Reply via email to