readCelHeader           package:affxparser           R Documentation

_P_a_r_s_i_n_g _t_h_e _h_e_a_d_e_r _o_f _a_n _A_f_f_y_m_e_t_r_i_x _C_E_L _f_i_l_e

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

     Reads in the header of an Affymetrix CEL file using the Fusion
     SDK.

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

     readCelHeader(filename)

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

filename: the name of the CEL file.

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

     This function returns the header of a CEL file. Affymetrix
     operates with different versions of this file format. Depending on
     what version is being read, different information is accessible.

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

     A named list with components described below. The entries are
     obtained from the Fusion SDK interface functions. We try to obtain
     all relevant information from the file. 

filename: the name of the cel file.

 version: the version of the cel file.

    cols: the number of columns on the chip.

    rows: the number of rows on the chip.

   total: the total number of features on the chip. Usually equal to
          'rows' times 'cols', but since it is a separate attribute in
          the SDK we decided to include it anyway.

algorithm: the algorithm used to create the CEL file.

parameters: the parameters used in the algorithm. Seems to be
          semi-colon separated.

chiptype: the type of the chip.

  header: the entire header of the CEL file. Only available for
          non-calvin format files.

cellmargin: a parameter used to generate the CEL file. According to
          Affymetrix, it designates the number of pixels to ignore
          around the feature border when calculating the intensity
          value (the number of pixels ignored are cellmargin divided by
          2).

noutliers: the number of features reported as outliers.

 nmasked: the number of features reported as masked.

_N_o_t_e:

     Memory usage:the Fusion SDK allocates memory for the entire CEL
     file, when the file is accessed. The memory footprint of this
     function will therefore seem to be (rather) large.

     Speed: CEL files of version 2 (standard text files) needs to be
     completely read in order to report the number of outliers and
     masked features.

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

     James Bullard, bullard@stat.berkeley.edu and Kasper Daniel Hansen,
     khansen@stat.berkeley.edu

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

     'readCel()' for reading in the entire CEL file. That function also
     returns the header.  See 'affxparserInfo' for general comments on
     the package and the Fusion SDK.

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

       # Scan current directory for CEL files
       files <- list.files(pattern="[.](c|C)(e|E)(l|L)$")
       if (length(files) > 0) {
         header <- readCelHeader(files[1])
         print(header)
         rm(header)
       }

       # Clean up
       rm(files)

