Helper function to run many pairwise comparisons using a contrast matrix
ApplyContrasts(
data,
analysis,
name.prefix,
contrasts,
mode.slot = NULL,
genes = NULL,
verbose = FALSE,
FUN,
...
)
a new grandR object with added analysis tables (that were returned by FUN)
the grandR object
a plain name, only used for status messages
the prefix for the new analysis name; a dot and the column names of the contrast matrix are appended; can be NULL (then only the contrast matrix names are used)
contrast matrix that defines all pairwise comparisons, generated using GetContrasts
which slot to take expression values from
restrict analysis to these genes; NULL means all genes
print status messages?
a function taking 1. the data matrix, 2. a logical vector indicating condition A and 3. a logical vector indicating condition B
further parameters forward to FUN
To implement most pairwise analyses, you only have to define FUN; see the source code of LFC for an example!
LFC,PairwiseDESeq2,GetContrasts