readCdfDataFrame         package:affxparser         R Documentation

_R_e_a_d_s _u_n_i_t_s (_p_r_o_b_e_s_e_t_s) _f_r_o_m _a_n _A_f_f_y_m_e_t_r_i_x _C_D_F _f_i_l_e

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

     Reads units (probesets) from an Affymetrix CDF file. Gets all or a
     subset of units (probesets).

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

     readCdfDataFrame(filename, units=NULL, groups=NULL, cells=NULL, fields=NULL, drop=TRUE, verbose=0)

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

filename: The filename of the CDF file.

   units: An 'integer' 'vector' of unit indices specifying which units
          to be read.  If 'NULL', all are read.

  groups: An 'integer' 'vector' of group indices specifying which
          groups to be read.  If 'NULL', all are read.

   cells: An 'integer' 'vector' of cell indices specifying which cells
          to be read.  If 'NULL', all are read.

  fields: A 'character' 'vector' specifying what fields to read. If
          'NULL', all unit, group and cell fields are returned.

    drop: If 'TRUE' and only one field is read, then a 'vector' (rather
          than a single-column 'data.frame') is returned.

 verbose: An 'integer' specifying the verbose level. If 0, the file is
          parsed quietly.  The higher numbers, the more details.

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

     An NxK 'data.frame' or a 'vector' of length N.

_R_e_f_e_r_e_n_c_e_s:

     [1] Affymetrix Inc, Affymetrix GCOS 1.x compatible file formats,
     June 14, 2005. <URL: http://www.affymetrix.com/support/developer/>

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

     For retrieving the CDF as a 'list' structure, see
     'readCdfUnits'().

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

     ##############################################################
     if (require("AffymetrixDataTestFiles")) {            # START #
     ##############################################################

     # Find any CDF file
     cdfFile <- findCdf()

     units <- 101:120
     fields <- c("unit", "unitName", "group", "groupName", "cell")
     df <- readCdfDataFrame(cdfFile, units=units, fields=fields)
     stopifnot(identical(sort(unique(df$unit)), units))

     fields <- c("unit", "unitName", "unitType")
     fields <- c(fields, "group", "groupName")
     fields <- c(fields, "x", "y", "cell", "pbase", "tbase")
     df <- readCdfDataFrame(cdfFile, units=units, fields=fields)
     stopifnot(identical(sort(unique(df$unit)), units))

     ##############################################################
     }                                                     # STOP #
     ##############################################################

