SBMLDocument-class {rsbml} | R Documentation

## "SBMLDocument" from libsbml

### Description

Low-level libsbml document structure.

### Instantiation

A virtual Class: No objects may be created from it.

### Extends

Class `"oldClass"`, directly.

### Methods

rsbml_check
  `signature(object = "SBMLDocument")`: semantically validates the document. Emits warnings describing the problems.
rsbml_dom
  `signature(doc = "SBMLDocument")`: Constructs an S4 object model from a libsbml document.
rsbml_graph
  `signature(doc = "SBMLDocument")`: Converts a libsbml document to a `graph`.
rsbml_problems
  `signature(object = "SBMLDocument")`: reports problems encountered during parsing and/or validation.
rsbml_write
  `signature(object = "SBMLDocument")`: writes this document to a file as SBML.
rsbml_xml
  `signature(object = "SBMLDocument")`: converts this document to a string as SBML.

### Author(s)

Michael Lawrence

### References

http://sbml.org/documents/

### Examples

      # 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)

[Package rsbml version 1.6.0 Index]