Run Seurat analysis
Usage
runSeurat(object, ...)
# S4 method for Seurat
runSeurat(
object,
regressCellCycle = c("s-g2m-diff", "yes", "no"),
varsToRegress = c("nCount_RNA", "mitoRatio"),
dims = "auto",
resolution = seq(from = 0.2, to = 1.2, by = 0.2),
workers = "auto"
)
# S4 method for SingleCellExperiment
runSeurat(object, ...)Arguments
- object
Object.
- ...
Additional arguments.
- regressCellCycle
character(1)."s-g2m-diff": Calculate the difference between S and G2/M phases and use that to regress. SeeCC.Differencemetric in Seurat vignette."yes": Regress out any effects of both S and G2/M phase variable. Refer to"S.Score"and"G2M.Score"metrics in Seurat vignette."no": Don't calculate cell-cycle scoring and don't regress.
Refer to the Seurat cell-cycle regression vignette for details.
- varsToRegress
characterorNULL. Unwanted sources of variance to regress. Note that whenregressCellCycleis not"no", then the corresponding cell-cycle variables are added automatically. Passes to Seurat::ScaleData internally.- dims
"auto"orinteger. Dimensions of reduction to use as input for shared nearest neighbor (SNN) graph construction. When set to "auto" (default), the elbow point is calculated internally. SeeplotPcElbow()for details. Passes toSeurat::FindNeighbors()andSeurat::RunUMAP()internally.- resolution
numeric. Resolutions to calculate for clustering. Passes toSeurat::FindClusters()internally.Currently supported:
"uwot", changed to default in Seurat 3. Note that this setsmetric = "cosine"automatically."umap-learn", which requires reticulate. Note that this setsmetric = "correlation"automatically.
- workers
"auto",integer(1), orNULL. Disable parallelization with future by setting toNULL.