\HeaderA{addControlData2lumi}{Add the control probe data into the controlData slot of LumiBatch object}{addControlData2lumi}
\keyword{methods}{addControlData2lumi}
\begin{Description}\relax
Add the control probe profile data, outputted by BeadStudio, into the controlData slot of LumiBatch object.
\end{Description}
\begin{Usage}
\begin{verbatim}
addControlData2lumi(controlData, x.lumi)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{controlData}] the control data can be a data.frame or the control probe filename outputted by BeadStudio 
\item[\code{x.lumi}] a LumiBatch object, to which controlData will be added. 
\end{ldescription}
\end{Arguments}
\begin{Details}\relax
The controlData slot in LumiBatch object is a data.frame with first two columns as "controlType" and "ProbeID". The rest columns are the expression amplitudes for individual samples.
\end{Details}
\begin{Value}
Return the LumiBatch object with controlData slot filled.
\end{Value}
\begin{Author}\relax
Pan Du
\end{Author}
\begin{SeeAlso}\relax
\code{\LinkA{getControlData}{getControlData}}, \code{\LinkA{plotControlData}{plotControlData}}
\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}
        ## Not runnable
        # controlFile <- 'Control_Probe_Profile.txt'
        # x.lumi <- addControlData2lumi(controlFile, x.lumi)
\end{ExampleCode}
\end{Examples}

