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

Cannot open IDT with MOE sugar. #1966

Closed NadezhdaPeskun closed 1 month ago

NadezhdaPeskun commented 1 month ago

Steps to Reproduce

  1. Switch to Macro
  2. Open >> select Open from clipboard (see .mp4 file below)
  3. Insert >> /52MOErA//i2MOErC//32MOErT/
  4. Select IDT type >> Add to Canvas image

Actual behavior Cannot open IDT with MOE sugar.

Expected behavior

/52MOErA//i2MOErC//32MOErT/ >> should be Save to IDT and Open from IDT successfully. /52MOErA//i2MOErC//32MOErT/ >> should be Save to IDT and Open from IDT successfully. /i2MOErC//32MOErT/ >> should be opened /52MOErA//i2MOErC/ >> should be opened /52MOErA//32MOErC/ >> should be opened /52MOErA//32MOErC/ >> should be opened /i2MOErC/ >> should be opened /32MOErT/ >> should be opened /52MOErA/ >> should be opened /52MOErA//i2MOErC//i2MOErG/G+AmTATrAG/i2MOErG//32MOErT/



![image](https://github.com/epam/Indigo/assets/161723514/d9c88d77-3e51-4622-9041-ba70c0e13870)

Tasks:
- https://github.com/epam/ketcher/issues/4310
- https://github.com/epam/Indigo/issues/1899
- https://github.com/epam/Indigo/issues/1900
- https://github.com/epam/Indigo/issues/1588
- https://github.com/epam/Indigo/issues/1654

**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
NadezhdaPeskun commented 4 weeks ago

Verification on the CI New bug is added

Opened as expected:

/32MOErA/
/52MOErA/*/32MOErC/
/52MOErA//32MOErC/
/52MOErA//i2MOErC//32MOErT/ 
/52MOErA/*/i2MOErC/*/32MOErT/ 
/52MOErA/*/i2MOErC/*/i2MOErG/*G*+A*mT*A*T*rA*G*/i2MOErG/*/32MOErT/ 

Errors: Paste from Clipboard: 1) /52MOErA/

image

2)/i2MOErA/

image

3) /52MOErA//i2MOErA/ and for /52MOErA/*/i2MOErA/

image

4) /i2MOErA/*/32MOErA/

image
AlexeyGirin commented 4 weeks ago

Verified. Some not working cases moved to https://github.com/epam/Indigo/issues/1982