unwrapdups               package:limma               R Documentation

_U_n_w_r_a_p _D_u_p_l_i_c_a_t_e _S_p_o_t _V_a_l_u_e_s _f_r_o_m _R_o_w_s _i_n_t_o _C_o_l_u_m_n_s

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

     Reshape a matrix so that a set of consecutive rows becomes a
     single row in the output.

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

     unwrapdups(M,ndups=2,spacing=1)

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

       M: a matrix.

   ndups: number of duplicate spots. The number of rows of M must be
          divisible by 'ndups'.

 spacing: the spacing between the rows of 'M' corresponding to
          duplicate spots, 'spacing=1' for consecutive spots

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

     This function is used on matrices corresponding to a series of
     microarray experiments. Rows corresponding to duplicate spots are
     re-arranged to that all values corresponding to a single gene are
     on the same row. This facilitates fitting models or computing
     statistics for each gene.

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

     A matrix containing the same values as 'M' but with fewer rows and
     more columns by a factor of 'ndups'. Each set of 'ndups' rows in
     'M' is strung out to a single row so that duplicate values
     originally in consecutive rows in the same column are in
     consecutive columns in the output.

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

     Gordon Smyth

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

     M <- matrix(1:12,6,2)
     unwrapdups(M,ndups=2)
     unwrapdups(M,ndups=3)
     unwrapdups(M,ndups=2,spacing=3)

