Loads the cached chemical->Entrez-ID mapping, prepares the ranked
input, calls the gsea engine, and feeds the result
through the shared .format_enrichment_result.
Usage
.run_gsea(
x,
chemicals_meta,
cache_dir,
pAdjustMethod,
interaction_types = NULL,
gene_id_type = "symbol",
...
)Arguments
- x
Data frame with column
EntrezIDand a numeric value column used for ranking.- chemicals_meta
Data frame with
ChemicalIDandChemicalNamecolumns.- cache_dir
Directory holding cached CTD
.rdafiles.- pAdjustMethod
Multiple-testing correction name.
- interaction_types
Character vector of CTD
InteractionActionsvalues to retain when building gene sets, orNULLfor all.- gene_id_type
Either
"symbol"or"entrez": the identifier reported in theEnrichedGenescolumn.- ...
Forwarded to
gsea(e.g.minSize,maxSize).
Value
A data frame of GSEA enrichment results, formatted by
.format_enrichment_result.