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
434 stars 68 forks source link

isomeric smiles representation mismatch with other drawers #92

Open tlambert03 opened 4 years ago

tlambert03 commented 4 years ago

first off, big thanks for smilesDrawer. love it and use it a lot at fpbase.org

I'm struggling with cis/trans representation of an isomeric SMILES string grabbed from the protein databank. This is just a representative example, but I see this with a lot of similar structures, and I unfortunately don't know enough about SMILES to know whether this is an issue with smilesDrawer, the string itself, or something else.

see the CRO ligand at PDB. isomeric SMILES string: C[C@@H](O)[C@H](N)C1=N\C(=C/c2ccc(O)cc2)C(=O)N1CC(O)=O their image: CRO-270

note the benzene ring points in the opposite direction as the C=O bond on the other ring... same with pubchem sketcher and chemdraw: chemdraw

and with molviewC(=O)N1CC(O)=O): molview

but in smilesDrawer the benzene ring points in the same direction as the C=O bond on the other ring: Screen Shot 2020-01-31 at 2 35 28 PM

full smilesDrawer code example here: https://codesandbox.io/s/boring-lehmann-22o1d

would love to know if this is on my end or in smilesDrawer. Thanks!

tlambert03 commented 4 years ago

any thoughts on this? If you're pretty confident it's just user error on my end, I'm open to that as well :)

tlambert03 commented 3 years ago

bump