test_genesets_gsea {goat} | R Documentation |
GSEA as implemented in the fgsea R package
Description
In most cases, it's more convenient to call the more generic test_genesets
function which also deals with multiple-testing correction (per geneset source)
Usage
test_genesets_gsea(
genesets,
genelist,
score_type = NULL,
parallel_threads = 1L,
gseaParam = 1,
nPermSimple = 50000,
gsea_genelist_col = NULL,
gsea_scoretype = NULL,
random_seed = 123
)
Arguments
genesets |
data.frame/tibble with geneset and gene columns |
genelist |
data.frame/tibble with gene and score columns. Should contain columns gene and either pvalue or effectsize, depending on |
score_type |
how to compute gene scores? options: "pvalue", "effectsize", "custom".
Option "pvalue" uses -log10 transformed values from the pvalue column in |
parallel_threads |
number of threads to use for parallel processing. Set to 0 to automatically select all available processors/cores, set to 1 to disable (default) or to N to use N processes. Note that multiprocessing sometimes breaks on RStudio + Windows, hence this parameter is set to 1 to disable multiprocessing by default for now |
gseaParam |
passed to |
nPermSimple |
passed to |
gsea_genelist_col |
optional, only used for |
gsea_scoretype |
optional, only used for |
random_seed |
the random seed that is passed to |
Value
input genesets
table with results in the "pvalue", "score_type" and "gsea_nes" columns
See Also
test_genesets