- gsea_results
A data frame containing GSEA results from pathway_gsea.
Must contain pathway_id column and either NES or direction column.
- abundance
A data frame or matrix containing the original abundance data
(genes/KOs as rows, samples as columns) used in the GSEA analysis.
- metadata
A data frame containing sample metadata with group information.
- group
Character string specifying the column name in metadata for grouping.
- pathway_reference
A data frame containing pathway-to-gene mappings.
Must have columns: pathway_id (or go_id for GO) and a column containing
gene/KO members (semicolon-separated). If NULL, attempts to use built-in
KEGG or GO reference data.
- pathway_type
Character string specifying the pathway type: "KEGG", "GO", or "MetaCyc".
Default is "KEGG".
- n_pathways
Integer specifying the number of top pathways to display.
Default is 10.
- sort_by
Character string specifying how to sort pathways:
"NES" (Normalized Enrichment Score), "pvalue", or "p.adjust".
Default is "p.adjust".
- show_direction
Logical. If TRUE, colors ridges by enrichment direction.
Default is TRUE.
- colors
Named character vector with colors for "Up" and "Down" directions.
Default is blue for down-regulated and red for up-regulated.
- title
Character string for plot title.
- x_lab
Character string for x-axis label.
- scale_height
Numeric value controlling the overlap of ridges.
Default is 0.9. Higher values create more overlap.
- alpha
Numeric value for ridge transparency (0-1). Default is 0.7.