epam / epam/Indigo

Export to SMARTS works wrong - it reverse stereo bonds

Open
#3,714 1 comment 0 reactions 0 assignees View on GitHub
Export to SMARTS Priority: Medium
Dominant language
C++
Stars
406
Forks
134
Avg merge
2d 11h
Merged PRs (30d)
24

Description

**Steps to Reproduce**
1. Go to Micro
2. Load from file: [5. Unsplit nucleotide 5hMedC (from library).zip](https://github.com/user-attachments/files/17620667/5.Unsplit.nucleotide.5hMedC.from.library.zip)
![image](https://github.com/user-attachments/assets/a2412eac-4a7d-491d-a927-5f5abc0a9334)
3. Expand it
![image](https://github.com/user-attachments/assets/55edf652-dc28-44c5-96ab-54a60c4baec2)
4. Press Save button and choose SMILES format

**Actual behavior**
Export result mirrored stereo bonds
`[#6@]1(/[#6]-[#8]-[H])-[#8]-[#6@@](/[#7]2-[#6]=[#6](-[#6]-[#8])-[#6](-[#7])=[#7]-[#6]-2=[#8])-[#6]-[#6@@]-1\[#8]-[#15](=[#8])(-[#8])-[#8]`
![image](https://github.com/user-attachments/assets/cb3191ff-4ce8-4895-8687-d209b4bbd9f1)

**Expected behavior**
`[#6;@]1(\[#6]-[#8]-[H])-[#8]-[#6;@@](/[#7]2-[#6]=[#6](-[#6]-[#8])-[#6](-[#7])=[#7]-[#6]-2=[#8])-[#6]-[#6;@@]-1/[#8]-[#15](=[#8])(-[#8])-[#8]`
![image](https://github.com/user-attachments/assets/e029c4a6-434c-4c68-a7e6-b6e9a25c65e5)

**Versions**
- Ketcher Version 2.26.0-rc.6 Build at 2024-10-25; 09:57:12
- Indigo Toolkit Version 1.25.0-rc.4.0-g8862ccb7e-wasm32-wasm-clang-19.0.0
- Chrome Version Version 130.0.6723.59 (Official Build) (64-bit)
- Win10

Found while testing - https://github.com/epam/ketcher/issues/5400

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the export using the attached 5hMedC library file and the listed steps, then compare the actual and expected SMILES strings, focusing on stereo bond direction. No source file or test is named in the issue, so locate the export path from this reproduction. Done means the generated output matches the expected stereochemistry.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.