Description Usage Arguments Value
View source: R/Classification_SGS.R
Instead of the status quo score of Seurat AddModuleScore which is 1 score 1 gene, this function takes a list of genes and computes per set, the average of the individual scores.
1 2 3 4 5 6 7 8 9 | CalculateModuleScoreAvg(
seuratObj,
genes.list = NULL,
genes.pool = NULL,
n.bin = 25,
ctrl.size = 100,
assay = NULL,
seed.use = 1
)
|
seuratObj, |
A Seurat object. |
genes.list, |
A charater vector of genes to score |
genes.pool, |
Gene list to base as the pool; NULL = all. |
n.bin, |
number of bins to evaluate score across; default 25. |
ctrl.size, |
control gene set size. |
assay, |
The seurat assay to use. Defaults to the result of DefaultAssay() |
seed.use, |
random seed |
A dataframe with CellBarcode and Score for this gene set
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.