evalRandomGS | R Documentation |
This function evaluates the proportion of rejected null hypotheses (= the fraction of significant gene sets) of an enrichment method when applied to random gene sets of defined size.
evalRandomGS(
method,
se,
nr.gs = 100,
set.size = 5,
alpha = 0.05,
padj = "none",
perc = TRUE,
reps = 100,
rep.block.size = -1,
summarize = TRUE,
save2file = FALSE,
out.dir = NULL,
...
)
method |
Enrichment analysis method. A character scalar chosen
from |
se |
An expression dataset of class |
nr.gs |
Integer. Number of random gene sets. Defaults to 100. |
set.size |
Integer. Gene set size, i.e. number of genes in each random gene set. |
alpha |
Numeric. Statistical significance level. Defaults to 0.05. |
padj |
Character. Method for adjusting p-values to multiple testing.
For available methods see the man page of the stats function
|
perc |
Logical. Should the percentage (between 0 and 100, default) or the proportion (between 0 and 1) of significant gene sets be returned? |
reps |
Integer. Number of replications. Defaults to 100. |
rep.block.size |
Integer. When running in parallel, splits |
summarize |
Logical. If |
save2file |
Logical. Should results be saved to file for subsequent
benchmarking? Defaults to |
out.dir |
Character. Determines the output directory where results are
saved to. Defaults to |
... |
Additional arguments passed to the selected enrichment method. |
A named numeric vector of length 2 storing mean and standard deviation
of the proportion of significant gene sets across reps
replications
(summarize=TRUE
); or a numeric vector of length reps
storing the
the proportion of significant gene sets for each replication itself
(summarize=FALSE
).
Ludwig Geistlinger <Ludwig.Geistlinger@sph.cuny.edu>
sbea
and nbea
for carrying out set- and network-based enrichment analysis.
BiocParallelParam
and register
for
configuration of parallel computation.
# loading two datasets from the GEO2KEGG compendium
geo2kegg <- loadEData("geo2kegg", nr.datasets = 2)
# only considering the first 1000 probes for demonstration
geo2kegg <- lapply(geo2kegg, function(d) d[1:1000,])
# preprocessing and DE analysis for two of the datasets
geo2kegg <- maPreproc(geo2kegg)
geo2kegg <- runDE(geo2kegg)
evalRandomGS("camera", geo2kegg[[1]], reps = 3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.