pikachu
pikachu copied to clipboard
Bug : Wrong depiction with large carbon chains containing double bonds
Hello folks, nice work on this project !
I'm encountering a bug using this input SMILES : CC/C=C\C/C=C\C/C=C\C/C=C\C/C=C\C/C=C\CCCCC(=O)S
The correct molecule is, as drawn by MarvinJS :
The cycle should not be there, I believe that it's because the software tries to avoid a collision between the two ends of the molecule.
Steps to reproduce
svg_from_smiles('CC/C=C\C/C=C\C/C=C\C/C=C\C/C=C\C/C=C\CCCCC(=O)S', 'output.svg')
Thank you for reporting this issue! You are right; it is an issue with collision avoidance; specifically, it has to do with bonds adjacent to stereobonds not being rotatable. I will pick this up when I am back from my leave in April!