Transform a correlation matrix to an edge list
Usage
cormat_to_edgelist(matrix)
Arguments
- matrix
Symmetrical correlation matrix.
Value
A 2-column data frame containing node 1, node 2 and edge weight.
Examples
data(filt.se)
cor_mat <- cor(t(SummarizedExperiment::assay(filt.se)))
edgelist <- cormat_to_edgelist(cor_mat)