epam / Indigo

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

Preview: Open an IDT file with a "*" character if the "*" is only between nucleotides (RNA presets or unsplit nucleotides) #1978

Closed NadezhdaPeskun closed 1 month ago

NadezhdaPeskun commented 1 month ago

Steps to Reproduce

  1. Switch to Macro
  2. Open from Clipboard
  3. Add IDT sequence /52MOErG/*/i2MOErG/*/3Phos/

4.Select IDT >> Open

Can MOE OPen

  1. Save >> Select IDT >> Try to Save structure to IDT format

Actual behavior User cannot Save the next sequences to IDT - it's OK User can Open the next IDT sequences - it's error; /52MOErG/*/i2MOErG/*/3Phos/ OR /5Phos/*/i2MOErG/*/3Phos/

Expected behavior The user should be able to open an IDT file with a "*" character if the "*" is only between nucleotides or nucleosides (RNA presets or unsplit nucleotides).

And Error message should appear while user try to Open the next examples: /52MOErG/*/i2MOErG/*/3Phos/ OR /5Phos/*/i2MOErG/*/3Phos/

Cannot MOE Save

Tasks:

Versions: Windows 11 Chrome Version Version 123.0.6312.106 (Official Build) (64-bit)

CI version: Ketcher Version 2.22.0-rc.1 Build at 2024-04-15; 20:00:15 Indigo Toolkit Version 1.21.0-dev4

AlexeyGirin commented 3 weeks ago

Verified. image

AlexeyGirin commented 3 weeks ago

Test case added to automation table