Construct an adjacency matrix from a list of cluster.

getClusterAdjacencyMatrix(cluster, gs_names)

Arguments

cluster

A list of clusters, where each cluster member is indicated by a numeric value

gs_names

A vector of geneset names

Value

A Matrix::Matrix() of adjacency status

Examples

cluster <- list(c(1:5), c(6:9))
gs_names <- c("a", "b", "c", "d", "e", "f", "g", "h", "i")
adj <- getClusterAdjacencyMatrix(cluster, gs_names)