Calculate AUC
tmodAUC(
l,
ranks,
modules = NULL,
stat = "AUC",
recalculate.ranks = TRUE,
filter = FALSE,
mset = "LI",
nodups = TRUE
)
List of gene names corresponding to rows from the ranks matrix
a matrix with ranks, where columns correspond to samples and rows to genes from the l list
optional list of modules for which to make the test
Which statistics to generate. Default: AUC
Filtering and removing duplicates will also remove ranks, so that they should be recalculated. Use FALSE if you don't want this behavior. If unsure, stay with TRUE
Remove gene names which have no module assignments
Which module set to use. "LI", "DC" or "all" (default: LI)
Remove duplicate gene names in l and corresponding rows from ranks
A matrix with the same number of columns as "ranks" and as many rows as there were modules to be tested.
tmodAUC calculates the AUC and U statistics. The main purpose of this function is the use in randomization tests. While tmodCERNOtest and tmodUtest both calculate, for each module, the enrichment in a single sorted list of genes, tmodAUC takes any number of such sorted lists. Or, actually, sortings -- vectors with ranks of the genes in each replicate. Note that the input for this function is different from tmodUtest and related functions: the ordering of l and the matrix ranks does not matter, as long as the matrix ranks contains the actual rankings. Each column in the ranks matrix is treated as a separate sample.
tmod-package
# NOT RUN {
data(tmod)
l <- tmod$GENES$ID
ranks <- 1:length(l)
res <- tmodAUC(l, ranks)
head(res)
# }
Run the code above in your browser using DataLab