labelAttractors: Label attractor.

Description Usage Arguments Value See Also Examples

View source: R/BNP_Label.R

Description

Returns a list of labels for a the involved states in a BoolNet attractor object using a set of labelling rules, returns a list of labels.

Usage

1
labelAttractors(attr, label.rules, node.names = NULL, sep = "/")

Arguments

attr

Boolnet attractor object

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, if NULL it will return the label of each state in a cycle separately if string it will paste the states of a cycle with sep

Value

List of strings corresponding to the label of the attractor, if an attractor has multiple states it will return a list of strings for that state.

See Also

labelState which this function wraps

Examples

1
2
attr <- getAttractors(net$genes)
labelAttractors(attr, net$genes, labels, rules, sep='')

mar-esther23/boolnet-perturb documentation built on April 21, 2020, 9:11 a.m.