epam / epam/Indigo

Export to `Sequence (1-letter code)/(3-letter code)` works wrong for non-RNA/Peptides/CHEMs monomers (e.g. Sugar, Base, Phosphate)

Open
#3,166 0 comments 0 reactions 1 assignee Claimed by @AliaksandrDziarkach View on GitHub
Export to Sequence Priority: Low Severity: Low
Dominant language
C++
Stars
406
Forks
134
Avg merge
2d 11h
Merged PRs (30d)
24

Description

**Steps to Reproduce**
1.Switch to Macromolecules mode - Flex canvas
2. Load from HELM: `RNA1{r}$$$$V2.0`
Image

3. Save canvas to `Sequence (1-letter code)` file format

**Actual behavior**
System returns empty result
Image

Same behavior on export to `Sequence (3-letter code)` file format

**Expected behavior**
System throws an error: `Convert error! Error during sequence type recognition(RNA, DNA or Peptide)`
Image

As per [requirement](https://github.com/epam/ketcher/issues/5556):

> 2.4. If the sequence is not a purely amino acid sequence on export an error message should appear.
> > ![image](https://github.com/user-attachments/assets/955feac2-3674-4f40-ab85-95aba42ec3c3)
> > (same behavior for current one letter sequence export)
>

**Environment details:**
- Ketcher Version 3.8.0-dev.1 Build at 2025-09-01; 15:10:48
- Indigo Version 1.37.0-dev.1.0-ged340212-wasm32-wasm-clang-19.0.0
- Chrome Version 139.0.7258.155 (Official Build) (64-bit)
- Win10

Related issues: https://github.com/epam/Indigo/issues/1426, https://github.com/epam/Indigo/issues/2472

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.