\HeaderA{getLocalMetaprobeIntensities}{Get Metaprobe Intensities locally}{getLocalMetaprobeIntensities}
\keyword{documentation}{getLocalMetaprobeIntensities}
\keyword{utilities}{getLocalMetaprobeIntensities}
\begin{Description}\relax
Function that will create an expressionset from cel files.
\end{Description}
\begin{Usage}
\begin{verbatim}
        getLocalMetaprobeIntensities(celfilePath, analysis="rma", metaProbeSetsFile=NULL, annotation=NULL, aptProbesetSummarizePath=NULL,
        pgfPath=NULL, clfPath=NULL, cdfPath=NULL, verbose=TRUE)

\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{celfilePath}] The path to a folder that contains the cel files of interest.
\item[\code{analysis}] The analysis string passed to Affymetrix Power Tools. "RMA" and "RMA-sketch" are recommended starting points. See APT documentation for complete list of possibilities.
\item[\code{metaProbeSetsFile}] Path to a file containing meta probe set information. These can be downloaded from www.affymetrix.com and has names like HuEx\-1\_0\-st\-v2.r2.dt1.hg18.full.mps. This choice also decides which subset of the meta probe sets that will be used: Core, Extended or Full.
\item[\code{annotation}] Character string specifying which type of arrays is investigated.
\item[\code{aptProbesetSummarizePath}] The path to the apt-probeset-summarize file from the Affymetrix Power Tools package (including the filename itself). You can try to leave it as NULL and see what happens. If you have specified the argument before it will be remembered.
\item[\code{pgfPath}] The path to a pgf file for the exon array of interest. This argument is mutually exclusive with the cdfPath argument. These files can be downloaded from www.affymetrix.com for the array of interest. Once given for a particular annotation, the location is saved for future use and can be given as NULL next time.
\item[\code{clfPath}] The path to a clf file for the exon array of interest. This argument is mutually exclusive with the cdfPath argument. These files can be downloaded from www.affymetrix.com for the array of interest. Once given for a particular annotation, the location is saved for future use and can be given as NULL next time.
\item[\code{cdfPath}] The path to a cdf file for the array of interest. This argument is mutually exclusive with the pgfPath and clfPath arguments. These files can be downloaded from www.affymetrix.com for the array of interest.  Once given for a particular annotation, the location is saved for future use and can be given as NULL next time.
\item[\code{verbose}] TRUE or FALSE.
\end{ldescription}
\end{Arguments}
\begin{Details}\relax
This function is a simple wrapper around Affymetrix Power Tools (APT). It is useful for importing
meta probe set data from cel files to R environments. It will remember the location of annotation files,
after the first use, which removes some of the typing otherwise included in using APT.
\end{Details}
\begin{Value}
An Expressionset with meta probe set values for all meta probes in the specified metaProbeSetFile.
\end{Value}
\begin{Author}\relax
Lasse Folkersen
\end{Author}
\begin{SeeAlso}\relax
\code{\LinkA{getLocalProbeIntensities}{getLocalProbeIntensities}}, \code{\LinkA{plotOnGene}{plotOnGene}}
\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}

        ## Not run: 
        #must correct paths and give cel files before this example will work
        listOfProbesets<-c("10321_at")
        celfilePath<-path_to_some_cel_files
        aptProbesetSummarizePath<-"~/apt/apt-cel-extract"
        cdfPath<-"~/hgu133plus2.cdf"
        getLocalMetaprobeIntensities(celfilePath, annotation="hgu133plus2", aptProbesetSummarizePath=aptProbesetSummarizePath, cdfPath=cdfPath)
        
## End(Not run)
\end{ExampleCode}
\end{Examples}

