S4toS3 {SBMLR} | R Documentation |
This function provides a path from rsbml to SBMLR. The latter, being S3, is less cluttered with empty fields/slots than the former. The advantage of the S4 object is that it comes from more robust SBML reading: rsbml uses libsbml to parse SBML, SBMLR uses the R package XML.
S4toS3(dom)
dom |
An S4 DOM object of class SBML produced by rsbml. |
Carried over are compartments, species, global parameters, rules and reactions.
A corresponding SBMLR model object, i.e. an S3 list of lists type of object.
Tom Radivoyevitch
library(rsbml) (dom <- rsbml_read(file.path(system.file(package="SBMLR"), "models/sod.xml"))) library(SBMLR) (mod=S4toS3(dom)) summary(mod)