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

Wrong stereochemistry when loading cdxml reaction #2739

Closed
jblack-mestre opened this issue Jan 24, 2025 · 0 comments · Fixed by #2740
Closed

Wrong stereochemistry when loading cdxml reaction #2739

jblack-mestre opened this issue Jan 24, 2025 · 0 comments · Fixed by #2740
Labels
Export to SVG/PNG Bucket: Bugs related to SVG/PNG export Priority: Medium Severity: High High level visibility to the user Stereochemistry Bucket: Stereochemistry related issues User`s Feedback

Comments

@jblack-mestre
Copy link
Contributor

jblack-mestre commented Jan 24, 2025

Summary
When creating an .svg file with indigo-depict and wrong_stereochemistry.cdr, two identical product molecules are shown in the reaction, instead of two different isomers. The second product should have an upwards wedge, not a downwards dash.

Steps to Reproduce

  1. indigo-depict.exe wrong_stereochemistry.cdr wrong_stereochemistry.svg

Actual behavior
Indigo is reusing the stereochemistry data from the first product with the second product.
Image

Expected behavior
Indigo should clear the stereochemistry data from the first product, so the correct stereochemistry can be used in the second product.
Image

Environment details:

  • Windows 11
  • Indigo, commit 4960b8e

Attachments
wrong_stereochemistry.txt

Additional context
In MoleculeStereocenters::clear(), both the _stereocenters and _atropocenters maps need to be cleared

Comment from QA:
Reproduced on Indigo Version 1.28.0-rc.3.0-gd5bcc27cb-wasm32-wasm-clang-19.0.0

@AlexanderSavelyev AlexanderSavelyev linked a pull request Jan 24, 2025 that will close this issue
7 tasks
@AlexeyGirin AlexeyGirin added User`s Feedback Stereochemistry Bucket: Stereochemistry related issues Export to SVG/PNG Bucket: Bugs related to SVG/PNG export Priority: Medium Severity: High High level visibility to the user labels Jan 26, 2025
AlexanderSavelyev pushed a commit that referenced this issue Jan 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Export to SVG/PNG Bucket: Bugs related to SVG/PNG export Priority: Medium Severity: High High level visibility to the user Stereochemistry Bucket: Stereochemistry related issues User`s Feedback
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants