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).
GetClusters(object)
Seurat object with cluster assignments
Returns a dataframe with cell names and cluster assignments
# NOT RUN {
pbmc_small
clusters <- GetClusters(object = pbmc_small)
head(clusters)
# }
Run the code above in your browser using DataLab