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 missing probability number (PEPTIDE1{(A:,C:20)}$$$$V2.0) #2271

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: PEPTIDE1{(A:,C:20)}$$$$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: Invalid number.' image

Expected behavior Error message should report that probability number is missing (in any case - invalid number for missing number is a wrong diagnostic)

Versions

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

AlexeyGirin commented 1 month ago

Verified. image

Versions