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

Kekulization Error #65

Open
Yuvaraj7UV opened this issue Feb 26, 2023 · 4 comments
Open

Kekulization Error #65

Yuvaraj7UV opened this issue Feb 26, 2023 · 4 comments

Comments

@Yuvaraj7UV
Copy link

smiles = Chem.MolFragmentToSmiles(mol, atoms, kekuleSmiles=True)
rdkit.Chem.rdchem.KekulizeException: Can't kekulize mol. Unkekulized atoms: 6 8 12

How did you deal with this kekulization error?

@huangtinglin
Copy link

I also encounter the same problem. Have you fixed it?

@manurubo
Copy link

I'm having the same problem.

I have found that if you modify the next in chemutils.py it works:

  1. set kekuleSmiles of .py to False (inside get_clique_mol and get_smiles)
  2. add sanitize=False in get_mol
  3. Comment Chem.Kekulize(mol) in get_mol.

But I'm not sure if the whole model is gonna be afected.

@cosmina98
Copy link

I ve just added:
'for atom in atoms:
mol.GetAtomWithIdx(atom).SetNumExplicitHs(4)'
at the beginning of get_clique_mol()
And did not modify anything else.
"rdkit/rdkit#3334"
I am too unsure about how this affects the quality of the generated data

@jianglikun
Copy link

this is because the version of rdkit:
pip install rdkit-pypi==2020.9.5.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants