use TERM component of GO.db to give interpretations of tags

decode_gotags(x, join = TRUE)

Arguments

x

vector or data.frame with GO tags; if the latter, column name must be "GO"

join

logical(1) join result back to input data.frame if TRUE, otherwise return simple table of decodings

Note

When join is TRUE, a many-to-many join is produced.

Examples

requireNamespace("org.Hs.eg.db")
#> Loading required namespace: org.Hs.eg.db
#> 
ttnanno = AnnotationDbi::select(org.Hs.eg.db::org.Hs.eg.db, keys="TTN", keytype="SYMBOL",
  columns=c("GENENAME", "GO"))
#> 'select()' returned 1:many mapping between keys and columns
interp = decode_gotags(ttnanno)
#> 
#> 'select()' returned many:1 mapping between keys and columns
#> Joining with `by = join_by(GO)`
head(interp)
#>   SYMBOL GENENAME         GO EVIDENCE ONTOLOGY       GOID
#> 1    TTN    titin GO:0000794      IDA       CC GO:0000794
#> 2    TTN    titin GO:0002020      IPI       MF GO:0002020
#> 3    TTN    titin GO:0003300      IMP       BP GO:0003300
#> 4    TTN    titin GO:0004674      IDA       MF GO:0004674
#> 5    TTN    titin GO:0004713      IDA       MF GO:0004713
#> 6    TTN    titin GO:0005509      IDA       MF GO:0005509
#>                                       TERM
#> 1             condensed nuclear chromosome
#> 2                         protease binding
#> 3               cardiac muscle hypertrophy
#> 4 protein serine/threonine kinase activity
#> 5         protein tyrosine kinase activity
#> 6                      calcium ion binding