File: readExpressionSet.Rd

package info (click to toggle)
r-bioc-biobase 2.42.0-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 3,000 kB
  • sloc: ansic: 711; makefile: 3; sh: 3
file content (96 lines) | stat: -rw-r--r-- 3,795 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
\name{readExpressionSet}
\alias{readExpressionSet}
\concept{ExpressionSet}

\title{Read 'ExpressionSet'}

\description{
  Create an instance of class ExpressionSet by reading data from files.
  \sQuote{widget} functionality is not implemented for readExpressionSet.
}

\usage{
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,
      ...)
}

\arguments{
  \item{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. \code{\link{read.table}} is called with this
    as its \code{file} argument and further arguments given by \code{exprsArgs}.}
  \item{phenoDataFile}{(character) File or connection from which to read
    phenotypic data. \code{\link{read.AnnotatedDataFrame}} is called
    with this as its \code{file} argument and further arguments given by
    \code{phenoDataArgs}.}
  \item{experimentDataFile}{(character) File or connection from which to read
    experiment data. \code{\link{read.MIAME}} is called with this
    as its \code{file} argument and further arguments given by
    \code{experimentDataArgs}.}
  \item{notesFile}{(character) File or connection from which to read notes;
    \code{\link{readLines}} is used to input the file.}
  \item{path}{(optional) directory in which to find all the above files.}
  \item{annotation}{(character) A single character string indicating the
    annotation associated with this ExpressionSet.}
  \item{exprsArgs}{A list of arguments to be used with
    \code{\link{read.table}} when reading in the expression matrix.}
  \item{phenoDataArgs}{A list of arguments to be used (with
    \code{\link{read.AnnotatedDataFrame}}) when reading
    the phenotypic data.}
  \item{experimentDataArgs}{A list of arguments to be used (with
    \code{\link{read.MIAME}}) when reading the experiment data.}
  \item{sep, header, quote, stringsAsFactors, row.names}{arguments used
    by the \code{\link{read.table}}-like functions.}
  \item{widget}{A boolean value indicating whether widgets can be
    used. Widgets are NOT yet implemented for
    \code{read.AnnotatedDataFrame}.}
  \item{\dots}{Further arguments that can be passed on to the
    \code{\link{read.table}}-like functions.}
}
\details{
  Expression values are read using the \code{\link{read.table}}
  function. Phenotypic data are read using the
  \code{\link{read.AnnotatedDataFrame}} function. Experiment data are
  read using the \code{\link{read.MIAME}} function. Notes are read using
  the \code{\link{readLines}} function. The return value must be a valid
  \code{ExpressionSet}. Only the \code{exprsFile} argument is required.
}
  

\value{
  An instance of the \code{\linkS4class{ExpressionSet}} class.
}

\author{Martin Morgan <mtmorgan@fhcrc.org>}

\seealso{\code{\link{ExpressionSet}} for additional methods.}

\examples{

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

}
\keyword{file}
\keyword{manip}