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

MolStandardize: uncharger failing in molecules with zwitterionic sulfone #5317

Closed
greglandrum opened this issue May 22, 2022 · 0 comments · Fixed by #5319
Closed

MolStandardize: uncharger failing in molecules with zwitterionic sulfone #5317

greglandrum opened this issue May 22, 2022 · 0 comments · Fixed by #5319
Labels
Milestone

Comments

@greglandrum
Copy link
Member

Describe the bug

In [46]: m = Chem.MolFromSmiles("C[S+2]([O-])([O-])C([O-])C(=O)O")

In [47]: uc = rdMolStandardize.Uncharger()

In [48]: Chem.MolToSmiles(uc.uncharge(m))
Out[48]: 'C[S+2]([O-])([O-])C([O-])C(=O)O'

That should be C[S+2]([O-])([O-])C(O)C(=O)O

Configuration (please complete the following information):

  • RDKit version: 2022.03 and master
  • OS: all
@greglandrum greglandrum added this to the 2022_03_3 milestone May 22, 2022
greglandrum added a commit to greglandrum/rdkit that referenced this issue May 22, 2022
greglandrum added a commit that referenced this issue May 30, 2022
* Fixes #5317

* Fixes #5318

* Fixes #5320

* Update Code/GraphMol/MolStandardize/Charge.cpp

Co-authored-by: Paolo Tosco <paolo.tosco.mail@gmail.com>

Co-authored-by: Paolo Tosco <paolo.tosco.mail@gmail.com>
greglandrum added a commit that referenced this issue Jun 2, 2022
* Fixes #5317

* Fixes #5318

* Fixes #5320

* Update Code/GraphMol/MolStandardize/Charge.cpp

Co-authored-by: Paolo Tosco <paolo.tosco.mail@gmail.com>

Co-authored-by: Paolo Tosco <paolo.tosco.mail@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant