One test of differential expression per gene: 33,469 p-values from the airway data (dexamethasone versus control, DESeq2). Their histogram is a mixture of a flat null part and a peak of real effects near 0. Estimate the null proportion π0, read off a false discovery rate, run Bonferroni and Benjamini–Hochberg, split the genes by mean count to see why weighting helps, and check by simulation that BH keeps the FDR at π0φ.
BH: sort the p-values, find the largest k with p(k) ≤ φk/m, reject the k smallest. The weighted version (used by IHW) applies BH to pi/wi with weights that average 1; the weights here are the ones R's ihw chose from baseMean.
code/ch06_testing.R (functions airway_results, bh_k, ihw_result). This page reproduces the values (BH at φ = 0.1: 4,099; Bonferroni: 1,444; weighted BH with the IHW weights: 4,892; π0(0.5) = 1.129284; 4,772 p-values in [0, 0.025]).