Get synonyms for a term
Usage
get_synonyms(
x,
term_id,
type = c("all", "exact", "broad", "narrow", "related"),
...
)Examples
goref <- semsql_connect(ontology = "go")
#> Connected to SemanticSQL database: /home/runner/.cache/R/BiocFileCache/1988cc470f_go.db
#> Primary ontology prefix: GO
get_synonyms(goref, "GO:0006915")
#> subject predicate synonym
#> 1 GO:0006915 oio:hasBroadSynonym cell suicide
#> 2 GO:0006915 oio:hasBroadSynonym cellular suicide
#> 3 GO:0006915 oio:hasExactSynonym apoptotic cell death
#> 4 GO:0006915 oio:hasExactSynonym apoptotic programmed cell death
#> 5 GO:0006915 oio:hasExactSynonym programmed cell death by apoptosis
#> 6 GO:0006915 oio:hasNarrowSynonym activation of apoptosis
#> 7 GO:0006915 oio:hasNarrowSynonym apoptosis
#> 8 GO:0006915 oio:hasNarrowSynonym apoptosis signaling
#> 9 GO:0006915 oio:hasNarrowSynonym apoptotic program
#> 10 GO:0006915 oio:hasNarrowSynonym type I programmed cell death
#> 11 GO:0006915 oio:hasRelatedSynonym apoptosis activator activity
#> 12 GO:0006915 oio:hasRelatedSynonym caspase-dependent programmed cell death
#> 13 GO:0006915 oio:hasRelatedSynonym commitment to apoptosis
#> 14 GO:0006915 oio:hasRelatedSynonym induction of apoptosis
#> 15 GO:0006915 oio:hasRelatedSynonym induction of apoptosis by p53
#> 16 GO:0006915 oio:hasRelatedSynonym signaling (initiator) caspase activity
get_synonyms(goref, "GO:0006915", type = "exact")
#> subject predicate synonym
#> 1 GO:0006915 oio:hasExactSynonym apoptotic cell death
#> 2 GO:0006915 oio:hasExactSynonym apoptotic programmed cell death
#> 3 GO:0006915 oio:hasExactSynonym programmed cell death by apoptosis
disconnect(goref)
#> Disconnected from '1988cc470f_go.db'