guess_ont.Rd
Guess the ontology of the input GO IDs
guess_ont(go_id, db = 'org.Hs.eg.db')
A vector of GO IDs.
Annotation database. It should be from https://bioconductor.org/packages/3.10/BiocViews.html#___OrgDb
10 GO IDs are randomly sampled and checked.
A single character scalar of "BP", "CC" or "MF".
If there are more than one ontologies detected. It returns NULL
.
# \donttest{
go_id = random_GO(100)
guess_ont(go_id)
#> [1] "BP"
# }