Hi John, all, I am playing with SMIRKS but it's pretty new to me.
Transform neutralAcid = Smirks.compile("[O-:1]>>[O:1]"); IAtomContainer cdkStruct = parser.parseSmiles("CC(=O)[O-]"); Iterable<IAtomContainer> iterable = neutralAcid.apply(cdkStruct, Transform.Mode.Exclusive); for (IAtomContainer neutral : iterable) { String neutralSmiles = generator.createSMILES(neutral); System.out.println(neutralSmiles); } (I hope I did not make any copy/paste typos) Why am I not getting this as output: CC(=O)O ? (Actually, let's assume I can get that working, let's say we have multiple carboxylic acids and amine groups, how would one enumerate all possible charge states? Is that possible with just SMIRKS?) Egon -- [NL] WikiPathways in actie voor MetaKids: We zamelen geld in voor MetaKids met een actie rond WikiPathways, zie https://sr24.wikipathways.org/. Doneer via https://www.npo3fm.nl/kominactie/acties/wikipathways-in-actie-voor-metakids [EN] WikiPathways in action for MetaKids: We are fundraising for the Dutch charity MetaKids by improving metabolic disorder pathways, see https://sr24.wikipathways.org/. Donate at https://www.npo3fm.nl/kominactie/acties/wikipathways-in-actie-voor-metakids -- E.L. Willighagen Department of Translational Genomics NUTRIM Institute of Nutrition and Translational Research in Metabolism Maastricht University Blog: https://chem-bla-ics.linkedchemistry.info/ Mastodon: https://social.edu.nl/@egonw PubList: https://orcid.org/0000-0001-7542-0286
_______________________________________________ Cdk-user mailing list Cdk-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/cdk-user