Skip to content

Conversation

@ptosco
Copy link
Collaborator

@ptosco ptosco commented Jul 21, 2025

The KNIME RDKit mol renderer currently is affected by a bug which causes cis/trans double bonds to lose their stereochemistry specification after coordinates are added. This happens because the SWIG version of ClearSingleBondDirFlags() does not expose the onlyWedgeFlags as the C++ version does.
This PR fixes that bug by reimplementing clearSingleBondDirFlags() in Java such that updating RDKit binaries is not required. This can be done at a later stage; I have added a comment to remind myself to remove the Java implementation of clearSingleBondDirFlags() and switch to the C++ version instead.

Copy link
Contributor

@manuelschwarze manuelschwarze left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

Copy link
Contributor

@peregin55 peregin55 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Thanks!

Copy link
Member

@greglandrum greglandrum left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@greglandrum greglandrum merged commit c6be0ae into master Jul 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

5 participants