saveSBML                package:SBMLR                R Documentation

_S_a_v_e_s _a_n _R _m_o_d_e_l _o_b_j_e_c_t _a_s _a_n _S_B_M_L _f_i_l_e

_D_e_s_c_r_i_p_t_i_o_n:

     This function converts a class 'SBML' model object in R into an
     SBML level 2 file.

_U_s_a_g_e:

     saveSBML(model,filename)

_A_r_g_u_m_e_n_t_s:

   model: The model object in R.  

filename: The name of the SBML file

_D_e_t_a_i_l_s:

     The output file is SBML level 2.

_V_a_l_u_e:

     No value returned.

_W_a_r_n_i_n_g:

     SBML events and  function definitions are NOT implemented.

_N_o_t_e:

     For speed, the SBML file is written incrementally, rather than
     first built as a DOM in R and then saved using 'xmlSave'.

_A_u_t_h_o_r(_s):

     Tomas Radivoyevitch  (radivot@hal.cwru.edu)

_R_e_f_e_r_e_n_c_e_s:

     Radivoyevitch, T. A two-way interface between limited Systems
     Biology Markup Language and R. BMC Bioinformatics 5, 190 (2004).

_S_e_e _A_l_s_o:

     'saveSBMLR'

_E_x_a_m_p_l_e_s:

     library(SBMLR)
     library(odesolve)
     curtoR=readSBMLR(file.path(system.file(package="SBMLR"), "models/curto.r"))  
     saveSBML(curtoR,file.path(system.file(package="SBMLR"), "models/curtoR.xml")) 
     curtoX=readSBML(file.path(system.file(package="SBMLR"), "models/curtoR.xml"))  

     equateModels(curtoX,curtoR)

