View source: R/chooseNetwork.R
chooseNetwork | R Documentation |
Creates a BooleanNetwork
object with exactly one function per gene by extracting a specified set of transition functions from a ProbabilisticBooleanNetwork
or BooleanNetworkCollection
object.
chooseNetwork(probabilisticNetwork,
functionIndices,
dontCareValues=NULL,
readableFunctions=FALSE)
probabilisticNetwork |
A |
functionIndices |
A vector of function indices with one entry for each gene |
dontCareValues |
If |
readableFunctions |
If |
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.
reconstructNetwork
, loadNetwork
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.