gosyn: Get a go synonym from an ID.

View source: R/ontology_shared.R

gosynR Documentation

Get a go synonym from an ID.

Description

I think I will need to do similar parsing of the output for this function as per gosec() In some cases this also returns stuff like c("some text", "GO:someID") versus "some other text" versus NULL versus NA. This function just goes a mapply(gosn, go).

Usage

gosyn(go = "GO:0000001")

Arguments

go

GO id, this may be a character or list(assuming the elements are goids).

Value

Some text providing the synonyms for the given id(s).

See Also

[AnnotationDbi] [GO.db]

Examples

## Not run: 
 text =  gosyn("GO:0000001")
 text
 ## > GO:000001
 ## > "mitochondrial inheritance"

## End(Not run)

elsayed-lab/hpgltools documentation built on May 9, 2024, 5:02 a.m.