loadNetwork(file, bodySeperator = ",")
BooleanNetwork
representing the network is returned. It has the following components:length(genes)
elements, where the i-th element describes the transition function for the i-th gene. Each element has the following sub-components:
[object Object],[object Object],[object Object]ProbabilisticBooleanNetwork
is returned. This structure is similar to BooleanNetwork
, but allows for storing more than one function in an interaction. It consists of the following components:length(genes)
elements, where the i-th element describes the alternative transition functions for the i-th gene. Each element is a list of transition functions. In this second-level list, each element has the the following sub-components:
[object Object],[object Object],[object Object],[object Object]fixGenes
.Rule = GeneName Separator BooleanExpression [Separator Probability];
BooleanExpression = GeneName
| "!" BooleanExpression
| "(" BooleanExpression ")"
| BooleanExpression " & " BooleanExpression
| BooleanExpression " | " BooleanExpression;
GeneName = ? A gene name from the list of involved genes ?;
Separator = ? The field
If there is exactly one rule for each gene, a Boolean network of class BooleanNetwork
is created. In these networks, 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.
If two or more rules exist for the same gene, the function returns a probabilistic network of class ProbabilisticBooleanNetwork
. In this case, alternative rules may be annotated with probabilities, which must sum up to 1 for all rules that belong to the same gene. If no probabilities are supplied, uniform distribution is assumed.
getAttractors
, markovSimulation
, toPajek
, stateTransition
, fixGenes
library(BoolNet)
# write example network to file
sink("testNet.bn")
cat("targets, functions
")
cat("Gene1, !Gene2 | !Gene3
")
cat("Gene2, Gene3 & Gene4
")
cat("Gene3, Gene2 & !Gene1
")
cat("Gene4, 1
")
sink()
# read file
net <- loadNetwork("testNet.bn")
print(net)
Run the code above in your browser using DataLab