readExpressionSet          package:Biobase          R Documentation

_R_e_a_d '_E_x_p_r_e_s_s_i_o_n_S_e_t'

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

     Create an instance of class ExpressionSet by reading data from
     files. Unfortunately, 'widget' functionality is not yet
     implemented for readExpressionSet.

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

     readExpressionSet(exprsFile,
           phenoDataFile,
           experimentDataFile,
           notesFile,
           path,
           annotation,
           ## arguments to read.* methods 
           exprsArgs=list(sep=sep, header=header, row.names=row.names, quote=quote, ...),
           phenoDataArgs=list(sep=sep, header=header, row.names=row.names, quote=quote, stringsAsFactors=stringsAsFactors, ...),
           experimentDataArgs=list(sep=sep, header=header, row.names=row.names, quote=quote, stringsAsFactors=stringsAsFactors, ...),
           sep = "\t", header = TRUE, quote = "", stringsAsFactors = FALSE, row.names = 1L,
           ## widget
           widget = getOption("BioC")$Base$use.widgets,
           ...)

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

exprsFile: (character) File or connection from which to read expression
          values. The file should contain a matrix with rows as
          features and columns as samples. 'read.table' is called with
          this as its 'file' argument and further arguments given by
          'exprsArgs'.

phenoDataFile: (character) File or connection from which to read
          phenotypic data. 'read.AnnotatedDataFrame' is called with
          this as its 'file' argument and further arguments given by
          'phenoDataArgs'.

experimentDataFile: (character) File or connection from which to read
          experiment data. 'read.MIAME' is called with this as its
          'file' argument and further arguments given by
          'experimentDataArgs'.

notesFile: (character) File or connection from which to read notes;
          'readLines' is used to input the file.

    path: (optional) directory in which to find all the above files.

annotation: (character) A single character string indicating the
          annotation associated with this ExpressionSet.

exprsArgs: A list of arguments to be used with 'read.table' when
          reading in the expression matrix.

phenoDataArgs: A list of arguments to be used (with
          'read.AnnotatedDataFrame') when reading the phenotypic data.

experimentDataArgs: A list of arguments to be used (with 'read.MIAME')
          when reading the experiment data.

sep, header, quote, stringsAsFactors, row.names: arguments used by the
          'read.table'-like functions.

  widget: A boolean value indicating whether widgets can be used.
          Widgets are NOT yet implemented for
          'read.AnnotatedDataFrame'.

     ...: Further arguments that can be passed on to the
          'read.table'-like functions.

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

     Expression values are read using the 'read.table' function.
     Phenotypic data are read using the 'read.AnnotatedDataFrame'
     function. Experiment data are read using the 'read.MIAME'
     function. Notes are read using the 'readLines' function. The
     return value must be a valid 'ExpressionSet'.

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

     An instance of the 'ExpressionSet' class.

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

     Martin Morgan <mtmorgan@fhcrc.org>

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

     'ExpressionSet' for additional methods.

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

     exprsFile = system.file("extdata", "exprsData.txt", package="Biobase")
     phenoFile = system.file("extdata", "pData.txt", package="Biobase")

     ## Read ExpressionSet with appropriate parameters
     obj = readExpressionSet(exprsFile, phenoFile, sep = "\t", header=TRUE)
     obj

