readDcp               package:dChipIO               R Documentation

_R_e_a_d_s _a _d_C_h_i_p _D_C_P _f_i_l_e

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

     Reads a dChip DCP file.

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

     readDcp(con, fields=c("rawIntensities", "normalizedIntensities", "calls", "thetas", "thetaStds", "excludes"), cells=NULL, units=NULL, .nbrOfUnits=NULL, ...)

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

     con: A 'connection' or a 'character' filename.

  fields: A 'character' 'vector' specifying the fields to be read.

   cells: An 'integer' 'vector' specifying the indices of the cell data
          to be read.

   units: An 'integer' 'vector' specifying the indices of the unit data
          to be read.

.nbrOfUnits: A 'integer' specifying the number of units available in
          the file. If 'NULL', this is inferred from the file size and
          the file header. The dChip software itself instead uses the
          corrsponding value in the CDF.bin file, but that file is
          specified by the user leaving room for errors.

     ...: Not used.

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

     Returns a 'list' structure containing the file header and the
     requested data fields.

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

     Henrik Bengtsson (<URL: http://www.braju.com/R/>)

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

     To read only the DCP file header, see 'readDcpHeader'().

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

     path <- system.file("exData", package="dChipIO")

     filename <- "Test3-1-121502.dcp"
     pathname <- file.path(path, filename)

     hdr <- readDcpHeader(pathname)
     print(hdr)

     data <- readDcp(pathname)
     str(data)

