generateStates: Generate random initial-states.

Description Usage Arguments Details Value See Also Examples

View source: R/utils.R

Description

Generate random initial-states for a network or a set of networks.

Usage

1
generateStates(numNodes, numStates)

Arguments

numNodes

Number of nodes in each initial-state or a network object

numStates

Number of random initial-states to be generated. If set to "all", all possible initial-states would be generated. For the large networks, we should use a specific value becaused of memory limitation.

Details

This function generates random initial-states for a network or a set of networks. The initial-states would be used to analyze the dynamics of the examined networks, for ex., calculating sensitivity or searching attractors.

Value

An identifier for accessing the generated initial-states. The identifier would be used as a parameter of the functions of calculating sensitivity and finding attractors.

See Also

calSensitivity, findAttractors

Examples

1
2
3
4
5
6
7
# Generate a set of 200 initial-states each containing 10 Boolean nodes
set1 <- generateStates(10, 200)
print(set1)

# Generate all possible initial-states each containing 10 Boolean nodes
set2 <- generateStates(10, "all")
print(set2)

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