Description Usage Arguments Value Examples
View source: R/BNP_Dataframe.R
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.
1 2 | attractorListToDataframe(attr.list, sep = "/",
returnDataFrame = c("occurrence", "basinSize"), ...)
|
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 |
Dataframe, each column corresponds to a property of the attractor
1 2 3 | data(cellcycle)
attrs <- list(getAttractors(cellcycle))
attractorListToDataframe(attrs)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.