\HeaderA{read.marrayInfo}{Create objects of class marrayInfo}{read.marrayInfo}
\aliasA{widget.marrayInfo}{read.marrayInfo}{widget.marrayInfo}
\keyword{file}{read.marrayInfo}
\keyword{connection}{read.marrayInfo}
\begin{Description}\relax
This function creates objects of class \code{\LinkA{marrayInfo}{marrayInfo}}. The \code{\LinkA{marrayInfo}{marrayInfo}} class is used to store
information regarding the target mRNA samples co-hybridized on the arrays or
the spotted probe sequences (e.g. data frame of gene names, annotations, and other identifiers).
\end{Description}
\begin{Usage}
\begin{verbatim}
read.marrayInfo(fname, info.id=NULL, labels=NULL, notes=fname, sep="\t",skip=0, quote="\"", ...)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{fname}] the name of the file that stores information on target samples or probe sequences. This is usually a file obtained from a database.
\item[\code{info.id}] the column numbers in \code{fname} that contain the
required information.
\item[\code{labels}] the column number in \code{fname} which contains the names that the user would like to use to label spots or arrays (e.g. for default titles in \code{\LinkA{maPlot}{maPlot}}.
\item[\code{notes}] object of class character, vector of explanatory text
\item[\code{sep}] the field separator character.  Values on each line of the
file are separated by this character. The
default is to read a tab delimited file.
\item[\code{skip}] the number of lines of the data file to skip before
beginning to read data.
\item[\code{quote}] the set of quoting characters. By default, this is disable
by setting `quote="\""'.
\item[\code{...}] further arguments to \code{\LinkA{scan}{scan}}.
\end{ldescription}
\end{Arguments}
\begin{Details}\relax
\end{Details}
\begin{Value}
An object of class \code{\LinkA{marrayInfo}{marrayInfo}}.
\end{Value}
\begin{Author}\relax
Jean Yang, \email{yeehwa@stat.berkeley.edu}
\end{Author}
\begin{References}\relax
http://www.bioconductor.org/
\end{References}
\begin{Examples}
\begin{ExampleCode}
datadir <- system.file("swirldata", package="marray")

## Reading target sample information
swirl.samples <- read.marrayInfo(file.path(datadir, "SwirlSample.txt"))

## Reading probe sequence information
swirl.gnames <- read.marrayInfo(file.path(datadir, "fish.gal"),
                                info.id=4:5, labels=5, skip=21)
\end{ExampleCode}
\end{Examples}


