\Header{uniquegenelist}{Eliminate Duplicate Names from the Gene List}
\keyword{array}{uniquegenelist}
\begin{Description}\relax
Eliminate duplicate names from the gene list. The new list is shorter than the full list by a factor of \code{ndups}.
\end{Description}
\begin{Usage}
\begin{verbatim}
uniquegenelist(genelist,ndups=2,spacing=1)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{genelist}] vector of gene names
\item[\code{ndups}] number of duplicate spots. The number of rows of \code{genelist} must be divisible by \code{ndups}.
\item[\code{spacing}] the spacing between duplicate names in \code{genelist}
\end{ldescription}
\end{Arguments}
\begin{Value}
A vector of length \code{length(genelist)/ndups} containing each gene name once only.\end{Value}
\begin{Author}\relax
Gordon Smyth
\end{Author}
\begin{SeeAlso}\relax
\code{\Link{unwrapdups}}
\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}
genelist <- c("A","A","B","B","C","C","D","D")
uniquegenelist(genelist,ndups=2)
genelist <- c("A","B","A","B","C","D","C","D")
uniquegenelist(genelist,ndups=2,spacing=2)
\end{ExampleCode}
\end{Examples}

