RenameCluster: Renaming one cluster

Description Usage Arguments Value Examples

Description

RenameCluster function enables renaming a cluster in 'clustering.manual' slot.

Usage

1
2
3
4
RenameCluster.SingleCellExperiment(object, old.cluster.name, new.cluster.name)

## S4 method for signature 'SingleCellExperiment'
RenameCluster(object, old.cluster.name = "", new.cluster.name = "")

Arguments

object

of SingleCellExperiment class

old.cluster.name

a character variable denoting the old name of the cluster

new.cluster.name

a character variable the new name of the cluster

Value

object of SingleCellExperiment class

Examples

1
2
3
4
5
6
7
8
9
library(SingleCellExperiment)
sce <- SingleCellExperiment(assays = list(logcounts = pbmc3k_500))
sce <- PrepareILoReg(sce)
## These settings are just to accelerate the example, use the defaults.
sce <- RunParallelICP(sce,L=2,threads=1,C=0.1,k=5,r=1)
sce <- RunPCA(sce,p=5)
sce <- HierarchicalClustering(sce)
sce <- SelectKClusters(sce,K=5)
sce <- RenameCluster(sce,1,"cluster1")

ILoReg documentation built on Nov. 8, 2020, 8:20 p.m.