hasGOannote {GOstats}R Documentation

Check for GO annotation

Description

Given a GO term and an environment this function determines whether there is an entry (or symbol) in the environment with the same name as the term.

Usage

hasGOannote(x, which="MF")

Arguments

x A length one character vector.
which Either an environment or the name of an environment. By default this is the MF parents environment.

Details

The element x is searched for in the environment. If it is found then TRUE is returned otherwise FALSE is returned.

Value

As described above.

Author(s)

R. Gentleman

See Also

get

Examples

 t1 <- "GO:0003680"
 hasGOannote(t1)
 hasGOannote(t1, "BP")

[Package Contents]