gapFilter             package:genefilter             R Documentation

_A _f_i_l_t_e_r _t_o _s_e_l_e_c_t _g_e_n_e_s _b_a_s_e_d _o_n _t_h_e_r_e _b_e_i_n_g _a _g_a_p.

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

     The 'gapFilter' looks for genes that might usefully discriminate
     between two groups (possibly unknown at the time of filtering). To
     do this we look for a gap in the ordered expression values. The
     gap must come in the central portion (we exclude jumps in the
     initial 'Prop' values or the final 'Prop' values). Alternatively,
     if the IQR for the gene is large that will also pass our test and
     the gene will be selected.

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

     gapFilter(Gap, IQR, Prop, na.rm=TRUE, neg.rm=TRUE)

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

     Gap: The size of the gap required to pass the test. 

     IQR: The size of the IQR required to pass the test. 

    Prop: The proportion (or number) of samples to exclude at either
          end.

   na.rm: If 'TRUE' then 'NA''s will be removed before processing. 

  neg.rm: If 'TRUE' then negative values in 'x' will be removed before
          processing.

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

     As stated above we are interested in

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

     A function that returns either 'TRUE' or 'FALSE' depending on
     whether the vector supplied has a gap larger than 'Gap' or an IQR
     (inter quartile range) larger than 'IQR'. For computing the gap we
     want to exclude a proportion, 'Prop' from either end of the sorted
     values. The reason for this requirement is that genes which differ
     in expression levels only for a few samples are not likely to be
     interesting.

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

     R. Gentleman

_S_e_e _A_l_s_o:

     'ttest', 'genefilter'

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

      set.seed(256)
      x <- c(rnorm(10,100,3), rnorm(10, 100, 10))
      y <- x + c(rep(0,10), rep(100,10))
      tmp <- rbind(x,y) 
      Gfilter <- gapFilter(200, 100, 5)
      ffun <- filterfun(Gfilter)
      genefilter(tmp, ffun)

