Learn R Programming

pRoloc (version 1.12.4)

goIdToTerm: Convert GO ids to/from terms

Description

Converts GO identifiers to/from GO terms, either explicitly or by checking if (any items in) the input contains "GO:".

Usage

goIdToTerm(x, names = TRUE)
goTermToId(x, names = TRUE)
flipGoTermId(x, names = TRUE)
prettyGoTermId(x)

Arguments

x
A character of GO ids or terms.
names
Should a named character be returned? Default is TRUE.

Value

A character of GO terms (ids) if x were ids (terms).

Examples

Run this code
goIdToTerm("GO:0000001")
goIdToTerm("GO:0000001", names = FALSE)
goIdToTerm(c("GO:0000001", "novalid"))
goIdToTerm(c("GO:0000001", "GO:0000002", "notvalid"))
goTermToId("mitochondrion inheritance")
goTermToId("mitochondrion inheritance", name = FALSE)
goTermToId(c("mitochondrion inheritance", "notvalid"))
prettyGoTermId("mitochondrion inheritance")
prettyGoTermId("GO:0000001")
flipGoTermId("mitochondrion inheritance")
flipGoTermId("GO:0000001")
flipGoTermId("GO:0000001", names = FALSE)

Run the code above in your browser using DataLab