labelState: Label a state.

Description Usage Arguments Value Examples

View source: R/BNP_Label.R

Description

Labels a binary state using a set of labelling rules. The elements of the state correspond the network node names. If a rule is satisfied the corresponding label is appended.

Usage

1
labelState(state, node.names, label.rules, sep = "")

Arguments

state

binary state to label

node.names

node names of the state, the length must be the same that the state's

label.rules

dataframe with labels (1st col) and rules (2nd col), if more than one rule is true all labels are appendedl the node names present in the rules must be in node.names

sep

string to separate the labels when more than one can be applied to the state.

Value

String corresponding to the label of the state.

Examples

1
labelState(state, net$genes, label.rules, sep='')

mar-esther23/boolnet-perturb documentation built on Jan. 14, 2019, 7:49 p.m.