Skip to contents

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 EntrezID and a numeric value column used for ranking.

chemicals_meta

Data frame with ChemicalID and ChemicalName columns.

cache_dir

Directory holding cached CTD .rda files.

pAdjustMethod

Multiple-testing correction name.

Value

A data frame of GSEA enrichment results, formatted by .format_enrichment_result.