Fix bugs and improve robustness of ROCS scoring#19
Open
fulopjoz wants to merge 4 commits intoCDDLeiden:devfrom
Open
Fix bugs and improve robustness of ROCS scoring#19fulopjoz wants to merge 4 commits intoCDDLeiden:devfrom
fulopjoz wants to merge 4 commits intoCDDLeiden:devfrom
Conversation
Tutorial scripts used Path.cwd() to build paths, causing failures when invoked from a different directory. Now resolve paths relative to the script file location via Path(__file__).resolve().parent.
Add docstring to _score_single_reference explaining Gaussian shape overlay, the opt_param choices, and benchmarking results showing that optimization objective has no effect on final TanimotoCombo scores when sufficient conformer pairs are sampled.
Add configurable per-isomer timeout (default 120s) for ETKDGv3 embedding to prevent pathological molecules from blocking the conformer generation pipeline indefinitely.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Follow-up fixes for the ROCS scoring module merged in #15. Addresses several bugs found during production use of the OpenEye ROCS scorer and improves robustness of conformer generation.
Changes
OpenEye ROCS scorer (
rocs_openeye.py):-shapeonlyflag always passing"false"instead of"true"when enabledcolor_optimizeparameter to the-optchemCLI flag (was silently ignored)OMP_NUM_THREADS="1"environment override from subprocess callRDKit conformer generator (
conformer_generators.py):timeoutparameter for ETKDGv3 embedding to prevent pathological molecules from blocking the pipelineTutorial scripts (
tutorial/advanced/rocs/):__file__) instead of current working directory so scripts work when invoked from any directoryRDKit ROCS scorer (
rocs_rdkit.py):_score_single_reference(Gaussian shape overlay vs graph-based ROCS)@martin-sicho