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

Error message is wrong if in case if position indicator in IDT code contradicts real position of the monomer in the chain #1984

Closed AlexeyGirin closed 6 days ago

AlexeyGirin commented 3 weeks ago

Steps to Reproduce

  1. Load following IDT string using Paste from Clipboard way: /32MOErC/*/32MOErT/ image

Actual behavior System throws an error: Convert error! Given string could not be loaded as (query or plain) molecule or reaction, see the error messages: 'SEQUENCE loader: IDT alias 32MOErC not found at five-prime end position.' image

Expected behavior System throws an error: Position of monomer 1 in sequence contradicts its code image

As per requirement:

In case if position indicator in IDT code contradicts real position of the monomer in the chain, this should be treated as format error and import should fail with appropriate error message: Position of monomer \<IDT id> in sequence contradicts its code

Versions:

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