I have some data from a collaborator which consists of p-values for ~2000 comparisons (proteins), and each protein was compared in several contrasts (control vs condition1, control vs condition2, etc).
When controlling for FDR in multiple comparisons one would input all the comparison p-values. However in this case would that mean:
- the p-values for all contrasts?
- or independently for each contrast?
The final goal of the analysis is to (i) find candidates in each comparison and (ii) determine the overlap of candidates between conditions.
The section "Multiple Testing Across Contrasts" in the limma user guide together with the decideTests function may be useful
Tools like edgeR do it on a per-contrast basis from what I understand via its
topTags
function by default applying the BH correction.I had a look at the source code, but can't see the bit where they split/group by contrast. Can you point it out please? At first glance it looks like it is calculated for the full table. Cheers.
The
object
itself already contains the contrast that you give to this function since it is the output of e.g.glmQLFTest
which takes a coefficient or contrast from the design matrix.Cheers. I am not very familiar with
edgeR
, used it only on occasion.