
Derive TME meta-programs by clustering Hallmarks across NMF factors
derive_meta_programs.RdHierarchically clusters (Ward.D2 on Euclidean distance) Hallmark gene sets by
their NES profile across NMF factors to identify recurrent transcriptional
programs in the TME. Use annotate_metaprograms_TME() afterwards to label
each meta-program with a Bagaev et al. (2021) MFP subtype.
Arguments
- gsea_results
Output of
compute_factor_gsea()(a list with aGSEA_resultselement, one table per NMF factor).- k
Integer. Number of meta-programs (clusters) to extract. If
NULL(default), chosen at the elbow of the within-cluster sum of squares (the k with the largest second difference) for k = 2 to min(10, n_hallmarks - 1).- file_name
Optional character suffix for the saved heatmap (
Results/TCGA_meta_programs_<file_name>.pdf).- plot
Logical. If
TRUE(default), saves a clustering heatmap.