\HeaderA{addData-methods}{Import additional CEL files into a DataTreeSet}{addData.Rdash.methods}
\aliasA{addData}{addData-methods}{addData}
\keyword{methods}{addData-methods}
\begin{Description}\relax
Import additional CEL files into a DataTreeSet and update \code{\LinkA{ROOT}{ROOT}} data file.

\emph{Usage}

\code{
addData(object, celdir = NULL, celfiles = "", celnames = NULL, project = NULL, verbose = TRUE)
}
\end{Description}
\begin{Arguments}
\begin{ldescription}
\item[\code{object}] object of class \code{DataTreeSet}.
\item[\code{celdir}] system directory containing the CEL-files for corresponding scheme.
\item[\code{celfiles}] optional vector of CEL-files to be imported.
\item[\code{celnames}] optional vector of names which should replace the CEL-file names.
\item[\code{project}] optional class \code{\LinkA{ProjectInfo}{ProjectInfo}}.
\item[\code{verbose}] logical, if \code{TRUE} print status information.
\end{ldescription}
\end{Arguments}
\begin{Details}\relax
Import additional CEL-files and update \code{\LinkA{ROOT}{ROOT}} data file \code{rootfile}.

To import CEL-files from different directories, vector \code{celfiles} must contain the
full path for each CEL-file and \code{celdir} must be \code{celdir=NULL}.
\end{Details}
\begin{Value}
A \code{DataTreeSet} object.
\end{Value}
\begin{Author}\relax
Christian Stratowa
\end{Author}
\begin{SeeAlso}\relax
\code{\LinkA{import.data}{import.data}}, \code{\LinkA{root.data}{root.data}}
\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}
## get scheme and import subset of CEL-files from package
scheme.test3 <- root.scheme(paste(.path.package("xps"),"schemes/SchemeTest3.root",sep="/"))
data.test3 <- import.data(scheme.test3,"tmp_test3",celdir=paste(.path.package("xps"),"raw",sep="/"),
              celfiles=c("TestA1.CEL","TestB2.CEL"),verbose=FALSE)

unlist(treeNames(data.test3))

## add further subset of CEL-files
data.test3 <- addData(data.test3,celdir=paste(.path.package("xps"),"raw",sep="/"),
              celfiles=c("TestA2.CEL","TestB1.CEL"),verbose=FALSE)

unlist(treeNames(data.test3))
\end{ExampleCode}
\end{Examples}

