GetGSEAMatrix {CelliD}R 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)

[Package CelliD version 1.2.1 Index]