make_adjacency: Convert a raw input matrix into an 'edgynode' adjacency...

View source: R/make_adjacency.R

make_adjacencyR Documentation

Convert a raw input matrix into an edgynode adjacency matrix

Description

Users may work with a vast variety of input matrices that are derived from various gene regulatory network inference methods and tools with various values and value ranges. This function aims to ensure that such raw data is converted into a edgynode adjacency matrix format and is the first conversion step when importing existing raw adjacency matrices into the edgynode ecosystem.

Usage

make_adjacency(x, known_binary = FALSE)

Arguments

x

a matrix object.

known_binary

a logical value indicating whether the input matrix x is already known to be a binary matrix (for this case use known_binary = TRUE) or not (for this case use known_binary = FALSE (default)).

known_symmetric

a logical value indicating whether the input matrix x is already known to be symmetric (for this case use known_symmetric = TRUE) or not (for this case use known_symmetric = FALSE (default)).

Value

The input matrix, converted to an adjacency

See Also

assert_adjacency, is_adjacency

Examples

# look at raw matrix
edgynode::adjacency_matrix_test_3
# convert raw matrix into a edgynode adjacency matrix
edgynode::make_adjacency(edgynode::adjacency_matrix_test_3)

drostlab/edgynode documentation built on March 29, 2024, 10:36 a.m.