Ketcher format query molecules fail to load in Indigo
- Dominant language
- C++
- Stars
- 406
- Forks
- 134
- Avg merge
- 2d 11h
- Merged PRs (30d)
- 24
Description
**Steps to Reproduce**
1. Use Indigo library (Bingo cartridge). Describe environment
2. Add script or SQL to reproduce the issue
Reproducible via the python library:
```
>>> from indigo import Indigo
>>> i = Indigo()
>>> a = i.loadStructure('CC[*]')
>>> i.loadQueryMolecule(a.json())
Traceback (most recent call last):
File "", line 1, in
File "/Users/martin/main/env/lib/python3.11/site-packages/indigo/indigo/indigo.py", line 463, in loadQueryMolecule
IndigoLib.checkResult(
File "/Users/martin/main/env/lib/python3.11/site-packages/indigo/indigo/indigo_lib.py", line 1001, in checkResult
raise exception_class(IndigoLib.lib.indigoGetLastError())
indigo.indigo.indigo_exception.IndigoException: molecule json loader: invalid atom type: rg-labe
```
The use case is:
* User uses `ketcher` frontend with a smiles string that contains `[*]`.
* Initial `/layout` request works for SMILES string. Any future API request fails with the ketcher json format.
* User interacts with `ketcher` firing `/render` or `/layout` API request.
* `indigo` API fails to load the molecule.
**Expected behavior**
A clear and concise description of what you expected to happen.
* Query molecules described in ketcher format should work.
**Actual behavior**
A clear and concise description of what the bug is.
**Attachments**
If applicable, add attachment files to reproduce the issue.
**Indigo/Bingo version**
Provide full version
Latest version. 1.11.0 -> 1.15.0
**Additional context**
Add any other context about the problem here.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.