toSBML: Export a network to SBML

View source: R/toSBML.R

toSBMLR Documentation

Export a network to SBML

Description

Exports a synchronous or asynchronous Boolean network to SBML with the sbml-qual extension package.

Usage

toSBML(network, 
       file,
       generateDNFs = FALSE,
       saveFixed = TRUE)

Arguments

network

An object of class BooleanNetwork or SymbolicBooleanNetwork to be exported

file

The name of the SBML file to be created

generateDNFs

If network is a BooleanNetwork object, this parameter specifies whether formulae in Disjunctive Normal Form are exported instead of the expressions that describe the transition functions. If set to FALSE, the original expressions are exported. If set to "canonical", a canonical Disjunctive Normal Form is generated from each truth table. If set to "short", the canonical DNF is minimized by joining terms (which can be time-consuming for functions with many inputs). If set to TRUE, a short DNF is generated for functions with up to 12 inputs, and a canonical DNF is generated for functions with more than 12 inputs. For objects of class SymbolicBooleanNetwork, this parameter is ignored.

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 exported, regardless of the transition function. If set to FALSE, the transition function is exported. Defaults to TRUE.

Details

The export creates an SBML file describing a general logical model that corresponds to the Boolean network. Importing tools must support the sbml-qual extension package version 1.0.

The export translates the expressions that describe the network transition functions to a MathML description. If these expressions cannot be parsed or generateDNFs is true, a DNF representation of the transition functions is generated and exported.

For symbolic networks, temporal operators and delays of more than one time step are not allowed, as they are not compatible with SBML.

References

http://sbml.org/Documents/Specifications/SBML_Level_3/Packages/Qualitative_Models_(qual)

See Also

loadSBML, loadNetwork, saveNetwork, toPajek

Examples

## Not run: 
# load the cell cycle network
data(cellcycle)

# export the network to SBML
toSBML(cellcycle, file="cellcycle.sbml")

# reimport the model
print(loadSBML("cellcycle.sbml"))

## End(Not run)

BoolNet documentation built on Oct. 2, 2023, 5:08 p.m.

Related to toSBML in BoolNet...