rdkit / rdkit

The official sources for the RDKit library
BSD 3-Clause "New" or "Revised" License
2.51k stars 851 forks source link

fix one case of undesired 1-3 charge recombination #7561

Closed rvianello closed 3 days ago

rvianello commented 4 days ago

What does this implement/fix? Explain your changes.

This PR fixes one of the "1-3 charge recombination" normalization transformations to prevent the undesired application on two adjacent N-oxide groups.

Any other comments?

A similar constraint I think is already in place for the aliphatic case, and this is basically the same, but applying to aromatic rings.