readSBMLR: Convert an SBMLR file into an R model object of class SBMLR

Description Usage Arguments Details Value Note Author(s) See Also Examples

Description

This function converts an SBMLR model file into a corresponding SBMLR model object. This is more than a source-ing: the file is simpler than the object since things are generated, such as, rate law and rule R expressions and functions, and mathML.

Usage

1
readSBMLR(filename)

Arguments

filename

An SBMLR model definition file.

Details

A limited subset of SBML level 2 models is currently supported, e.g. events and function definitions are not covered.

Value

A corresponding SBMLR model object.

Note

This function replaces the use of source in older versions of SBMLR. It converts rate law and rule strings to R functions and expressions and to MathML.

Author(s)

Tom Radivoyevitch

See Also

readSBML

Examples

1
2
3
4
library(SBMLR)
curtoX=readSBML(file.path(system.file(package="SBMLR"), "models/curto.xml"))  
curtoR=readSBMLR(file.path(system.file(package="SBMLR"), "models/curto.r"))  
curtoX==curtoR

mdnestor/SBMLR documentation built on Aug. 28, 2020, 12:06 a.m.