SBML import              package:rsbml              R Documentation

_R_e_a_d _i_n _a_n _S_B_M_L _f_i_l_e (_s_t_a_r_t _h_e_r_e)

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

     Read an SBML file into R.

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

     rsbml_read(filename, text, dom = TRUE, strict = FALSE, schema = FALSE)

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

filename: the name of the SBML file to parse

    text: a string of SBML text to parse (instead of file)

     dom: whether to convert directly to the S4 DOM ('TRUE', the
          default) or leave as the internal 'SBMLDocument'.

  strict: whether to report warnings in addition to errors or not
          ('FALSE', the default).

  schema: whether to perform XML schema validation

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

     a 'SBML' object, or a 'SBMLDocument' if 'dom' is 'FALSE'.

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

     Michael Lawrence

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

       # Read an SBML file
       file <- system.file("sbml", "GlycolysisLayout.xml", package = "rsbml")
       doc <- rsbml_read(file)
       
       # Read an SBML string
       string <- paste(readLines(file),collapse="\n")
       doc <- rsbml_read(text = string)

