epam / Indigo

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

Consider no ending token as empty case in order to let polymers to load #2058

Open AlexeyGirin opened 2 days ago

AlexeyGirin commented 2 days ago

NOTE: Export works fine.

Steps to Reproduce

  1. Go to Macromolecules mode - Flex mode
  2. Load using paste from clipboard IDT type: RNA1{R(A)P} image

Actual behavior System throws exception: Convert error! Given string could not be loaded as (query or plain) molecule or reaction, see the error messages: 'SEQUENCE loader: emsc' image

Expected behavior System loads RNA

Argument: Now we allow user to load HELMs with no version at the end - i.e. RNA1{R(A)P}$$$$ instead of RNA1{R(A)P}$$$$V2.0 Why can we consider absence if mandatory sections (that ends with $-sign) as empty ones?

Versions

Issue found while testing - https://github.com/epam/Indigo/issues/1188