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 wrong probability number that is greater than 100 (RNA1{(r(A)p:10,r(C)p):1000}$$$$V2.0) #2276

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):1000}$$$$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 (and optionally - greater than 100)

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