generateGroup: Generate a specific group of nodes/edges.

Description Usage Arguments Details Value See Also Examples

View source: R/utils.R

Description

Generate a specific group of nodes/edges in a network.

Usage

1
generateGroup(network, nodes, edges = "")

Arguments

network

The network contains the generated group

nodes

A list of nodes in the generated group

edges

A list of edges in the generated group

Details

This function generates a specific group of elements in a network. The group would be used to analyze the dynamics of the examined network, for ex., calculating sensitivity, perturbing the network, or restoring the network to the origin. The element group contains only nodes, only edges, or a combination of nodes/edges.

Value

The updated network object including the generated group

See Also

calSensitivity, perturb, restore

Examples

1
2
3
4
data(amrn)
# Generate a group of two nodes and two edges in the AMRN network
amrn <- generateGroup(amrn, nodes = "AG, SUP", edges = "UFO (1) PI, LUG (-1) PI")
print(amrn$Group_1)

csclab/RMut documentation built on May 14, 2019, 12:07 p.m.