table_to_matrix: Switch network table to matrix

View source: R/utils.R

table_to_matrixR Documentation

Switch network table to matrix

Description

Switch network table to matrix

Usage

table_to_matrix(network_table, regulators = NULL, targets = NULL)

Arguments

network_table

The weight data table of network.

regulators

Regulators list.

targets

Targets list.

Value

Weight matrix

Examples

data("example_matrix")
network_table <- inferCSN(example_matrix)
head(network_table)

table_to_matrix(network_table)[1:6, 1:6]

table_to_matrix(
  network_table,
  regulators = c("g1", "g2"),
  targets = c("g3", "g4")
)

inferCSN documentation built on Sept. 11, 2024, 9:32 p.m.