Skip to contents

Combines the per-factor GSEA outputs from compute_factor_gsea() into a single matrix. All tested Hallmarks are kept regardless of significance; Hallmarks absent from a factor's results, or whose NES could not be computed, are filled with 0.

Usage

build_nes_matrix(gsea_results)

Arguments

gsea_results

Output list from compute_factor_gsea(), containing a GSEA_results element (named list of fgsea result tables, one per factor).

Value

A numeric matrix of NES values with Hallmarks as rows and NMF factors as columns. Missing Hallmark-factor combinations are set to 0.