epam / epam/Indigo

System saves unique structure monomer named same as monomer in the library as the monomer from the library (Ketcher part)

Open
#3,252 0 comments 0 reactions 0 assignees View on GitHub
Export to MOL Priority: High Severity: High
Dominant language
C++
Stars
406
Forks
134
Avg merge
2d 11h
Merged PRs (30d)
24

Description

Indigo part: https://github.com/epam/Indigo/issues/3024

**Steps to Reproduce**
1. Go to Macromolecules mode
2. Load peptide with unique structure but not unique name from MOL:
MOL

```

-INDIGO-07042514412D

0 0 0 0 0 0 0 0 0 0 0 V3000
M V30 BEGIN CTAB
M V30 COUNTS 1 0 0 0 0
M V30 BEGIN ATOM
M V30 1 Cys_Bn 17.6758 -9.63148 0.0 0 CLASS=AA SEQID=1
M V30 END ATOM
M V30 BEGIN BOND
M V30 END BOND
M V30 END CTAB
M V30 BEGIN TEMPLATE
M V30 TEMPLATE 1 AA/Cys_Bn/Cys_Bn/ NATREPLACE=AA/C
M V30 BEGIN CTAB
M V30 COUNTS 15 15 3 0 0
M V30 BEGIN ATOM
M V30 1 H -0.869 -1.496 0.0 0
M V30 2 N -0.004 -1.998 0.0 0
M V30 3 C 0.864 -1.502 0.0 0 CFG=1
M V30 4 C 0.866 -0.502 0.0 0
M V30 5 S 0.0 0.0 0.0 0
M V30 6 C 0.002 1.002 0.0 0
M V30 7 C -0.864 1.503 0.0 0
M V30 8 C -0.864 2.503 0.0 0
M V30 9 C -1.73 3.003 0.0 0
M V30 10 C -2.596 2.503 0.0 0
M V30 11 C -2.596 1.503 0.0 0
M V30 12 C -1.73 1.003 0.0 0
M V30 13 C 1.73 -2.003 0.0 0
M V30 14 N 2.596 -1.506 0.0 0
M V30 15 N 1.728 -3.003 0.0 0
M V30 END ATOM
M V30 BEGIN BOND
M V30 1 1 1 2
M V30 2 1 3 2 CFG=1
M V30 3 1 3 4
M V30 4 1 4 5
M V30 5 1 5 6
M V30 6 1 6 7
M V30 7 2 7 8
M V30 8 1 8 9
M V30 9 2 9 10
M V30 10 1 10 11
M V30 11 2 11 12
M V30 12 1 7 12
M V30 13 1 3 13
M V30 14 1 13 14
M V30 15 2 13 15
M V30 END BOND
M V30 BEGIN COLLECTION
M V30 MDLV30/STEABS ATOMS=(1 3)
M V30 END COLLECTION
M V30 BEGIN SGROUP
M V30 1 SUP 1 ATOMS=(1 1) XBONDS=(1 1) BRKXYZ=(9 0.432500 -0.251000 0.000000-
M V30 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000) LABEL=H CLASS=-
M V30 LGRP
M V30 2 SUP 2 ATOMS=(1 14) XBONDS=(1 14) BRKXYZ=(9 -0.433000 -0.248500 0.000-
M V30 000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000) LABEL=OH CL-
M V30 ASS=LGRP
M V30 3 SUP 3 ATOMS=(13 2 3 4 5 6 7 8 9 10 11 12 13 15) XBONDS=(2 1 14) BRKX-
M V30 YZ=(9 -0.432500 0.251000 0.000000 0.433000 0.248500 0.000000 0.000000 -
M V30 0.000000 0.000000) LABEL=Cys_Bn CLASS=AA SAP=(3 2 1 Al) SAP=(3 13 14 B-
M V30 r) NATREPLACE=AA/C
M V30 END SGROUP
M V30 END CTAB
M V30 END TEMPLATE
M END

```


![Image](https://github.com/user-attachments/assets/1646ae40-5bbb-40ad-9518-fa388ea3f8ba)
3. Place monomer with the same name from library to the canvas
Image
4. Save it to MOL
5. Load back

**Actual behavior**
System loads both monomers from the same (with unique structure)

**Expected behavior**
Warning should be thrown on load, asterisk should be added to monomer alias
Image

**Environment details:**
- Ketcher Version 3.6.0-rc.1 Build at 2025-07-01; 19:04:05
- Indigo Version 1.34.0-rc.1.0-g7d0cdcdef-wasm32-wasm-clang-19.0.0
- Chrome Version 138.0.7204.97 (Official Build) (64-bit)
- Win10

Found while testing: https://github.com/epam/Indigo/issues/2958

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.