renameClusters,ClusterExperiment,character-method {clusterExperiment} | R Documentation |
Change the assigned names or colors of the clusters in a clustering stored in the clusterLegend slot of the object.
## S4 method for signature 'ClusterExperiment,character' renameClusters(object, value, whichCluster = "primary", matchTo = c("name", "clusterIds")) ## S4 method for signature 'ClusterExperiment,character' recolorClusters(object, value, whichCluster = "primary", matchTo = c("name", "clusterIds"))
object |
a ClusterExperiment object. |
value |
The value to be substituted in the corresponding slot. See the
slot descriptions in |
whichCluster |
argument that can be a single numeric or character value
indicating the single clustering to be used. Giving values that result in more than one clustering will result in an error. See details of |
matchTo |
whether to match to the cluster name
( |
renameClusters
changes the names assigned to clusters within a
clustering
recolorClusters
changes the colors assigned to clusters within
a clustering