cormat_to_edgelist: Transform a correlation matrix to an edge list

View source: R/utils.R

cormat_to_edgelistR Documentation

Transform a correlation matrix to an edge list

Description

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)

almeidasilvaf/BioNERO documentation built on March 25, 2024, 9:14 p.m.