S4toS3: Converts an S4 class SBML object created by rsbml into an S3...

Description Usage Arguments Details Value Author(s) Examples

Description

This function provides a path from rsbml to SBMLR. The latter, being S3, is less cluttered with empty fields/slots than the former. The advantage of the S4 object is that it comes from more robust SBML reading: rsbml uses libsbml to parse SBML, SBMLR uses the R package XML.

Usage

1
S4toS3(dom)

Arguments

dom

An S4 DOM object of class SBML produced by rsbml.

Details

Carried over are compartments, species, global parameters, rules and reactions.

Value

A corresponding SBMLR model object, i.e. an S3 list of lists type of object.

Author(s)

Tom Radivoyevitch

Examples

1
2
3
4
5
library(rsbml)
(dom <- rsbml_read(file.path(system.file(package="SBMLR"), "models/sod.xml")))
library(SBMLR)
(mod=S4toS3(dom))
summary(mod)

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