GetGSEAMatrix {CelliD} | R Documentation |
Extract enrcihment score Matrix from RunGSEA functions.
GetGSEAMatrix(X, metric = "ES")
X |
an enrichment results obtained by RunGroupGSEA or RunCellGSEA |
metric |
a character indicating which metric to use as value of matrix (ES, NES, padj, pval) |
A matrix of geneset enrichment metric with cell/group at columns and pathways/genesets at rows
seuratPbmc <- RunMCA(seuratPbmc, nmcs = 5) GSEAResults <- RunGroupGSEA(seuratPbmc, Hallmark, group.by = "seurat_clusters", dims = 1:5) GSEAMatrix <- GetGSEAMatrix(GSEAResults)