Skip to content
Prev 4600 / 21312 Next

[Bioc-devel] read SBML file from BiGG database, unit consistency check

I contacted the BiGG maintainers and it turns out that the units they
have in the SBML document are technically correct for the reconstruction
databases, although the validator complains. Since we don't need the
units in our package, I found a workaround by just parsing them out:

     file <- "SBML_export.xml" #file from BiGG
     string <- paste(readLines(file),collapse="\n")
     ##Parse out units to avoid validation error
     string <- gsub("units=\".+?\"", "", string)
     H.sapiens_Recon_1 <- rsbml_read(text=string) 

This works fine for importing all files.

Many thanks,

Hannes
On Tue, 2013-08-06 at 11:03 -0700, Michael Lawrence wrote: