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, check = TRUE, validate = 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)

   check: whether to report problems encountered during parsing

validate: whether to perform XML schema validation

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

     a 'SBMLDocument'

_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)

