Hi John,

thanks for your response, here is my example code with your smiles:

        IAtomContainer mol = new SmilesParser(
SilentChemObjectBuilder.getInstance()).parseSmiles("[H]/C(C)=C(\\[H])C");
        mol = AtomContainerManipulator.suppressHydrogens(mol);
        System.out.println(SmilesGenerator.generic().create(mol));
        System.out.println(SmilesGenerator.absolute().create(mol));

Output is:
C(C)=CC
C/C=C\C

I can add an issue, but I am still not sure if you understood me correctly, i.e., if suppressHydrogens is expected to retain Hs with stereo-info.

Regards,
Martin



Am 22.11.2016 um 13:09 schrieb John M:
Martin,

Do you have the compound, this should be handled... but there may be a corner case. Can you add an issue to GitHub with the molecule, thanks.

Inline images 1

[H]/C(C)=C(\[H])C

Inline images 2

[H]/C(C)=C(/[H])C

------------------------------------------------------------------------------
_______________________________________________
Cdk-user mailing list
Cdk-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cdk-user

Reply via email to