SBML import {rsbml} | R Documentation |
Read an SBML file into R.
rsbml_read(filename, text, dom = TRUE, strict = FALSE, schema = FALSE)
filename |
the name of the SBML file to parse |
text |
a string of SBML text to parse (instead of file) |
dom |
whether to convert directly to the S4 DOM (TRUE , the
default) or leave as the internal SBMLDocument . |
strict |
whether to report warnings in addition to
errors or not (FALSE , the default). |
schema |
whether to perform XML schema validation |
a SBML
object, or a
SBMLDocument
if dom
is FALSE
.
Michael Lawrence
# Read an SBML file file <- system.file("sbml", "GlycolysisLayout.xml", package = "rsbml") doc <- rsbml_read(file) # Read an SBML string string <- paste(readLines(file),collapse="\n") doc <- rsbml_read(text = string)