User 6ef33138f9
04-01-2007 22:40:28
Hello,
In some cases, generating unique SMILES for a molecule with atom map numbers produces different results than the same molecule with no atom map numbers. I'm using Marvin 4.1.2.
This seems similar to a problem my colleague reported last year:
http://chemaxon.com/forum/ftopic732.html#2730
Thanks,
Chris
In some cases, generating unique SMILES for a molecule with atom map numbers produces different results than the same molecule with no atom map numbers. I'm using Marvin 4.1.2.
Code: |
// This is the original SMILES that Marvin thinks is unique String originalSmiles = "[CH3:1][S:2][C:25]1=[C:24]([NH2:15])[C:23]2=[C:22]([N:21]([CH2:13][CH3:14])[CH:20]=[C:19] ([C:17]([OH:16])=[O:18])[C:27]2=[O:28])[C:10]([CH:11]=[CH2:12])=[C:26]1[N:6]3[CH2:5][CH:4]([CH3:3])[NH:9][CH2:8][CH2:7]3"; Molecule mol = MolImporter.importMol(originalSmiles); String uniqueSmilesWithAtomMapNumbers = mol.toFormat("smiles:u-a"); assertEquals(originalSmiles, uniqueSmilesWithAtomMapNumbers); // OK // Take the SMILES above and remove the atom map numbers (and brackets) by hand String uniqueSmilesWithAtomMapsRemovedByHand = "CSC1=C(N)C2=C(N(CC)C=C(C(O)=O)C2=O)C(C=C)=C1N3CC(C)NCC3"; // Remove atom map numbers and generate another unique SMILES for (MolAtom atom: mol.getAtomArray()) atom.setAtomMap(0); String uniqueSmilesFromMoleculeWithoutAtomMaps = mol.toFormat("smiles:u-a"); assertEquals(uniqueSmilesWithAtomMapsRemovedByHand, uniqueSmilesFromMoleculeWithoutAtomMaps); // FAILS! |
This seems similar to a problem my colleague reported last year:
http://chemaxon.com/forum/ftopic732.html#2730
Thanks,
Chris