\HeaderA{dropECode}{Drop GO labels for specified Evidence Codes}{dropECode}
\keyword{manip}{dropECode}
\begin{Description}\relax
Genes are mapped to GO terms on the basis of evidence codes. In some
analyses it will be appropriate to drop certain sets of annotations
based on specific evidence codes.
\end{Description}
\begin{Usage}
\begin{verbatim}
dropECode(inlist, code="IEA")
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{inlist}] A list of GO data 
\item[\code{code}] The set of codes that should be dropped. 
\end{ldescription}
\end{Arguments}
\begin{Details}\relax
A simple use of \code{\LinkA{lapply}{lapply}} and \code{\LinkA{sapply}{sapply}} to find
and eliminate those terms that have the specified evidence codes.

This might be used when one is using to GO to validate a sequence
matching experiment (for example), then all terms whose mapping was
based on sequence similarity (say ISS and IEA) should be removed.
\end{Details}
\begin{Value}
A list of the same length as the input list retaining only those
annotations whose evidence codes were not the ones in the exclusion
set \code{code}.
\end{Value}
\begin{Author}\relax
R. Gentleman
\end{Author}
\begin{SeeAlso}\relax
\code{\LinkA{getEvidence}{getEvidence}}, \code{\LinkA{getOntology}{getOntology}}
\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}
library("GO")
 bb=GOENTREZID2GO$"4121"
 getEvidence(bb[1:3])
 cc = dropECode(bb[1:3])
 if (length(cc))
   getEvidence(cc)
\end{ExampleCode}
\end{Examples}


