GetGSEAMatrix: Get Matrix from Enrichment Results

Description Usage Arguments Value Examples

View source: R/gsea.R

Description

Get Matrix from Enrichment Results

Usage

1
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

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

cbl-imagine/CellID documentation built on July 22, 2020, 7:18 p.m.