Learn R Programming

dynwrap (version 1.2.4)

add_regulatory_network: Add a GRN to a dynwrap object

Description

Add a GRN to a dynwrap object

Usage

add_regulatory_network(
  dataset,
  regulatory_network,
  regulatory_network_sc = NULL,
  regulators = NULL,
  targets = NULL,
  ...
)

Value

A dynwrap object with the regulatory network added.

Arguments

dataset

A dataset created by wrap_data() or wrap_expression()

regulatory_network

A data frame consisting of three columns: "regulator", "target", "strength".

regulatory_network_sc

A data frame consisting of four columns: "cell_id", "regulator", "target", "strength".

regulators

The feature ids of the regulators.

targets

The feature ids of the targets.

...

Extra arguments to be saved in the model.