table.to.matrix {inferCSN}R Documentation

Switch weight table to matrix

Description

Switch weight table to matrix

Usage

table.to.matrix(weight_table, regulators = NULL, targets = NULL)

Arguments

weight_table

The weight data table of network.

regulators

Regulators list.

targets

Targets list.

Value

Weight matrix

Examples

library(inferCSN)
data("example_matrix")
weight_table <- inferCSN(example_matrix)
head(weight_table)

table.to.matrix(weight_table)[1:6, 1:6]

table.to.matrix(
  weight_table,
  regulators = c("g1", "g2"),
  targets = c("g3", "g4")
)

[Package inferCSN version 1.0.3 Index]