Macro: System should allow '*' symbol at the beginning of peptide sequence
- Dominant language
- C++
- Stars
- 406
- Forks
- 134
- Avg merge
- 2d 11h
- Merged PRs (30d)
- 24
Description
**Steps to Reproduce**
1. Select Macromolecules mode:
2. Copy the following structure in FASTA format:
```
>That should be allowed
*AAAA
```
3. Click the folder icon "Open..." in the top left corner of the top panel
4. In Open Structure pop-up expand the format dropdown by clicking on preselected "Ket" value and select FASTA format:

5. Paste the previously copied structure using Ctrl+V
6. Click the "Open as New" button:
**Actual behavior**
System throws an error: Convert error! Given string could not be loaded as (query or plain) molecule or reaction, see the error messages

**Expected behavior**
System loads peptide without errors

As per requirement description (https://github.com/epam/Indigo/issues/1755#issuecomment-1972978475):
>`"*"` means the end of the peptide sequence
>If `" * "` occurred between two letters then it should be recognized as the break in peptide chain (no bond should be created between monomers separated with the `"*"`).
Confirmed by @olganaz
**Environment details:**
Ketcher Version 2.20.0-rc.2 Build at 2024-03-27; 08:30:51
Indigo Toolkit Version 1.19.0-rc.2.0-g6c0e3fecf-x86_64-linux-gnu-11.2.1
Win10
Chrome Version 122.0.6261.129 (Official Build) (64-bit)
**Related issues:**
- https://github.com/epam/Indigo/issues/1755
- https://github.com/epam/ketcher/issues/4280
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the FASTA import through the Open Structure dialog with the `*AAAA` sequence, then trace the FASTA loading and conversion path involved. Review the linked requirement in issue 1755; done means a peptide beginning with `*` loads without a conversion error and preserves the expected sequence behavior.
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
- 38/100