\Header{splitName}{Split Composite Gene Names}
\keyword{character}{splitName}
\begin{Description}\relax
Split composite gene names into short names and gene annotation strings.
\end{Description}
\begin{Usage}
\begin{verbatim}
splitName(x, split=";", extended=TRUE)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{x}] character vector
\item[\code{split}] character to split each element of vector on, see \code{strsplit}
\item[\code{extended}] logical.  If \code{TRUE}, extended regular expression matching is used, see \code{strsplit}.
\end{ldescription}
\end{Arguments}
\begin{Details}\relax
Gene names are assumed to comprise a short name or identifier followed by more detailed annotation information.
\end{Details}
\begin{Value}
A list containing components
\begin{ldescription}
\item[\code{Name}] character vector of the same length as \code{x} contain first splits of each element
\item[\code{Annotation}] character vector of the same length as \code{x} contain second splits of each element
\end{ldescription}
\end{Value}
\begin{Author}\relax
Gordon Smyth
\end{Author}
\begin{SeeAlso}\relax
\code{\Link{strsplit}}.

An overview of LIMMA functions for reading data is given in \link{3.ReadingData}.\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}
x <- c("AA196000;actinin, alpha 3",
"AA464163;acyl-Coenzyme A dehydrogenase, very long chain",
"3E7;W15277;No Annotation")
splitName(x)
\end{ExampleCode}
\end{Examples}

