Learn R Programming

SCIntRuler (version 0.99.6)

GetCluster: Get broad and fine clusters

Description

Get broad and fine clusters

Usage

GetCluster(seuratlist, n1 = 50, n2 = 200)

Value

A list of data frames.

Arguments

seuratlist

A list of Seurat objects, usually can be got by SplitObject(). We also accept the SingleCellExperiment object input.

n1

If the number of cells was smaller than n1, then the cluster will remain unchanged called rare cluster. The default value of n1 is 50.

n2

If the count of cells within a broad cluster is more than n2, the cluster is subdivided randomly into three fine clusters. If the cell count falls within the range of n1 to n2, two fine clusters are generated randomly. Default value is 200.

Examples

Run this code
# \donttest{
data(sim_data_sce)
sim_data <- SCEtoSeurat(sim_data_sce)
seuratlist <- Seurat::SplitObject(sim_data, split.by = "Study")
fullcluster <- GetCluster(seuratlist)
# }

Run the code above in your browser using DataLab