Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Substituents are displayed backwards if appearing on the left of the molecule #2748

Open
jblack-mestre opened this issue Feb 3, 2025 · 0 comments · May be fixed by #2753
Open

Substituents are displayed backwards if appearing on the left of the molecule #2748

jblack-mestre opened this issue Feb 3, 2025 · 0 comments · May be fixed by #2753

Comments

@jblack-mestre
Copy link
Contributor

Summary
If there is a sgroup that contains more than one atom or substituent, that appears on the left of a molecule, it is displayed so the last atom/substituent is connected to the molecule. This sgroup should be mirrored so that the first atom/substituent of the group is connected to the molecule

Steps to Reproduce

  1. indigo-depict backwards_substituents.cml backwards_substituents.svg

Actual behavior
The substituents are displayed backwards when appearing on the left (on the right they are displayed correctly)
Image

Expected behavior
The substituents should appear mirrored, like in chemdraw
Image

Environment details:

Attachments
backwards_substituents.cml.txt

Additional context
When rendering the molecule, the sgroup should be reversed if it appears on the left

jblack-mestre added a commit to mestrelab-chemoinformatics/Indigo that referenced this issue Feb 4, 2025
jblack-mestre added a commit to mestrelab-chemoinformatics/Indigo that referenced this issue Feb 4, 2025
jblack-mestre added a commit to mestrelab-chemoinformatics/Indigo that referenced this issue Feb 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants