File: getOntology.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 (37 lines) | stat: -rw-r--r-- 1,183 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
36
37
\name{getOntology}
\alias{getOntology}
\title{Get GO terms for a specified ontology}
\description{
Find the subset of GO terms for the specified ontology, for each element 
of the supplied list of associations. The input list is typically from
one of the chip-specific meta-data files.
}
\usage{
getOntology(inlist, ontology=c("MF", "BP", "CC"))
}
\arguments{
  \item{inlist}{A list of GO associations}
  \item{ontology}{The name of the ontology you want returned.}
}
\details{
  The input list should be a list of lists, each element of \code{inlist}
  is itself a list containing the information that maps from a specified 
  ID (usually LocusLink) to GO information. Each element of the inner list 
  is a list with elements \code{GOID}, \code{Ontology} and \code{Evidence}. 
}
\value{
   A list of the same length as the input list. Each element of this
   list will contain a vector of \code{GOID}s for those terms that match
   the requested ontology.
}
\author{R. Gentleman}

\seealso{\code{\link{getEvidence}}, \code{\link{dropECode}}}

\examples{
 library("hgu95av2.db")
 bb <- hgu95av2GO[["39613_at"]]
 getOntology(bb)
 sapply(bb, function(x) x$Ontology)
}
\keyword{manip}