epam / epam/Indigo

ketcher generate wrong *.ket format while processing reactants and catalysts

Open
#927 2 comments 0 reactions 0 assignees View on GitHub
User`s Feedback
Dominant language
C++
Stars
406
Forks
134
Avg merge
2d 11h
Merged PRs (30d)
24

Description

wrong number of reactants and catalysts
.ket file from ketcher 2.5
python indigo 1.83

```python
from indigo import Indigo

indigo_ins = Indigo()

r = indigo_ins.loadReactionFromFile(r"D:\reaction.ket")
reactants = r.iterateReactants()

for reactant in reactants:
print(reactant.smiles())
if __name__ == '__main__':
pass
```
Output:
```python
C1CCCCCCC1
CC(=O)[O-]
[Na+]
```
Expected:
```python
C1CCCCCCC1
CC(=O)[O-].[Na+]
```
![image](https://user-images.githubusercontent.com/18494105/207017249-6fe9ee9c-9ef6-4224-b9b8-bac82f82c037.png)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the reaction.ket example and the Python entry points loadReactionFromFile and iterateReactants. Reproduce the output with Indigo 1.83, then trace how reactants and catalysts are separated; done means the sodium ion remains grouped with the acetate as shown in the expected output.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.