escape.matrix | R Documentation |
This function allows users to input both the single-cell RNA-sequencing counts and output the enrichment scores as a matrix.
escape.matrix(
input.data,
gene.sets = NULL,
method = "ssGSEA",
groups = 1000,
min.size = 5,
normalize = FALSE,
make.positive = FALSE,
BPPARAM = SerialParam(),
...
)
input.data |
The count matrix, Seurat, or Single-Cell Experiment object. |
gene.sets |
Gene sets can be a list, output from
|
method |
Select the method to calculate enrichment, AUCell, GSVA, ssGSEA or UCell. |
groups |
The number of cells to separate the enrichment calculation. |
min.size |
Minimum number of gene necessary to perform the enrichment calculation |
normalize |
Whether to divide the enrichment score by the number of genes TRUE or report unnormalized FALSE. |
make.positive |
During normalization shift enrichment values to a positive range TRUE for downstream analysis or not TRUE (default). Will only be applied if normalize = TRUE. |
BPPARAM |
A BiocParallel::bpparam() object that for parallelization. |
... |
pass arguments to AUCell GSVA, ssGSEA, or UCell call |
matrix of enrichment scores
Nick Borcherding, Jared Andrews
getGeneSets
to collect gene sets.
GS <- list(Bcells = c("MS4A1", "CD79B", "CD79A", "IGH1", "IGH2"),
Tcells = c("CD3E", "CD3D", "CD3G", "CD7","CD8A"))
pbmc_small <- SeuratObject::pbmc_small
ES <- escape.matrix(pbmc_small,
gene.sets = GS,
min.size = NULL)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.