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

