\HeaderA{read.cel.header}{Parsing the header of an Affymetrix CEL file}{read.cel.header}
\keyword{file}{read.cel.header}
\begin{Description}\relax
Reads in the header of an Affymetrix CEL file using the Fusion SDK.
\end{Description}
\begin{Usage}
\begin{verbatim}
read.cel.header(fname)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{fname}] the name of the CEL file.
\end{ldescription}
\end{Arguments}
\begin{Details}\relax
This function returns the header of a CEL file. Affymetrix operates
with different versions of this file format. Depending on what version
is being read, different information is accessible.
\end{Details}
\begin{Value}
A named list with components described below. The entries are
obtained from the Fusion SDK interface functions. We try to obtain all
relevant information from the file.
\begin{ldescription}
\item[\code{filename}] the name of the cel file.
\item[\code{version}] the version of the cel file. (FIXME: add description).
\item[\code{cols}] the number of columns on the chip.
\item[\code{rows}] the number of rows on the chip.
\item[\code{total}] the total number of features on the chip. Usually equal
to \code{rows} times \code{cols}, but since it is a separate attribute
in the SDK we decided to include it anyway.
\item[\code{algorithm}] the algorithm used to create the CEL file.
\item[\code{parameters}] the parameters used to in the algorithm. Seems to be
semi-colon separated.
\item[\code{chiptype}] the type of the chip.
\item[\code{header}] the entire header of the CEL file. Only available for
non-calvin format files.
\item[\code{cellmargin}] a parameter used to generate the CEL file. According
to Affymetrix, it designates the number of pixels to ignore around the
feature border when calculating the intensity value (the number of
pixels ignored are cellmargin divided by 2).
\item[\code{noutliers}] the number of features reported as outliers.
\item[\code{nmasked}] the number of features reported as masked.
\end{ldescription}
\end{Value}
\begin{Note}\relax
Memory usage:the Fusion SDK
allocates memory for the entire CEL file, when the file is
accessed. The memory footprint of this function will therefore seem to
be (rather) large.

Speed: CEL files of version 2 (standard text files) needs to be
completely read in order to report the number of outliers and masked
features.
\end{Note}
\begin{Author}\relax
James Bullard, \email{bullard@stat.berkeley.edu} and
Kasper Daniel Hansen, \email{khansen@stat.berkeley.edu}
\end{Author}
\begin{SeeAlso}\relax
\code{\LinkA{read.cel.complete}{read.cel.complete}} for reading in the entire CEL
file. That function also returns the header. See \code{affxparserInfo}
for general comments on the package and the Fusion SDK.
\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}
## Not run: 
read.cel.header("~/testFile.CEL")
## End(Not run)
\end{ExampleCode}
\end{Examples}

