validatePSIMI25           package:RpsiXML           R Documentation

_V_a_l_i_d_a_t_i_n_g _P_S_I-_M_I _2._5 _f_i_l_e _w_i_t_h _M_I_F_2_5 _X_M_L _s_c_h_e_m_a

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

     The function validates given PSI-MI 2.5 file with MIF25 XML schema
     provided by the Molecular Interactions Workgroup of HUPO
     Proteomics Standards Initiative

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

     validatePSIMI25(file,
     schema = system.file("extdata/schemas/MIF25.xsd", package = "RpsiXML"),
     ignore.stderr = TRUE)

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

    file: The name or the URL of the file to be validated 

  schema: The schema file of PSI-MI 2.5 file format by default 

ignore.stderr: Whether to print out errors in the console 

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

     We advice to set "ignore.stderr=FALSE" for the first time of
     validating. The error number of the file will be printed in the
     console. When the number is not 0, one can set
     "ignore.stderr=TRUE" and see the errors produced during the
     validation.

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

     The number of errors in validating the file

_N_o_t_e:

     This function sofar depends on the tool "xmllint" bundled with
     libxml2 library. We plan to compile it later to run independent of
     the tool.

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

     Jitao David Zhang <j.zhang@dkfz.de>, Tony Chiang
     <tchiang@ebi.ac.uk>

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

     libxml2 library <URL: http://xmlsoft.org/> PSI-MI 2.5 XML schema
     <URL: http://psidev.sourceforge.net/mi/rel25/src/MIF25.xsd>

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

     okFile <- system.file("extdata/psi25files/intact_2008_test.xml",
                           package="RpsiXML")
     validatePSIMI25(okFile)

