saveSBML {SBMLR} | R Documentation |
This function converts a class SBML
model object in R into an SBML level 2 file.
saveSBML(model,filename)
model |
The model object in R. |
filename |
The name of the SBML file |
The output file is SBML level 2.
No value returned.
SBML events and function definitions are NOT implemented.
For speed, the SBML file is written incrementally, rather than first built as a DOM in R and then saved using xmlSave
.
Tomas Radivoyevitch (radivot@hal.cwru.edu)
Radivoyevitch, T. A two-way interface between limited Systems Biology Markup Language and R. BMC Bioinformatics 5, 190 (2004).
library(SBMLR) library(odesolve) curtoR=readSBMLR(file.path(system.file(package="SBMLR"), "models/curto.r")) saveSBML(curtoR,file.path(system.file(package="SBMLR"), "models/curtoR.xml")) curtoX=readSBML(file.path(system.file(package="SBMLR"), "models/curtoR.xml")) equateModels(curtoX,curtoR)