epam / Indigo

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

Error message is wrong for invalid probability number (RNA1{(r(A)p:10,r(C)p):aaa}$$$$V2.0) #2274

Closed AlexeyGirin closed 1 month ago

AlexeyGirin commented 1 month ago

Steps to Reproduce

  1. Toggle to Macromolecules mode
  2. Load using Paste from clipboard way: RNA1{(r(A)p:10,r(C)p):aaa}$$$$V2.0 image

Actual behavior Error message is wrong: Convert error! Given string could not be loaded as (query or plain) molecule or reaction, see the error messages: 'SEQUENCE loader: Unmatched '('' image

Expected behavior Error message should report that probability number is invalid (in the same manner as it does for peptides and CHEMs)

Versions

Found while testing - https://github.com/epam/Indigo/issues/2188

AlexeyGirin commented 1 month ago

Wrong HELM it is impossible to set probability for DNA/RNA