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)

