
Build a GSEA-Derived Signature Label for a Cell Subgroup
Source:R/cell_deconvolution.R
create_gsea_signature.RdRuns fgsea on ranked genes and creates a subgroup signature name based on the top positively enriched pathway.
Arguments
- gene_scores
Data frame of ranked scores (as produced by
compute_data_driven_rank()).- cell_type
Character label used as prefix in the generated signature name.
- pathways
Optional named list of pathways (
pathway -> genes). IfNULL, Hallmark pathways frommsigdbrare used.- plot
Logical; if
TRUE, save a top-20 fgsea dot plot inResults/.