chooseNetwork {BoolNet} | R Documentation |
Extract a single Boolean network from a probabilistic Boolean network
Description
Creates a BooleanNetwork
object with exactly one function per gene by extracting a specified set of transition functions from a ProbabilisticBooleanNetwork
or BooleanNetworkCollection
object.
Usage
chooseNetwork(probabilisticNetwork,
functionIndices,
dontCareValues=NULL,
readableFunctions=FALSE)
Arguments
probabilisticNetwork |
A |
functionIndices |
A vector of function indices with one entry for each gene |
dontCareValues |
If |
readableFunctions |
If |
Value
Returns an object of class BooleanNetwork
consisting of the transition functions whose indices were specified in functionIndices
. The class BooleanNetwork
is described in more detail in loadNetwork
.
Constant genes are automatically fixed (e.g. knocked-out or over-expressed). This means that they are always set to the constant value, and states with the complementary value are not considered in transition tables etc. If you would like to change this behaviour, use fixGenes
to reset the fixing.
See Also
reconstructNetwork
, loadNetwork
Examples
## Not run:
# load example data
data(examplePBN)
# extract a unique network
# - always use the first function
net <- chooseNetwork(examplePBN, rep(1, length(examplePBN$genes)))
# get attractors from this network
print(getAttractors(net))
## End(Not run)