R/gs_Graph.R
getClusterAdjacencyMatrix.Rd
Construct an adjacency matrix from a list of cluster.
list
getClusterAdjacencyMatrix(cluster, gs_names)
A list of clusters, where each cluster member is indicated by a numeric value
A vector of geneset names
A Matrix::Matrix() of adjacency status
Matrix::Matrix()
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)