7 min readLiganx team

Reading a docking benchmark: ROC, AUC, and enrichment factor

What the standard virtual screening metrics mean and how to avoid fooling yourself with them when evaluating docking performance.

Every docking paper reports receiver operating characteristic curves, area under the curve, and enrichment factors. These metrics quantify how well a virtual screening method separates actives from decoys—but they measure different things, are sensitive to different failure modes, and can be surprisingly easy to misinterpret. Here's what they actually tell you and when each one matters.

The screening problem in numbers

Virtual screening ranks a library of compounds by predicted binding affinity or score. The goal is for known actives to appear near the top of the ranked list, while inactive compounds—decoys—appear near the bottom. A perfect ranker places all actives before all decoys; a random ranker gives no enrichment; a bad ranker does worse than random.

Benchmark datasets pair a set of known actives with a larger set of presumed inactives. DUD-E, for instance, provides roughly 50 actives per target and 50 decoys per active, all matched for physical properties. The challenge is that in real prospective screening you might evaluate 100,000 or a million compounds and synthesize only the top 50—so early enrichment, not overall separation, drives success.

ROC curves and AUC: the global view

A receiver operating characteristic curve plots true positive rate against false positive rate as you vary the score threshold. The area under this curve—ROC AUC—ranges from 0 to 1, where 0.5 is random performance and 1.0 is perfect separation. ROC AUC is threshold-independent and gives equal weight to every part of the ranked list.

The advantage of ROC AUC docking metrics is stability: you get a single number that summarizes the entire ranking. The disadvantage is that it weights the bottom of the list as heavily as the top. A method that ranks the first 1% of actives poorly but does well on the bottom 99% can still achieve a high AUC, even though it fails at the task you care about—finding hits in the top-ranked compounds.

ROC AUC is useful for comparing methods across many targets or understanding global ranking quality, but it should not be the only metric you examine. A method with AUC 0.75 that places 30% of actives in the top 1% is more useful than a method with AUC 0.80 that places only 5% in the top 1%.

Enrichment factor: early performance

The docking enrichment factor at fraction x of the ranked list—written EFx or EF(x%)—measures how many more actives you find at that cutoff compared to random selection. If 2% of the library is active and you find 20% of all actives in the top 1% of ranked compounds, EF1 is 10. The maximum possible enrichment factor at fraction x is 1/x; for EF1 that's 100, achieved only if all actives rank in the top 1%.

EF1 is the most commonly reported early enrichment metric because it approximates the fraction of a large library you might actually test. EF0.5, EF2, and EF5 are also used depending on experimental throughput. Unlike AUC, enrichment factor is highly sensitive to the top of the list and ignores performance below the cutoff.

The main pitfall is dependence on the ratio of actives to decoys. If your dataset contains 5% actives, the maximum EF1 is 20; if it contains 0.1% actives, the maximum is 1000. Comparing enrichment factors across benchmarks with different active ratios is invalid unless you normalize or report the active fraction explicitly. Always check how many actives are in the dataset before interpreting an enrichment number.

BEDROC and other weighted metrics

The Boltzmann-enhanced discrimination of ROC (BEDROC) integrates ROC-like sensitivity with exponential weighting favoring early retrieval. A parameter alpha controls how strongly early ranks are weighted; alpha = 20 emphasizes roughly the top 8% of the library, while alpha = 160 emphasizes the top 1%. BEDROC yields values between 0 and 1 and is less sensitive to dataset composition than raw enrichment factors.

BEDROC addresses some weaknesses of both AUC and EF but has seen less widespread adoption in the docking literature. When you encounter it, the alpha parameter tells you which fraction of the list the metric prioritizes. A BEDROC of 0.5 with alpha = 20 indicates moderately good early enrichment in the top decile.

Common ways benchmarks mislead

Even with correct metric calculations, benchmark results can mislead. One frequent issue is decoy set bias: if decoys are poorly matched to actives in molecular weight, logP, or other properties, docking scores may separate them trivially based on size or polarity rather than binding mode quality. DUD-E and later benchmarks attempt to control for this, but property matching is imperfect.

Another problem is analog bias. If a benchmark includes multiple actives from the same chemical series, they may share a scaffold that docking recognizes easily, inflating apparent performance. Removing close analogs—keeping only actives below a Tanimoto similarity threshold—often drops enrichment factors substantially and gives a more realistic view of scaffold-hopping ability.

Training set leakage is subtler. Machine-learning scoring functions trained on datasets that include close analogs or even the same targets as the benchmark will perform artificially well. Always check whether the benchmark targets appear in the training data for any learned component of the docking protocol.

What to report and what to look for

A credible docking benchmark reports ROC AUC for overall ranking quality, EF1 or EF2 for early enrichment, and the number of actives and decoys so readers can assess maximum achievable enrichment. Showing the full ROC curve or enrichment curve as a function of ranked fraction reveals where the method succeeds and where it fails.

When evaluating a docking tool for your own project, prioritize the metric that matches your experimental capacity. If you can test 50 compounds from a 10,000-compound library, EF0.5 matters more than AUC. If you are triaging hundreds of hits from a fragment screen, AUC may be more relevant because you care about the entire ranked order.

If you are running virtual screens with Liganx Studio, consider assembling a small in-house benchmark with known actives and representative negatives for your target. Docking ten actives and 500 decoys, then calculating EF1 and AUC, will tell you more about expected performance than any published benchmark on unrelated proteins. For targets with resistance mutations, our mutation docking guide describes how to validate docking against known mutant-selective inhibitors.

The limits of retrospective validation

All of these metrics measure retrospective performance: how well a method ranks compounds whose activity is already known. Prospective performance—how often top-ranked unknowns turn out to be real hits—is what matters experimentally, and it is almost always worse than retrospective benchmarks suggest. Reasons include differences between benchmark decoys and real screening libraries, target conformational heterogeneity not captured in a single crystal structure, and the simple fact that benchmarks test ranking, not absolute affinity prediction.

A docking method with EF1 of 15 on a retrospective benchmark might yield 5–10% hit rates in a prospective screen, not the 15-fold enrichment the metric implies. Treat benchmark numbers as qualitative indicators of relative method performance, not quantitative predictions of screening success. The best validation remains experimental: dock, synthesize, test.

References

  • Truchon J-F, Bayly CI. Evaluating virtual screening methods: good and bad metrics for the "early recognition" problem. J Chem Inf Model 2007; 47(2):488–508. DOI: 10.1021/ci600426e
  • Mysinger MM, Carchia M, Irwin JJ, Shoichet BK. Directory of useful decoys, enhanced (DUD-E): better ligands and decoys for better benchmarking. J Med Chem 2012; 55(14):6582–94. DOI: 10.1021/jm300687e
  • Zhao W, Hevener KE, White SW, Lee RE, Boyett JM. A statistical framework to evaluate virtual screening. BMC Bioinformatics 2009; 10:225. DOI: 10.1186/1471-2105-10-225
  • Empereur-Mot C, Guillemain H, Latouche A, Zagury J-F, Viallon V, Montes M. Predictiveness curves in virtual screening. J Cheminform 2015; 7:52. DOI: 10.1186/s13321-015-0100-8