Learn R Programming

Seurat (version 2.0.0)

SetClusters: Set Cluster Assignments

Description

Easily set the cluster assignments using the output of GetClusters() --- a dataframe with cell names as the first column and cluster assignments as the second.

Usage

SetClusters(object, clusters = NULL)

Arguments

object

Seurat object

clusters

A dataframe containing the cell names and cluster assignments to set for the object.

Value

Returns a Seurat object with the identities set to the cluster assignments that were passed.