addGeneGrps            package:maigesPack            R Documentation

_F_u_n_c_t_i_o_n _t_o _l_o_a_d _g_e_n_e _g_r_o_u_p_s _i_n_t_o _m_a_i_g_e_s_P_r_e_R_a_w _o_b_j_e_c_t

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

     This function read a directory and read files containing the genes
     for specific gene groups. This files must have one gene per line.
     This function stores the gene groups read in the slot 'GeneGrps'
     into objects of class 'maigesPreRaw'.

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

     addGeneGrps(data, folder="./", ext=".txt")

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

    data: object of 'maigesPreRaw' class.

  folder: char string specifying the directory of gene groups. The
          function tests the presence or not of the final bar.

     ext: string giving the extension of the files, defaults to '.txt'.
          The function also tests the presence of the initial dot.

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

     If the 'data' object already has gene groups with names equal to
     some someones that are been read, the groups with repeated names
     are not added. Warning messages are printed for every repeated
     group name.

     The 'folder' directory must contain only one file for each gene
     group of interest. These files must discriminate one gene per
     line. The identification of the genes must be done by one of the
     gene labels given by 'genemap' (see 'loadData').

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

     This function returns another object of class 'maigesPreRaw', with
     the slot 'GeneGroups' actualised.

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

     Gustavo H. Esteves <gesteves@vision.ime.usp.br>

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

     'maigesPreRaw', 'addPaths'

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

     ## Don't run because you don't have the gene sets in a readable folder.
     ## Not run: 
     gastro = addGeneGrps(gastro, folder="geneGrps", ext="txt")
     ## End(Not run)

