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

clear MDL Rgroup labels from core atoms when we aren't using them #5904

Merged
merged 1 commit into from
Dec 28, 2022

Conversation

greglandrum
Copy link
Member

@greglandrum greglandrum commented Dec 28, 2022

This is a simple fix to stop propagating RGroup labels from the input core to the output cores in cases when we haven't requested that this should happen.

Here's an example.

The core used for RGD:
image

And then the "Core" element from one of the result rows after doing an RGD with rgdps.rgroupLabelling = rdRGroupDecomposition.RGroupLabelling.AtomMap:
image

Notice that the two "extra" attachment points are correct: they just have the atom map, but the three original attachments are still carrying the R group labels from the input core. What we should get is this:
image

@greglandrum greglandrum added this to the 2022_09_4 milestone Dec 28, 2022
@bp-kelley bp-kelley merged commit 14211b4 into rdkit:master Dec 28, 2022
@greglandrum greglandrum deleted the fix/extra_mdl_rlabels branch December 28, 2022 17:36
greglandrum added a commit that referenced this pull request Feb 23, 2023
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 this pull request may close these issues.

None yet

2 participants