writeTSVmod | R Documentation |
This function converts a data.frame or a modelOrg model to TSV format for the 'sybil' R package. TSV format require three '.TSV'
output files ('_react.tsv'
, '_met.tsv'
, '_desc.tsv'
).
writeTSVmod(modelData, modelID = "model", outputFile, boundary = "b")
modelData |
A modelOrg or a data.frame object. If a data.frame is given, it must contain following mandatory colnames:
|
modelID |
A single character string giving the modelID |
outputFile |
A writable path for the three |
boundary |
A single character string specifying the compartment to be used as boundary |
A set of three '.TSV'
files in a valid format to the 'sybil' R package.
Daniel Camilo Osorio <dcosorioh@tamu.edu>
#' # Loading a metabolic model glycolysis <- read.csv(system.file("extdata/glycolysisModel.csv",package = "minval"), sep='\t') ## Not run: # Writing a model in TSV format writeTSVmod(modelData = glycolysis,modelID = "Glycolysis",outputFile = "glycolysis") # Writing a modelOrg object in a SBML format ## Loading the sybil R package library(sybil) ## Loading the data data("Ec_core") ## Writing the modelOrg object in a SBML format writeTSVmod(modelData = Ec_core,modelID = "E.coli",outputFile = "eColi") ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.