GetGSEAMatrix: Get Matrix from Enrichment Results

View source: R/gsea.R

GetGSEAMatrixR Documentation

Get Matrix from Enrichment Results

Description

Extract enrcihment score Matrix from RunGSEA functions.

Usage

GetGSEAMatrix(X, metric = "ES")

Arguments

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)

Value

A matrix of geneset enrichment metric with cell/group at columns and pathways/genesets at rows

Examples

seuratPbmc <- RunMCA(seuratPbmc, nmcs = 5)
GSEAResults <- RunGroupGSEA(seuratPbmc, Hallmark, group.by = "seurat_clusters", dims = 1:5)
GSEAMatrix <- GetGSEAMatrix(GSEAResults)

RausellLab/CelliD documentation built on Jan. 12, 2024, 3:44 a.m.