Wrong stereochemistry when loading cdxml reaction #2739
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
Milestone
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
Actual behavior
![Image](https://private-user-images.githubusercontent.com/26869421/406921346-74991da2-5b51-4e39-a50a-302caa4d6e1f.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg5ODI5MjMsIm5iZiI6MTczODk4MjYyMywicGF0aCI6Ii8yNjg2OTQyMS80MDY5MjEzNDYtNzQ5OTFkYTItNWI1MS00ZTM5LWE1MGEtMzAyY2FhNGQ2ZTFmLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA4VDAyNDM0M1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTQyZTkwNWY3Mzc4NDJjOThlM2E1ZDRhMTE4MTA0YTljZjM2ZjhmNzgxOGI0NTFhNGU5NDg2ZTkxNjdmNzU1MGYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.9wXT64ArfU-tB3V5gFef8tZR_ge_kwTpt3V47TZnOCg)
Indigo is reusing the stereochemistry data from the first product with the second product.
Expected behavior
![Image](https://private-user-images.githubusercontent.com/26869421/406921553-a78cb3f0-f089-4f23-81c4-d007036eb111.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg5ODI5MjMsIm5iZiI6MTczODk4MjYyMywicGF0aCI6Ii8yNjg2OTQyMS80MDY5MjE1NTMtYTc4Y2IzZjAtZjA4OS00ZjIzLTgxYzQtZDAwNzAzNmViMTExLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA4VDAyNDM0M1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTIzZjRiNDdlOTEyOTEzYWNlNjljMDY1YjhhNzZkNWY3ZjJkZmZkNjgxYzkxZjMwNTAyNjU5OWNhZDM2ODBlMGUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.z0Z1bg1AQquK5EekjSToz2gH1WD7CkEAA2Vlgp0dFFo)
Indigo should clear the stereochemistry data from the first product, so the correct stereochemistry can be used in the second product.
Environment details:
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
The text was updated successfully, but these errors were encountered: