Usage
perturbNetwork(network,
perturb = c("functions","states"),
method = c("bitflip","shuffle"),
simplify = (perturb[1]=="states"),
readableFunctions = FALSE,
excludeFixed = TRUE,
maxNumBits = 1,
numStates = max(1,2^length(network$genes)/100))
Arguments
network
A network structure of class BooleanNetwork
or ProbabilisticBooleanNetwork
. These networks can be read from files by loadNetwork
, generated by latex{
}
perturb
If set to "functions", a transition function of a single gene is chosen at random and perturbed directly. This is the default mode. If set to "states", the transition table is generated, one or several state transitions are perturbed randomly, and the gen
method
The perturbation method to be applied to the functions or transitions. "bitflip" randomly inverts one or several bits (depending on the value of maxNumBits
). "shuffle" generates a random permutation of the positions in the function or state a
simplify
If this is true, simplifyNetwork
is called to simplify the gene transition functions after the perturbation. This removes irrelevant input genes. Defaults to TRUE if perturb
is "states" readableFunctions
If this is true, readable DNF representations of the truth tables of the functions are generated. These DNF are displayed when the network is printed. The DNF representations are not minimized and can thus be very long. If set to FALSE, the truth table re
excludeFixed
Determines whether fixed variables can also be perturbed (if set to FALSE) or if they are excluded from the perturbation (if set to TRUE). Default is TRUE.
maxNumBits
The maximum number of bits to be perturbed in one function or state. Defaults to 1.
numStates
The number of states to be perturbed if perturb
is "states". Defaults to 1