read: Read in an SBML file (start here)

Description Usage Arguments Value Author(s) Examples

Description

Read an SBML file into R.

Usage

1
2
rsbml_read(filename, text, dom = TRUE, strict = FALSE, schema = FALSE,
                  consistency = TRUE)

Arguments

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

consistency

whether to perform consistency checks; recommended but might cause performance deficiencies.

Value

a SBML object, or a SBMLDocument if dom is FALSE.

Author(s)

Michael Lawrence

Examples

1
2
3
4
5
6
7
  # 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)

rsbml documentation built on Nov. 8, 2020, 8:09 p.m.