collectSummaryFlowInfo      package:flowFlowJo      R Documentation

_C_o_l_l_e_c_t _P_o_p_u_l_a_t_i_o_n _S_t_a_t_i_s_t_i_c_s _o_n _F_l_o_w _F_i_l_e_s

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

     Creates a data structure containing a comprehensive list of
     summary statistics and related information on the cell populations
     of the FCS files referenced in one or more FlowJo workspaces.

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

       
     collectSummaryFlowInfo(fj, ...)  

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

      fj: a flowJoList object.  See readFlowJoList. 

     ...: Additional arguments detailed below:  

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

     Additional arguments also include the following:  


        fileNamePatterns - a vector of patterns that will be used to
     pick only specific FCS files from amongst all the FCS files listed
     in FlowJo workspaces.  The default (\dQuote{.}) returns all of
     them.  
        gateNamePattern  - a vector of patterns that will be used to
     pick only a subset of all the gates for all FCS files listed in
     the FlowJo workspaces.  The default (\dQuote{.}) returns all of
     them.  \emph{Not implemented yet.}  
        upperCaseGates   - Logical.  Default = FALSE.  If TRUE,
     converts all gate names to upper case.    
        keywords         - a vector of fields that you want to retrieve
     from the text section of each FCS file.   
        stripGutters     - Logical.  Currently FALSE and
     non-functional.  Whether or not to strip out gutter events before
     doing the main gating.   
        method           - what type of measurement to use for MFIs on
     each population.  One of mean, median (default), or mode. 
     \emph{Only median is currently implemented.}   


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

     The method collectSummaryFlowInfo returns a moderately complex
     data structure called an _fcsSummaryList_ detailing summary
     statistics and other information from the cell populations listed
     in one or more FlowJo workspaces.  The main argument for this
     method is a flowJoList object that was created using the
     readFlowJoList method.  The key issue here is that parsing a set
     of FlowJo workspaces and converting the referenced gates into
     flowCore style filters takes only a few seconds or minutes. 
     Reading in each of the referenced FCS files in a very large
     experiment and gating them with the filters (which this code
     does), may take many hours.  Thus this method also includes two
     arguments  (_fileNamePatterns_ and _gateNamePatterns_) to reduce
     the number of FCS files examined.  This method may, optionally,
     search the text/header section of each FCS file looking for
     specific keywords (e.g. $P2R, or $DATE, etc.) and collect the
     appropriate values.  Finally, one of the main operations of this
     method is to collect the MFIs cell counts for each population in
     each FCS file.  The user can choose either mean, median, or mode
     for the MFI values.  Returned values are in untransformed units
     (e.g. not log intensities).

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

     John Gosink

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

     See also FlowJo from TreeStar Inc, at:  <URL:
     http://www.flowjo.com/>

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

       
      
     library(flowFlowJo);
     demoLocation <- system.file("extdata", "DemoWorkspace.wsp", package="flowFlowJo"); 
     actualFCSLoc <- system.file("extdata/fcsFiles", package="flowFlowJo"); 
     testList     <- readFlowJoList(demoLocation, altFileLocation=actualFCSLoc);

     # This next statement may take a few moments to run as it is parsing through a FlowJo workspace
     # and two dozen FCS files...
     summaryStatsObj <- collectSummaryFlowInfo(testList);

