setResolution: Set cluster resolution

View source: R/utility_functions.R

setResolutionR Documentation

Set cluster resolution

Description

Set 'Seurat_Clusters' metadata entry to specified cluster resolution [0, inf]. Wrapper for Seurat's FindClusters() function.

Usage

setResolution(
  object,
  resolution,
  assay = DefaultAssay(object),
  use.existing.clusters = T,
  ...
)

Arguments

object

Seurat Object

resolution

Numeric [0, inf] specifying cluster resolution. Values [0.1,1] typically perform well.

assay

Seurat assay to check for existing clustering at specified resolution.

use.existing.clusters

Logical flag specifying whether to use existing clustering solution if it already exists for specified resolution.

...

additional arguments passed to Seurat::FindClusters(...)

Value

Seurat object

Author(s)

Nicholas Mikolajewicz

See Also

FindClusters


NMikolajewicz/scMiko documentation built on June 28, 2023, 1:41 p.m.