cluster_set_from_matrix: Transform any matrix and list into a ClusterSet object.

View source: R/convert.R

cluster_set_from_matrixR Documentation

Transform any matrix and list into a ClusterSet object.

Description

Transform any matrix (e.g expression matrix) and list (e.g markers obtained through kmeans or any partitioning algorithm) into a ClusterSet object.

Usage

cluster_set_from_matrix(object = NULL, markers = NULL)

Arguments

object

A matrix or data.frame.

markers

A list of vector containing the gene sets

Examples

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)


dputhier/dbfmcl documentation built on Dec. 20, 2024, 1:59 a.m.