getPathToAttractor {BoolNet} | R Documentation |
Lists the states in the path from a specified state to the corresponding synchronous attractor.
getPathToAttractor(network, state, includeAttractorStates = c("all","first","none"))
network |
Either a network structure of class |
state |
A binary vector with exactly one entry per gene in the network. If |
includeAttractorStates |
Specifies whether the actual attractor states are included in the resulting table or not. If |
Returns a data frame with the genes in the columns. The rows are the successive states from state
to the the corresponding attractor. Depending on includeAttractorStates
, attractor states are included or not. The data frame has an attribute attractor
specifying the indices of the states that belong to the attractor. If includeAttractorStates
is "first"
or "none"
, these indices may correspond to states that are not included in the sequence itself. This attribute is used by plotSequence
to highlight the attractor states.
getAttractors
, simulateSymbolicModel
, getTransitionTable
, getBasinOfAttraction
, plotSequence
, attributes
# load example network data(cellcycle) # get path from a state to its attractor # include all attractor states path <- getPathToAttractor(cellcycle, rep(1,10), includeAttractorStates="all") print(path) # include only the first attractor state path <- getPathToAttractor(cellcycle, rep(1,10), includeAttractorStates="first") print(path) # exclude attractor states path <- getPathToAttractor(cellcycle, rep(1,10), includeAttractorStates="none") print(path)