generateRule: Generate a default set of update-rules.

Description Usage Arguments Details Value See Also Examples

View source: R/utils.R

Description

Generate a default set of update-rules for a network.

Usage

1
generateRule(network, ruleType = 0L)

Arguments

network

The network used for the generation

ruleType

Type of random update-rules, default is 0

Details

This function generates a default set of update-rules for a network. The rules would be used to analyze the dynamics of the examined network, for ex., calculating sensitivity, searching attractors. The type of random update-rules can be specified by the parameter ruleType: 0 means only Conjunction rules, 1 means only Disjunction rules and 2 means random Nested Canalyzing rules.

Value

The string "ok" if success, otherwise NULL object

See Also

findAttractors, perturb, restore

Examples

1
2
3
4
5
6
7
8
9
data(amrn)
# Generate a set of random Nested Canalyzing rules
generateRule(amrn, 2)

# Generate a specific initial-state for the AMRN network
state1 <- generateState(amrn, "1110011011")

att <- findAttractors(amrn, state1)
print(att)

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