maGenControls         package:marrayClasses         R Documentation

_G_e_n_e_r_a_t_i_n_g _a _v_e_c_t_o_r _r_e_c_o_r_d_i_n_g _t_h_e _c_o_n_t_r_o_l _s_t_a_t_u_s _o_f _t_h_e _s_p_o_t_t_e_d _p_r_o_b_e _s_e_q_u_e_n_c_e_s.

_D_e_s_c_r_i_p_t_i_o_n:

     ControlCode is a matrix representing certain regular expression
     pattern and the control status of the spotted probe sequences.
     This function uses `grep' searches for matches to `pattern' (its
     first argument) within the character vector `x' (second argument).

_U_s_a_g_e:

     maGenControls(Gnames, controlcode, id = "ID")

_A_r_g_u_m_e_n_t_s:

  Gnames: An object of class 'matrix', 'data.frame' or 'marrayInfo'
          which contains  description of spotted probe sequences.

controlcode: A character matrix of n by 2 columns. The first column
          contains a few regular expression of spotted probe sequences
          and the second column contains the corresponding control
          status.

      id: the column number of column name in 'Gnames' that contains
          description of each spot on the array.

_V_a_l_u_e:

     A vector of characters recording the control status of the spotted
     probe sequences.

_A_u_t_h_o_r(_s):

     Jean Yee Hwa Yang

_S_e_e _A_l_s_o:

     'grep'

_E_x_a_m_p_l_e_s:

     data(swirl)
     maControls(swirl) <- maGenControls(maGnames(swirl), id="Name")
     table(maControls(swirl))

