Skip to contents

This function manages the GSEA analysis for a specific level. It extracts genes associated with the clustered hits, removes rows with `NA` values, and runs the GSEA analysis using the `create_gsea_report` function.

Usage

manage_gsea_level(
  clustered_hits,
  level_name,
  databases,
  clusterProfiler_params,
  universe
)

Arguments

clustered_hits

A dataframe containing the clustered hits for a specific level. It must include a column named `feature` to extract genes.

level_name

A character string representing the name of the level.

databases

A list of databases for the gene set enrichment analysis.

clusterProfiler_params

Additional parameters for the GSEA analysis, default is NA. Those include adj_p_value, pAdjustMethod, etc (see clusterProfiler documentation).

universe

Enrichment background data, default is NULL.

Value

The result of the `create_gsea_report` function, which typically includes various plots and enrichment results.