You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Request for feedback: validate new Enhanced Stereochemistry InChIs #286
If Ketcher as provided on the landing page (version 3.17.0) was used to prepare the atropisomers, there might be a round-trip problem.
Thanks to the Jmol project, I'm aware of a CIP validation suite (Robert Hanson et al., doi.org/10.1021/acs.jcim.8b00324, GH repo, synopsis). Thus I redrew from scratch the entry 55
in the editor
to then export the extended SMILES string (floppy disk icon) as
@johnmay Yes I know, CDK depict can process one .mol at a time (while multiple SMILES strings at once) - at least when accessing the demo page with firefox 153.5.0esr as repackaged for Linux Debian.
Hi @johnmay,
thanks for your feedback. I converted your CXSMILES to V3000 molfiles with RDKit (2026.09.1), mapping |r| to chiral flag 0, and then ran them on branch (feature/enh-stereo-hardening, 773c921) with -EnhancedStereochemistry. Only the stereo layers are shown below.
Unfortunately, we have only partly integrated this in the web demo yet.
Chiral flag 0 is not treated as &1. By default InChI ignores the flag. With -SUCF, InChI has always read flag 0 as relative (/s2), following the original MDL definition and the ChemAxon r definition. Mapping it to racemic (/s3) as BIOVIA does would change that existing meaning.
InChI ignores Sgroups, so the explicit enantiomer pair stays a two-component InChI. Collapsing mixtures into & groups is outside the scope of this work. We can open a separate issue for it if there is interest.
I hope this makes sense. If you have any questions or find other bugs, please let me know. Thanks!
8. Wasn't clear from the review page or if there is a place I can test?
Here are some things I would want to check.
# 1. MDL Chiral Flag
Is MDL chiral flag the same as a set of &1/&2?
Accelrys/BIOVIA semantics are chiral flag = 0 is treated the same.
Sorry easier to provide as CXSMILES but these should then all be the same: C[C@H](O)CN |r| C[C@H](O)CN |&1:1| C[C@H](O)CN |&2:1|
# 2. Meso Compounds
Are the flags correctly ignored on cases like this?
```
O[C@H]1CC[C@H](O)CC1
O[C@H]1CC[C@H](O)CC1 |r|
O[C@H]1CC[C@H](O)CC1 |&1:1,4|
O[C@H]1CC[C@H](O)CC1 |o1:1,4|
```
And these
```
O[C@H]1CC[C@H](OCC[C@H](N)C)CC1
O[C@H]1CC[C@H](OCC[C@H](N)C)CC1 |&1:1,4|
O[C@H]1CC[C@H](OCC[C@H](N)C)CC1 |o1:1,4|
```
# 3. Mixtures
Does it normalise mixtures of isomers?
See slide 13 - https://www.nextmovesoftware.com/talks/Mayfield_BuildingOnSand_InChI_201708.pdf
```
CC[C@H](O)N.CC[C@@H](O)N |Sg:c:0,1,2,3,4,Sg:c:5,6,7,8,9,Sg:mix:0,1,2,3,4,5,6,7,8,9,SgH:2:0.1|
```
<img alt="Image" width="266" height="75" src="https://private-user-images.githubusercontent.com/983232/676585942-6637a141-fd71-4659-bfda-a6f3f87ec174.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3OTI3NDA3NjgsIm5iZiI6MTc5Mjc0MDQ2OCwicGF0aCI6Ii85ODMyMzIvNjc2NTg1OTQyLTY2MzdhMTQxLWZkNzEtNDY1OS1iZmRhLWE2ZjNmODdlYzE3NC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjYxMDIzJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI2MTAyM1QwNzI3NDhaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1jYzkxYjcxNjE1ZDI5YTVmZTMzYjdkMDEzOTYwYzg5ZTI1ZGI1Yjk1M2M1YmY4NDRjMDczZDRkNzU3YTk4MzJhJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZyZXNwb25zZS1jb250ZW50LXR5cGU9aW1hZ2UlMkZwbmcifQ.5o_W1405VUrocemdHaB6r6TBwbY8PeHdhQQwbLocPas">
@cm-beilstein Thanks for getting back. Yeah in general it's a can of worms. So sure you know (due to Gerd) but is was MDL -> Symyx -> (SciTegic ->) Accelrys -> BOVIA. My understand was not that the original flag means "relative" as in "this or that" but rather "relative as in the relative configuration is known" the structure it is either Racemic or Relative, this is why ChemAxon treat it essentially as something completely different.
It is reasonable to have a business rule / flag which this normalizes this. Perhaps a flag "treat chiral flag off as Relative" or "treat chiral flag off as Racemic".
Here is the relevant section from the valuable MDL/BIOVIA "Chemical Representation" manual:
Activity
pechersky commentedon Oct 16, 2026
Hi, not sure why #277 is linked here, that one has no enhanced stereo, and the double bond isn't in a stereo collection.
nbehrnd commentedon Oct 16, 2026
If Ketcher as provided on the landing page (version 3.17.0) was used to prepare the atropisomers, there might be a round-trip problem.
Thanks to the Jmol project, I'm aware of a CIP validation suite (Robert Hanson et al., doi.org/10.1021/acs.jcim.8b00324, GH repo, synopsis). Thus I redrew from scratch the entry 55
in the editor
to then export the extended SMILES string (floppy disk icon) as
If pasted to CDK depict, the representation substitutes the solid wedge by the dashed one:
which on first view looks like the enantiomer. Not sure where the origin of this issue is, I filed a ticket over at CDK Depict.
johnmay commentedon Oct 17, 2026
@nbehrnd put in as a MOLfile and it should work BTW
johnmay commentedon Oct 17, 2026
Wasn't clear from the review page or if there is a place I can test?
Here are some things I would want to check.
1. MDL Chiral Flag
Is MDL chiral flag the same as a set of &1/&2?
Accelrys/BIOVIA semantics are chiral flag = 0 is treated the same.
Sorry easier to provide as CXSMILES but these should then all be the same:
2. Meso Compounds
Are the flags correctly ignored on cases like this?
And these
3. Mixtures
Does it normalise mixtures of isomers?
See slide 13 - https://www.nextmovesoftware.com/talks/Mayfield_BuildingOnSand_InChI_201708.pdf
nbehrnd commentedon Oct 21, 2026
@johnmay Yes I know, CDK depict can process one .mol at a time (while multiple SMILES strings at once) - at least when accessing the demo page with firefox 153.5.0esr as repackaged for Linux Debian.
cm-beilstein commentedon Oct 23, 2026
Hi @johnmay,
thanks for your feedback. I converted your CXSMILES to V3000 molfiles with RDKit (2026.09.1), mapping |r| to chiral flag 0, and then ran them on branch (feature/enh-stereo-hardening, 773c921) with -EnhancedStereochemistry. Only the stereo layers are shown below.
Unfortunately, we have only partly integrated this in the web demo yet.
Chiral flag 0 is not treated as &1. By default InChI ignores the flag. With -SUCF, InChI has always read flag 0 as relative (/s2), following the original MDL definition and the ChemAxon r definition. Mapping it to racemic (/s3) as BIOVIA does would change that existing meaning.
If mirroring the group gives the same molecule, ignore the group. I will fix this.
This is a little bit more complicated to fix.
InChI ignores Sgroups, so the explicit enantiomer pair stays a two-component InChI. Collapsing mixtures into & groups is outside the scope of this work. We can open a separate issue for it if there is interest.
I hope this makes sense. If you have any questions or find other bugs, please let me know. Thanks!
Enhanced stereo: drop groups that invert a meso
Spec 1 1.3: drop groups that invert a meso
Enhanced stereo: drop groups that invert a meso
Enhanced stereo: drop groups that invert a meso
Enhanced stereo: drop groups that invert a meso
johnmay commentedon Oct 23, 2026
@cm-beilstein Thanks for getting back. Yeah in general it's a can of worms. So sure you know (due to Gerd) but is was MDL -> Symyx -> (SciTegic ->) Accelrys -> BOVIA. My understand was not that the original flag means "relative" as in "this or that" but rather "relative as in the relative configuration is known" the structure it is either Racemic or Relative, this is why ChemAxon treat it essentially as something completely different.
It is reasonable to have a business rule / flag which this normalizes this. Perhaps a flag "treat chiral flag off as Relative" or "treat chiral flag off as Racemic".
Here is the relevant section from the valuable MDL/BIOVIA "Chemical Representation" manual:
Fold the comparison page into per-spec folders
Spec 1.4: chiral-flag business rule is open
cm-beilstein commentedon Oct 23, 2026
@johnmay Ok, I understood that wrong. I also saw that there already is an open GHI #221 about it. :D