Learn R Programming

Seurat (version 2.1.0)

GetClusters: Get Cluster Assignments

Description

Retrieve cluster IDs as a dataframe. First column will be the cell name, second column will be the current cluster identity (pulled from object@ident).

Usage

GetClusters(object)

Arguments

object

Seurat object with cluster assignments

Value

Returns a dataframe with cell names and cluster assignments

Examples

Run this code
# NOT RUN {
pbmc_small
clusters <- GetClusters(object = pbmc_small)
head(clusters)

# }

Run the code above in your browser using DataLab