Configuration & Loader#
Shared loader for mockdock benchmark config and bioactivity data. Used by both MDOracle and MDEvaluator.
- class mockdock.loader.BenchmarkLoader(benchmark_name, scratch_dir=None)[source]#
Bases:
objectLightweight loader: reads the benchmark TOML config and bioactivity CSV. Does NOT initialise any docking engine or create run directories.
- Parameters:
benchmark_name (str)
scratch_dir (Path | None)
- get_full_data_and_threshold()[source]#
Load bioactivity data and compute the 25th-percentile activity threshold.
Lookup order: 1. In-memory cache 2. Package-bundled CSV (mockdock/bioactivity_data/<name>.csv) 3. Scratch cache (~/.mockdock/bioactivity_data/<name>_chembl.csv) 4. Live ChEMBL fetch