View source: R/TME_classification.R
TME_classification | R Documentation |
The function allows the user to classify non-tumor cells in tumor microenvironment. It implements the Mann-Whitney-Wilcoxon Gene Set Test (MWW-GST) algorithm and tests for each cell the enrichment of a collection of signatures of different cell types.
TME_classification(expMat, minLenGeneSet = 10,
alternative = "two.sided", pvalFilter = FALSE, fdrFilter = TRUE,
pvalCutoff = 0.01, nesCutoff = 0.58, nNES = 1)
expMat |
Gene expression matrix where rows are genes presented with Hugo Symbols and columns are cells. Gene expression values should be normalized counts. |
minLenGeneSet |
Minimum gene set length |
alternative |
a character string specifying the alternative hypothesis of wilcoxon test, must be one of "two.sided" (default), "greater" or "less". |
pvalFilter |
Logical, if TRUE results will be filtered for p-Value. Defoult is FALSE. |
fdrFilter |
Logical, if TRUE results will be filtered for FDR. |
pvalCutoff |
Numeric p-Value (or FDR) threshold. Gene set with p-Value (or FDR) greater than pvalCutoff will be discarded (default is 0.01). |
nesCutoff |
Numeric threshold. Gene set with NES greater than nesCutoff will be discarded (default is 0.58) |
nNES |
Default is 0.58, so each cell is classified with a specific phenotype based on the first significant enriched gene set. |
A list with two items: Class (character) and ClassLegend (character)
library(scTHI.data)
data(scExample)
Class <- TME_classification(scExample)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.