Description Usage Arguments Value Examples
View source: R/labelCelltype.R
Add cell type to Seurat object.
1 | labelCelltype(obj, cluster_celltype)
|
obj |
A Seurat object with cluster. |
cluster_celltype |
A matrix. Each row is one cell type, contains NSF and padj. |
It will return a list including a Seurat object with cell type for each cell and a cell type matrix.
1 2 3 4 5 | pbmc_example <- scqc(small_pbmc_rna, min.cells = 1, min.features = 10, nfeatures = 100, npcs = 10)
pbmc_example <- doClustering(pbmc_example, dims = 1:10, k.param = 5, resolution = 0.75)
cluster_list <- getFC(pbmc_example, min.pct = 0.25, test.use = "MAST")
cluster_celltype <- doGSEA(cluster_list = cluster_list, minSize = 5)
celltype <- labelCelltype(pbmc_example, cluster_celltype)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.