Skip to content

RDKit GetSSSR Non-determinism Fix#2920

Open
JacksonBurns wants to merge 3 commits intoReactionMechanismGenerator:mainfrom
JacksonBurns:fix/rdkit_getsssr_determinism
Open

RDKit GetSSSR Non-determinism Fix#2920
JacksonBurns wants to merge 3 commits intoReactionMechanismGenerator:mainfrom
JacksonBurns:fix/rdkit_getsssr_determinism

Conversation

@JacksonBurns
Copy link
Copy Markdown
Contributor

Goal of this PR is to resolve: #2912

The RDKit GetSSSR algorithm is deterministic for the same input (unlike the previous RMG version) but the process of converting the RMG molecule into RDKit does not guarantee the same ordering of atoms, which results in non-determinism. This PR forces the RDKit molecule to have a consistent ordering, and should (hopefully) give the same results each time.

Easiest way to test this: just need to run the regression tests multiple times on the same reference results (so, on the same day, without any changes to main). The results should be different from the main results, but in the same way.

Goal of this PR is to resolve: ReactionMechanismGenerator#2912

The RDKit `GetSSSR` algorithm _is_ deterministic for the same input (unlike the previous RMG version) __but__ the process of converting the RMG molecule into RDKit does _not_ guarantee the same ordering of atoms, which results in non-determinism. This PR forces the RDKit molecule to have a consistent ordering, and should (hopefully) give the same results each time.

To test this, we just need to run the regression tests multiple times on the same reference results (so, on the same day, without any changes to `main`). The results should be different from the `main` results, but in the same way.
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.

RDKit GetSSSR Nondeterminism

1 participant