saveNetwork {BoolNet} | R Documentation |
Save a network
Description
Saves synchronous, asynchronous, probabilistic and temporal networks in the BoolNet network file format .
Usage
saveNetwork(network,
file,
generateDNFs = FALSE,
saveFixed = TRUE)
Arguments
network |
An object of class |
file |
The name of the network file to be created |
generateDNFs |
If |
saveFixed |
If set to TRUE, knock-outs and overexpression of genes override their transition functions. That is, if a gene in the network is fixed to 0 or 1, this value is saved, regardless of the transition function. If set to FALSE, the transition function is saved. Defaults to TRUE. |
Details
The network is saved in the BoolNet file format (see loadNetwork
for details).
If the expressions in the transition functions cannot be parsed or generateDNFs
is true, a DNF representation of the transition functions is generated.
See Also
Examples
## Not run:
# load the cell cycle network
data(cellcycle)
# save it to a file
saveNetwork(cellcycle, file="cellcycle.txt")
# reload the model
print(loadNetwork("cellcycle.txt"))
## End(Not run)