mgGCluster | R Documentation |
merge cluster
merge clusters given the merged cluster IDs.
mgGCluster(x, l, rename=TRUE);
x |
vector as cluster ID |
l |
list, each object is vector. all clusters will be renamed as the first one |
rename |
if TRUE, the ID will be renamed. |
A list of merged result.
rm(list=ls());
library(scCorr);
## cluster matrix
cluf <- "https://github.com/CBIIT-CGBB/scCorr/raw/master/data/01/03clust_table.txt";
clu <- read.table(cluf, header=T, sep="\t");
## get one cluster result
out <- mgGCluster(clu[,23], list(c(9, 10), c(19, 20)), rename=F);
table(out$merged)
table(clu[,23]);
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.