\HeaderA{xsAnnotate}{Constructor for a xsAnnotate object which one assigned xcmsSet object}{xsAnnotate}
\keyword{file}{xsAnnotate}
\begin{Description}\relax
This function handles the construction of xsAnnotate object. It
is generate from a xcmsSet object adapt its peaktable.
\end{Description}
\begin{Usage}
\begin{verbatim}
  xsAnnotate(xs = NULL,sample=NA,category=NA)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{xs}] a \code{xcmsSet} object
\item[\code{sample}] Index of the group xcmsSet sample, that is used for the EIC corelations step.

\item[\code{category}] Class label, for the class label of a grouped xcmsSet with different classes.

\end{ldescription}
\end{Arguments}
\begin{Value}
A \code{xsAnnotate} object.
\end{Value}
\begin{Author}\relax
Carsten Kuhl,
\email{ckuhl@ipb-halle.de}
\end{Author}
\begin{SeeAlso}\relax
\code{\LinkA{xsAnnotate-class}{xsAnnotate.Rdash.class}}
\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}
 library(faahKO)
 xs <- group(faahko)
 xs_anno <- xsAnnotate(xs, sample=1, category="WT")
\end{ExampleCode}
\end{Examples}

