Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Indigo ignores alternate name for templates in MOL v3000 #2744

Open
AlexeyGirin opened this issue Jan 28, 2025 · 0 comments
Open

Indigo ignores alternate name for templates in MOL v3000 #2744

AlexeyGirin opened this issue Jan 28, 2025 · 0 comments
Labels
Export to MOL Bucket: Export to MOL related issues Priority: High Severity: High High level visibility to the user User`s Feedback

Comments

@AlexeyGirin
Copy link
Collaborator

AlexeyGirin commented Jan 28, 2025

Steps to Reproduce

  1. Go to Macro - Flex
  2. Load from file: tadfile.zip

Actual behavior
System throws exception: Convert error! {}
Image

This is because ATOM block uses alternate name (I) for BASE/Ind/I template
Image

As per specification:

A template definition begins with a line that defines template properties, followed immediately with a
single CTAB block to provide the CTAB definition:
M V30 TEMPLATE index [ name | class/name[/alternate_name1[...] ]
[NATREPLACE=[class]/name/[altname]] [ COMMENT=template_comment

Currently Biovia supports only first alternate name (so it can reference two - name and alternate_name1 only) and parse mol files with many (I tried 4) alternate names.
I think we have to implement the same support

Expected behavior
System loads without errors
Image

Versions

  • Ketcher Version 3.0.0-rc.5 Build at 2025-01-28; 15:17:24
  • Indigo Toolkit Version 1.28.0-rc.3.0-gd5bcc27cb-wasm32-wasm-clang-19.0.0
  • Chrome Version 132.0.6834.111 (Official Build) (64-bit)
  • Win10
@AlexeyGirin AlexeyGirin added Export to MOL Bucket: Export to MOL related issues Priority: High Severity: High High level visibility to the user User`s Feedback labels Jan 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Export to MOL Bucket: Export to MOL related issues Priority: High Severity: High High level visibility to the user User`s Feedback
Projects
None yet
Development

No branches or pull requests

1 participant