attractorListToDataframe: Convert a list of attractors to a data frame.

Description Usage Arguments Value Examples

View source: R/BNP_Dataframe.R

Description

Convert a list of BoolNet attractor objects to a data frame. Each property of each attr$attractors corresponds to a dataframe column. Columns are named attrName.propertyName, if the list has no names numbers will be used. If the property has elements with length > 1 it converts them to a string and joins them with sep.

Usage

1
2
attractorListToDataframe(attr.list, sep = "/",
  returnDataFrame = c("occurrence", "basinSize"), ...)

Arguments

attr.list

list of BoolNet attractor objects

sep

string to join elements with length > 1, default "/"

returnDataFrame

if returnDataFrame='occurrence' returns a df where each column corresponds to a network and the rows to the attractor/label or labels. The values indicate the frequency of the attractor/label if returnDataFrame='basinSize' returns a df where the values indicate the basin size of the attractor/label if returnDataFrame='attrList' returns a list of AttractorInfo objects

Value

Dataframe, each column corresponds to a property of the attractor

Examples

1
2
3
data(cellcycle)
attrs <- list(getAttractors(cellcycle))
attractorListToDataframe(attrs)

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