getClusterNames: Retrieve Cluster Names

View source: R/Seurat.Utils.R

getClusterNamesR Documentation

Retrieve Cluster Names

Description

Extracts cluster names based on a specified identity class from a Seurat object.

Usage

getClusterNames(obj = combined.obj, ident = GetClusteringRuns(obj)[2])

Arguments

obj

A Seurat object. Default: combined.obj.

ident

The identity class from which to retrieve cluster names. Default uses the second clustering run from GetClusteringRuns(obj).

Value

Prints and returns the sorted unique cluster names as a character vector.

Examples

## Not run: 
getClusterNames(obj = combined.obj, ident = GetClusteringRuns(obj)[2])

## End(Not run)

vertesy/Seurat.utils documentation built on Dec. 4, 2024, 5:20 p.m.