Learn R Programming

BoolNet (version 1.44)

chooseNetwork: 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 object.

Usage

chooseNetwork(probabilisticNetwork, functionIndices)

Arguments

probabilisticNetwork
A ProbabilisticBooleanNetwork object as returned by latex{ }reconstructNetwork or loadNetwork
functionIndices
A vector of function indices with one entry for each gene

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

Run this code
library(BoolNet)

# 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))

Run the code above in your browser using DataLab