fixGenes {BoolNet} | R Documentation |
Simulates knocked-out or over-expressed genes by fixing the values of genes to 0 or 1, or turn off knock-out or over-expression of genes.
fixGenes(network, fixIndices, values)
network |
The original network of class |
fixIndices |
A vector of names or indices of the genes to be fixed |
values |
Either one single value, or a vector with the same length as |
Depending on the input, an object of class BooleanNetwork
, SymbolicBooleanNetwork
or ProbabilisticBooleanNetwork
containing the fixed genes is returned. These classes are described in more detail in loadNetwork
.
# load example data data(cellcycle) # knock out gene CycD (index 1) net <- fixGenes(cellcycle, 1, 0) # or net <- fixGenes(cellcycle, "CycD", 0) # get attractors by exhaustive search attractors <- getAttractors(net) print(attractors)