writeXMLHeader          package:AnnBuilder          R Documentation

_A _f_u_n_c_t_i_o_n _t_o _w_r_i_t_e _h_e_a_d_e_r _i_n_f_o_r_m_a_t_i_o_n _t_o _a_n _X_M_L _f_i_l_e.

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

     This function writes to the Attr node of an annotate XML file.

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

     writeXMLHeader(outName, fileCol, name, version, organism="human")

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

 outName: A character string for the name of the XML file to store the
          generated mata-data.

 fileCol: A vector of character strings for the names of data columns
          in the original file that is going to be used to produce the
          Data node of the XML file.

    name: A character string for an internal name that is normally the
          target of the annotation (e. g. U95 for the u95 chip).

 version: A character string or number for the version of the system
          that produces the XML file.

organism: A character string for the name of the organism of interests

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

     The XML file produced has an Attr node to hold the header
     information. The Attr node contains a Target node for the internal
     name, a DataMade node to date the file when it is made, one to
     many SourceFile nodes for names of the source files used for
     annotation, and one to many Element nodes for names of the data
     items the Data node of the XML will contain.

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

     This function does not return any value.

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

     Jianhua (John) Zhang

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

     <URL: http://www.bioconductor.org/datafiles/dtds/annotate.dtd>

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

     'fileToXML'

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

     ## Not run: 
     makeSrcInfo()
     #Write the header to a temp file
     writeXMLHeader(outName = "try.xml", fileCol = c("AFFY", "LOCUSID",
     "ACCNUM"), name = "Not Real", version = "0.5", organism = "human")
     # View the header
     readLines("try.xml")
     # Clearn up
     unlink("try.xml")
     ## End(Not run)

