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

Standardizer writes atomic properties to mol #52

Open
gayverjr opened this issue Jul 12, 2023 · 1 comment
Open

Standardizer writes atomic properties to mol #52

gayverjr opened this issue Jul 12, 2023 · 1 comment

Comments

@gayverjr
Copy link

Is standardize_mol writing atomic properties to the mol object expected behavior? Here is a situation I came across:

import rdkit
from chembl_structure_pipeline import standardizer
smi = "CC1COCC[S@]1=O |&1:6|"
mol = rdkit.Chem.MolFromSmiles(smi)
mol = standardizer.standardize_mol(mol)
print(rdkit.Chem.MolToCXSmiles(mol))

> CC1COCC[S@@+]1[O-] |atomProp:0.react_atom_idx.0:1.old_mapno.4:1.react_atom_idx.1:1.was_dummy.1:2.react_atom_idx.2:3.react_atom_idx.3:4.react_atom_idx.4:5.old_mapno.1:5.react_atom_idx.5:5.was_dummy.1:6.old_mapno.2:6.react_atom_idx.6:7.old_mapno.3:7.react_atom_idx.7,&1:6|

This seems to be valid CXSmiles, and one can always clear out the properties, but I was curious if this behavior is intended.

@greglandrum
Copy link
Collaborator

Hi @gayverjr. I believe that this is something that the RDKit itself should be cleaning up.
Would you mind creating an issue in the RDKit repository for this?

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

2 participants