File: hasGOannote.Rd

package info (click to toggle)
r-bioc-annotate 1.84.0%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,624 kB
  • sloc: makefile: 2
file content (35 lines) | stat: -rw-r--r-- 817 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
\name{hasGOannote}
\alias{hasGOannote}
\title{Check for GO annotation}
\description{
  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.
}
\usage{
hasGOannote(x, which="MF")
}
\arguments{
  \item{x}{A character vector, an instance of the \code{GOTerms} class
  or a list of \code{GOTerms}.}
  \item{which}{One of "MF", "BP" or "CC"}
}
\details{
  The available GO annotation is searched and a determination of
  whether a specific GO identifier has a value in the specified
  ontology is made.
}
\value{
  A logical vector of the same length as \code{x}.
}
\author{R. Gentleman}

\seealso{\code{\link{get}}}

\examples{
 library("GO.db")
 t1 <- "GO:0003680"
 hasGOannote(t1)
 hasGOannote(t1, "BP")
}
\keyword{manip}