Oracle & Scoring#
- class mockdock.oracle.MDOracle(benchmark_name, budget=1000, docking_backend='auto', clip_reward_upper_bound=None, scratch_dir=None, run_dir=None, n_cpus=None, n_gpus=None, adgpu_executable=None)[source]#
Bases:
objectmockdock Oracle — Fragment-Constrained Generative Model Benchmark.
Provides a standardized interface for benchmarking generative models against specific protein-ligand systems using fragment-constrained docking.
- Parameters:
- property generation_round: int#
Number of score() batch calls made so far (i.e., generation rounds).
- property fragment_smiles_with_dummies: str | None#
Fragment SMILES with (*) dummy attachment point(s) for PromptSMILES scaffold decoration. Returns None if not yet set in the benchmark config TOML.
- property libinvent_scaffold_with_dummies: str | None#
LibInvent-specific scaffold with two attachment points when needed.
- set_backend_config(**kwargs)[source]#
Override default backend settings (e.g. vina_exhaustiveness, n_poses).
- classmethod list_benchmarks()[source]#
Return all canonical benchmark names bundled with the mockdock package.
- get_initial_compounds()[source]#
Retrieve the initial compound set (lowest-quartile bioactivity). These are provided to the generative model as starting points.
- Return type:
DataFrame
- get_validation_compounds()[source]#
Retrieve the validation compound set (above-lowest-quartile bioactivity). These are used to evaluate oracle performance.
- Return type:
DataFrame
- export_top_poses(n=10, output_path=None)[source]#
Export the top-N docked poses as a single SDF file. Uses DockingAnalyzer (meeko) to extract real docked coordinates from DLG/PDBQT.