Skip to content

Rgroup Improvements#1223

Merged
egonw merged 7 commits intomainfrom
rgroup-fixes
Sep 10, 2025
Merged

Rgroup Improvements#1223
egonw merged 7 commits intomainfrom
rgroup-fixes

Conversation

@johnmay
Copy link
Copy Markdown
Member

@johnmay johnmay commented Sep 10, 2025

Some required improvments to RGroup handling (for JChemPaint).

These changes setup explicit attachment atoms (wiggly line on a bond) for RGrgoup substituents. In MDL they are not stored this way so we need to add/remove them when we read/write and generate the confermations.

Likewise bond attach order specifies the bond labelling/order when a R group has multiple leaving bonds.

Example of what it looks like in JChemPaint.

Screenshot 2025-09-10 at 11 30 32

…an store a map in the 'RGroup' we can reuse this SGroup and get nicer rendering.
…oes split the "layout" package but in future (CDK v3) they will all be collapsed together.
…tom which is sprouted off the structure.

This is very useful in sketchers (JChemPaint) but for now we need this for attachment points. The sprouting
is not super great yet but we can improve it in future.
@johnmay
Copy link
Copy Markdown
Member Author

johnmay commented Sep 10, 2025

Good to go - just cleaned up the history/rebased.

@sonarqubecloud
Copy link
Copy Markdown

@egonw egonw self-assigned this Sep 10, 2025
@egonw egonw merged commit acd73ce into main Sep 10, 2025
9 of 11 checks passed
@johnmay johnmay deleted the rgroup-fixes branch March 3, 2026 13:55
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

Successfully merging this pull request may close these issues.

2 participants