matrix_to_table: Switch matrix to network table

View source: R/RcppExports.R

matrix_to_tableR Documentation

Switch matrix to network table

Description

Switch matrix to network table

Usage

matrix_to_table(
  network_matrix,
  regulators = NULL,
  targets = NULL,
  threshold = 0
)

Arguments

network_matrix

The matrix of network weight.

regulators

Character vector of regulator names to filter by.

targets

Character vector of target names to filter by.

threshold

The threshold for filtering weights based on absolute values, defaults to 0.

Value

Network table

Examples

data("example_matrix")
network_table <- inferCSN(example_matrix)
network_matrix <- table_to_matrix(network_table)
network_table_new <- matrix_to_table(network_matrix)
head(network_table)
head(network_table_new)
identical(
  network_table,
  network_table_new
)

matrix_to_table(
  network_matrix,
  threshold = 0.8
)

matrix_to_table(
  network_matrix,
  regulators = c("g1", "g2"),
  targets = c("g3", "g4")
)


inferCSN documentation built on April 13, 2025, 5:11 p.m.