\HeaderA{hasGOannote}{Check for GO annotation}{hasGOannote}
\keyword{manip}{hasGOannote}
\begin{Description}\relax
Given a GO term, or a vector of GO terms and an ontology this function
determines which of the terms have GO annotation in the specified
ontology.
\end{Description}
\begin{Usage}
\begin{verbatim}
hasGOannote(x, which="MF")
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{x}] A character vector, an instance of the \code{GOTerms} class
or a list of \code{GOTerms}. 
\item[\code{which}] One of "MF", "BP" or "CC"
\end{ldescription}
\end{Arguments}
\begin{Details}\relax
The available GO annotation is searched and a determination of
whether a specific GO identifier has a value in the specified
ontology is made.
\end{Details}
\begin{Value}
A logical vector of the same length as \code{x}.
\end{Value}
\begin{Author}\relax
R. Gentleman
\end{Author}
\begin{SeeAlso}\relax
\code{\LinkA{get}{get}}
\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}
 t1 <- "GO:0003680"
 hasGOannote(t1)
 hasGOannote(t1, "BP")
\end{ExampleCode}
\end{Examples}

