epam / epam/Indigo

Calculating CIP for chiral centers with incorrect stereo-bond arrangements

Open
#2,676 0 comments 0 reactions 0 assignees View on GitHub
Ljubica found bugs Micromolecules canvas Priority: Low Severity: High
Dominant language
C++
Stars
406
Forks
134
Avg merge
2d 11h
Merged PRs (30d)
24

Description

**Steps to Reproduce**
1. Go to Ketcher micromolecules mode
2. Draw the following structures:
![image](https://github.com/epam/Indigo/assets/169887211/b6901896-84ff-4660-8833-548684276f38)
3. Select Calculate CIP

**Actual behavior**

Ketcher calculates CIP.
![image](https://github.com/epam/Indigo/assets/169887211/98cfff08-a216-4486-ab26-ac4ecf6b4a45)

**Expected behavior**

In non-cyclical structures opposite bonds (up and down) can be drawn next to each other, and the same bonds (two up or two down) can be drawn opposite to each other.
![image](https://github.com/epam/Indigo/assets/169887211/0d525c97-0375-47cc-ad6c-69b4c1e7326c)
Any other configuration of stereo-bonds (that do not belonging to a cyclical structure) should result in no CIP calculation (no CIP-label).

**Closely related issue [#4720](https://github.com/epam/ketcher/issues/4720)**

**Ketcher version v2.22.0**

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the issue in Ketcher micromolecules mode using the structures from the report and Calculate CIP. Trace the C++ CIP calculation path for non-cyclical stereo-bond arrangements, and compare the expected configurations with related issue #4720. Done means invalid arrangements produce no CIP label while the permitted arrangements calculate correctly.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
backend
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.