readDGE                package:edgeR                R Documentation

_R_e_a_d _a _l_i_s_t _o_f _f_i_l_e_s _c_o_n_t_a_i_n_i_n_g _D_G_E _d_a_t_a

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

     Reads a list of text files, one for each sample.  Files should be
     tab-delimited with an identifier (could be tag sequence) as the
     first column and counts as the second column.  The function
     creates one big table with 0s where necessary.

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

      
     readDGE(files,...)

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

   files: character vector of filenames

     ...: option arguments to send to 'read.table'

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

     list with elements 'data' (table of counts), 'lib.size' (library
     sizes)

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

     Mark Robinson

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

     #  Read all .txt files from current working directory

     ## Not run: 
     files <- dir(pattern="*\\.txt$")
     RG <- readDGE(files,sep="\t",header=TRUE,comment.char="",stringsAsFactors=FALSE)
     ## End(Not run)

