Skip to contents

Retrieve a summary of information about a term

Usage

get_term_info(x, term_id, ...)

Arguments

x

A SemsqlConn object.

term_id

character(1) CURIE.

...

not used

Value

list with elements id, label, definition, synonyms, superclasses, subclasses.

Examples

goref <- semsql_connect(ontology = "go")
#> Connected to SemanticSQL database: /home/runner/.cache/R/BiocFileCache/1988cc470f_go.db
#> Primary ontology prefix: GO
info <- get_term_info(goref, "GO:0006915")
info$label
#>      subject             label
#> 1 GO:0006915 apoptotic process
info$superclasses
#>           id                 label
#> 1 GO:0012501 programmed cell death
disconnect(goref)
#> Disconnected from '1988cc470f_go.db'