cluster_set_from_matrix | R Documentation |
Transform any matrix (e.g expression matrix) and list (e.g markers obtained through kmeans or any partitioning algorithm) into a ClusterSet object.
cluster_set_from_matrix(object = NULL, markers = NULL)
object |
A matrix or data.frame. |
markers |
A list of vector containing the gene sets |
m <- create_3_rnd_clust()[1:300,]
rownames(m) <- paste0("gene", 1:300)
markers <- list(a=paste0("gene", 1:100),
b=paste0("gene", 101:200),
c=paste0("gene", 201:300))
cs <- cluster_set_from_matrix(m, markers)
plot_heatmap(cs, interactive = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.