View source: R/Seurat.utils.less.used.R
ww.calc_helper | R Documentation |
Computes the proportion of cells expressing a specific gene within a Seurat object.
ww.calc_helper(obj, genes, slot = "RNA")
obj |
Seurat object with cell data. |
genes |
Single gene name as a character string. |
slot |
Slot to use for the analysis. Default: 'RNA'. |
Proportion of cells expressing the gene. Returns NA
if the gene is not found.
Adapted from Ryan-Zhu on GitHub.
## Not run:
ww.calc_helper(obj = seurat_object, genes = "Gene1")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.