| SBMLDocument-class {rsbml} | R Documentation |
Low-level libsbml document structure.
A virtual Class: No objects may be created from it.
Class "oldClass", directly.
signature(object = "SBMLDocument"):
semantically validates the document. Emits warnings describing the problems.signature(doc = "SBMLDocument"): Constructs an S4
object model from a libsbml document. signature(doc = "SBMLDocument"): Converts a
libsbml document to a graph. signature(object = "SBMLDocument"):
reports problems encountered during parsing and/or validation.signature(object = "SBMLDocument"): writes this
document to a file as SBML. signature(object = "SBMLDocument"): converts this
document to a string as SBML. Michael Lawrence
# Read a document
doc <- rsbml_read(system.file("sbml", "GlycolysisLayout.xml", package = "rsbml"))
# Check the document
rsbml_check(doc)
# Convert it to an S4 DOM
dom <- rsbml_dom(doc)
# Or a graph
graph <- rsbml_graph(doc)
# Write it out to a file
## Not run: rsbml_write(doc, "my.xml")
# Or convert it to a string of XML
rsbml_xml(doc)