reymond-group / smilesDrawer

A small, highly performant JavaScript component for parsing and drawing SMILES strings. Released under the MIT license.
https://smilesdrawer.rocks
MIT License
416 stars 66 forks source link

Inverted stereo-chemistry #78

Open jvansan opened 5 years ago

jvansan commented 5 years ago

Firstly, I'd like to thank the authors for creating this wonderful open-source library. We are relying on it for the curation of data in our project, which is a database of microbial natural products.

Library Version: 1.0.10 Browser Version: Firefox 63.0 on Ubuntu 18.04 and macOS 10.14.1

I am having a problem with the molecule (3R,4aS,5S,10aR)-5-hydroxydihydrofusarubin D: The SMILES string is C[C@@]1(C[C@H]2[C@H](CO1)C(=O)C3=C([C@H]2O)C(=C(C=C3O)OC)O)O

The output of smilesDrawer is the following: image

Using Marvin (also tested on ChemDraw) the following is represents the SMILES: image

I have also gone ahead and drawn the same representation as seen from smilesDrawer and compared the two in Marvin by generating the IUPAC name, and as you can see one of the hydroxyl groups has inverted stereochemistry: image

daenuprobst commented 5 years ago

Thank you for the info. I marked it as a bug and will look at it.