cormat_to_edgelist {BioNERO} | R 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)

[Package BioNERO version 1.0.4 Index]