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

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

See also

FindClusters

Author

Nicholas Mikolajewicz