cytoSet-class             package:prada             R Documentation

'_c_y_t_o_S_e_t': _a _c_l_a_s_s _f_o_r _s_t_o_r_i_n_g _r_a_w _d_a_t_a _f_r_o_m
_a _q_u_a_n_t_i_t_a_t_i_v_e _c_e_l_l-_b_a_s_e_d _a_s_s_a_y

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

     This class is a container for a set of 'cytoFrame' objects

_C_r_e_a_t_i_n_g _O_b_j_e_c_t_s:

     Objects can be created using the function 'readCytoSet' or via
      '  new('cytoSet,'
      '    frames = ....,   # environment with cytoFrames'
      '    phenoData = .... # object of class phenoData'
      '    colnames = ....  # object of class character'
      '  )'

_S_l_o_t_s:


     '_f_r_a_m_e_s': An 'environment' containing one or more 'cytoFrame'
          objects.

     '_p_h_e_n_o_D_a_t_a': A 'phenoData'. Each row corresponds to one of the
          cytoFrames in the 'frames' slot. It is mandatory that the
          pData has column named 'name'

     '_c_o_l_n_a_m_e_s': A 'character' object with the (common) column names of
          all the data matrices in the cytoFrames.

_M_e_t_h_o_d_s:


     [, [[ subsetting. If 'x' is 'cytoSet', then 'x[i]' returns a
          'cytoSet' object, and 'x[[i]]' a 'cytoFrame' object. The
          semantics is similar to the behavior of the subsetting
          operators for lists.

     _c_o_l_n_a_m_e_s, _c_o_l_n_a_m_e_s<- extract or replace the 'colnames' slot.

     _p_h_e_n_o_D_a_t_a, _p_h_e_n_o_D_a_t_a<- extract or replace the 'phenoData' slot.

     _s_h_o_w display summary.

     _p_l_o_t Scatterplot of one or all (consecutively) 'cytoFrame'
          objects.  The additional argument 'gate' can be used to plot
          subsets of the data defined by an object of class 'gate' or
          'gateSet'.

     _h_i_s_t Draw histogram of the data. The additional argument
          'variable' can be used to subset to one variable prior to
          plotting.

_I_m_p_o_r_t_a_n_t _n_o_t_e _o_n _s_t_o_r_a_g_e _a_n_d _p_e_r_f_o_r_m_a_n_c_e:

     The bulk of the data in a 'cytoSet' object is stored in an
     'environment', and is therefore not automatically copied when the
     'cytoSet' object is copied. If 'x' is an object of class
     'cytoSet', then the code

     y <- x will create a an object 'y' that contains copies of the
     'phenoData' and administrative data in 'x', but refers to the
     _same_ environment with the actual fluorescence data. See below
     for how to create proper copies.

     The reason for this is performance. The pass-by-value semantics of
     function calls in 'R' can result in numerous copies of the same
     data object being made in the course of a series of nested
     function calls. If the data object is large, this can result in a
     considerable cost of memory and performance. 'cytoSet' objects are
     intended to contain experimental data in the order of hundreds of
     Megabytes, which can effectively be treated as read-only: typical
     tasks are the extraction of subsets and the calculation of summary
     statistics. This is afforded by the design of the 'cytoSet' class:
     an object of that class contains a 'phenoData' slot, some
     administrative information, and a _reference_ to an environment
     with the fluorescence data; when it is copied, only the reference
     is copied, but not the potentially large set of fluorescence data
     themselves.

     However, note that subsetting operations, such as

     y <- x[i]

     do create proper copies, including a copy of the appropriate part
     of the fluorescence data, as it should be expected. Thus, to make
     a proper copy of a 'cytoSet' 'x', use

     y <- x[seq(along=x)] 

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

     Florian Hahne, Wolfgang Huber <URL: http://www.ebi.ac.uk/huber>

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

     'readCytoSet', 'cytoFrame', 'gate', 'gateSet'

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

     cset<-readCytoSet(path=system.file("extdata", package="prada"),
       pattern="[A-Z][0-9][0-9]$")
     cset
     pData(cset)
     cset[[1]]
     cset[["fas-Bcl2-plate323-04-04.A02"]]
     cset["fas-Bcl2-plate323-04-04.A02"]
     cset[1:3]

     cset[[1]] <- exprs(cset[[1]])[1:100, ]

     ## Not run: 
     plot(cset[2])
     ## End(Not run)

