change.clust {iCellR} | R Documentation |
This function re-names the clusters in the best.clust slot of the iCellR object.
change.clust(x = NULL, change.clust = 0, to.clust = 0, clust.reset = FALSE)
x |
An object of class iCellR. |
change.clust |
The name of the cluster to be changed. |
to.clust |
The new name for the cluster. |
clust.reset |
Reset to the original clustering. |
An object of class iCellR.
demo.obj <- change.clust(demo.obj, change.clust = 1, to.clust = 3) cluster.plot(demo.obj,plot.type = "umap",interactive = FALSE) demo.obj <- change.clust(demo.obj, change.clust = 3, to.clust = "B Cell") cluster.plot(demo.obj,plot.type = "umap",interactive = FALSE) demo.obj <- change.clust(demo.obj, clust.reset = TRUE) cluster.plot(demo.obj,plot.type = "umap",interactive = FALSE)