validateSBMLdocument: Validate SBML

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

View source: R/sybilSBML.R

Description

Validate files written in SBML.

Usage

1

Arguments

sbmlf

A single character string containing a filename of an SBML file, or an object of class sbmlPtr as returned by openSBMLfile.

Details

The given SBML file is validated by the libSBML function checkConsistency. Errors are retrieved by the libSBML function getError and returned as list.

Value

If argument sbmlf is an object of class character,the function returns TRUE, if no infos, warnings, errors or fatals have been found. Otherwise a the value returned is a list.

infos

Infos

warnings

Warnings

errors

Errors

fatals

Fatals

Each entry of one of these lists is again a list containing the message id, line and column number of the SBML file generating the message and the corresponding message text.

If argument sbmlf is an object of class sbmlPtr, the function returns the number of errors found in the SBML document.

Author(s)

Gabriel Gelius-Dietrich <geliudie@uni-duesseldorf.de>

Maintainer: Mayo Roettger <mayo.roettger@hhu.de>

References

Bornstein, B. J., Keating, S. M., Jouraku, A., and Hucka M. (2008) LibSBML: An API Library for SBML. Bioinformatics 24, 880–881.

See Also

readSBMLmod, openSBMLfile, getSBMLerrors, sbmlPtr

Examples

1
2
3
  dir  <- system.file(package = "sybilSBML", "extdata")
  file <- file.path(dir, "ecoli_core_model.xml")
  err  <- validateSBMLdocument(file)

sybilSBML documentation built on March 31, 2020, 5:08 p.m.