subColSummarize        package:preprocessCore        R Documentation

_S_u_m_m_a_r_i_z_e _c_o_l_u_m_n_s _w_h_e_n _d_i_v_i_d_e_d _i_n_t_o _g_r_o_u_p_s _o_f _r_o_w_s

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

     These functions summarize columns of a matrix when the rows of the
     matrix are classified into different groups

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

     subColSummarizeAvg(y, group.labels)
            subColSummarizeAvgLog(y, group.labels)
            subColSummarizeBiweight(y, group.labels)
            subColSummarizeBiweightLog(y, group.labels)
            subColSummarizeLogAvg(y, group.labels)
            subColSummarizeLogMedian(y, group.labels)
            subColSummarizeMedian(y, group.labels)
            subColSummarizeMedianLog(y, group.labels)
            subColSummarizeMedianpolish(y, group.labels)
            subColSummarizeMedianpolishLog(y, group.labels)
            convert.group.labels(group.labels)

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

       y: A numeric 'matrix'

group.labels: A vector to be treated as a factor variable. This is used
          to assign each row to a group. NA values should be used to
          exclude rows from consideration

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

     These functions are designed to summarize the columns of a matrix
     where the rows of the matrix are assigned to groups. The
     summarization is by column across all rows in each group.

   _s_u_b_C_o_l_S_u_m_m_a_r_i_z_e_A_v_g Summarize by taking mean

   _s_u_b_C_o_l_S_u_m_m_a_r_i_z_e_A_v_g_L_o_g 'log2' transform the data and then take means
        in column-wise manner

   _s_u_b_C_o_l_S_u_m_m_a_r_i_z_e_B_i_w_e_i_g_h_t Use a one-step Tukey Biweight to summarize
        columns

   _s_u_b_C_o_l_S_u_m_m_a_r_i_z_e_B_i_w_e_i_g_h_t_L_o_g 'log2' transform the data and then use a
        one-step Tukey Biweight to summarize columns

   _s_u_b_C_o_l_S_u_m_m_a_r_i_z_e_L_o_g_A_v_g Summarize by taking mean and then taking
        'log2'

   _s_u_b_C_o_l_S_u_m_m_a_r_i_z_e_L_o_g_M_e_d_i_a_n Summarize by taking median and then taking
        'log2'

   _s_u_b_C_o_l_S_u_m_m_a_r_i_z_e_M_e_d_i_a_n Summarize by taking median

   _s_u_b_C_o_l_S_u_m_m_a_r_i_z_e_M_e_d_i_a_n_L_o_g 'log2' transform the data and then
        summarize by taking median

   _s_u_b_C_o_l_S_u_m_m_a_r_i_z_e_M_e_d_i_a_n_p_o_l_i_s_h Use the median polish to summarize each
        column, by also using a row effect (not returned)

   _s_u_b_C_o_l_S_u_m_m_a_r_i_z_e_M_e_d_i_a_n_p_o_l_i_s_h_L_o_g 'log2' transform the data and then
        use the median polish to summarize each column, by also using a
        row effect (not returned)

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

     A 'matrix' containing column summarized data. Each row corresponds
     to data column summarized over a group of rows.

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

     B. M. Bolstad <bmb@bmbolstad.com>

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

     ### Assign the first 10 rows to one group and
     ### the second 10 rows to the second group
     ###
     y <- matrix(c(10+rnorm(50),20+rnorm(50)),20,5,byrow=TRUE)

     subColSummarizeAvgLog(y,c(rep(1,10),rep(2,10)))
     subColSummarizeLogAvg(y,c(rep(1,10),rep(2,10)))
     subColSummarizeAvg(y,c(rep(1,10),rep(2,10)))

     subColSummarizeBiweight(y,c(rep(1,10),rep(2,10)))
     subColSummarizeBiweightLog(y,c(rep(1,10),rep(2,10)))

     subColSummarizeMedianLog(y,c(rep(1,10),rep(2,10)))
     subColSummarizeLogMedian(y,c(rep(1,10),rep(2,10)))
     subColSummarizeMedian(y,c(rep(1,10),rep(2,10)))


     subColSummarizeMedianpolishLog(y,c(rep(1,10),rep(2,10)))
     subColSummarizeMedianpolish(y,c(rep(1,10),rep(2,10)))

