splitIntoGroups            package:edgeR            R Documentation

_S_p_l_i_t _t_h_e _d_a_t_a _f_r_o_m _a _D_G_E_L_i_s_t _o_b_j_e_c_t _a_c_c_o_r_d_i_n_g _t_o _g_r_o_u_p

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

     Split the data from a DGEList object according to group

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

      
     splitIntoGroups(object)

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

  object: 'DGEList', list containing the raw data with elements 'data'
          (table of counts), 'group' (vector indicating group) and
          'lib.size' (vector of library sizes)

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

     list in which each element is a matrix of count data for an
     individual group

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

     Davis McCarthy

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

     # generate raw data from NB, create list object
     y<-matrix(rnbinom(80,size=1,mu=10),nrow=20)
     d<-DGEList(data=y,group=rep(1:2,each=2),lib.size=rep(c(1000:1001),2))
     rownames(d$data)<-paste("tagno",1:nrow(d$data),sep=".")
     z<-splitIntoGroups(d)

