Mean model and estimand
With TMMwsp effective library size , ComBat-refQL fits
For reference batch , the transport estimand is . The design must identify batch separately from supplied biological groups and covariates.
Hierarchical dispersion
The negative-binomial dispersion is
edgeR supplies the gene baseline; an information-weighted NB likelihood estimates one reference-centred multiplier per batch. QL dispersion quantifies coefficient uncertainty and never enters NB count probabilities.
Evidence-adaptive EB moderation
For raw QL contrast , QL variance , prior mean , and prior variance , the standard EB weight is
ComBat-refQL then uses
Weak or uncertain effects retain stronger EB stabilization; strongly separated effects approach raw QL continuously. There is no threshold or tuning parameter. This is evidence-adaptive EB moderation, not an exact conjugate posterior mean.
Counterfactual transport
For a source observation, the reference mean is . Given observed count , the deterministic mid-P probability is
and . Machine-safe clipping handles distribution tails. Reference observations bypass transport and remain exact.
TMMwsp identifies a relative compositional scale. An unanchored absolute global RNA-output shift is not identifiable without external information.