epam / Indigo

Universal cheminformatics toolkit, utilities and database search tools
http://lifescience.opensource.epam.com
Apache License 2.0
314 stars 103 forks source link

Preview: We shouldn't allow to export canvas with nucleotides with no natural analog to Sequence format (and FASTA) #2035

Closed AlexeyGirin closed 3 months ago

AlexeyGirin commented 4 months ago

Steps to Reproduce

  1. Go to Macromolecules mode - Flex mode

  2. Open RNA tab - Nucleotides section

  3. Put 5NitInd nucleotide from the library on the canvas image

  4. Save canvas to Sequence format (or FASTA)

Actual behavior System let user to do that Sequence: image FASTA: image

Expected behavior Since we don't support import of monomers with no natural analog (as per https://github.com/epam/Indigo/issues/1466 and https://github.com/epam/Indigo/issues/1755) - we should not allow to export it. System should throw proper error in that case

Versions

Issue found while testing - https://github.com/epam/ketcher/issues/4382

AlexeyGirin commented 3 months ago

We decide to return Error in such case (by @AlexanderSavelyev and @vanoprenko )

Zhirnoff commented 3 months ago

Tested. Bug fixed. 2024-07-16_14h04_05

Desktop:

Ketcher version [Version 2.23.0-rc.3] Indigo version [Version 1.22.0-rc.3]

AlexeyGirin commented 3 months ago

Fixed. image