Retrieve the GO terms associated to a gene
An ensembl gene identifier which typically starts with ensg or an ncbi gene identifier or an official gene symbol approved by hgnc
TRUE to receive results as-is from Gemma, or FALSE to enable
parsing. Raw results usually contain additional fields and flags that are
omitted in the parsed results.
Whether or not to save to cache for future calls with the
same inputs and use the result saved in cache if a result is already saved.
Doing options(gemma.memoised = TRUE) will ensure that the cache is always
used. Use forget_gemma_memoised to clear the cache.
The name of a file to save the results to, or NULL to not write
results to a file. If raw == TRUE, the output will be the raw endpoint from the
API, likely a JSON or a gzip file. Otherwise, it will be a RDS file.
Whether or not to overwrite if a file exists at the specified filename.
A data table with information about the GO terms assigned to the
queried gene. A list if raw = TRUE. A 404 error if the given identifier does not map to any
object.
The fields of the output data.table are:
term.name: Name of the term
term.ID: ID of the term
term.URI: URI of the term
get_gene_go_terms(3091)
#> term.name
#> <char>
#> 1: response to stimulus
#> 2: transport
#> 3: sequence-specific DNA binding
#> 4: positive regulation of G protein-coupled receptor signaling pathway
#> 5: positive regulation of epithelial cell migration
#> ---
#> 342: regulation of cytokine-mediated signaling pathway
#> 343: regulation of phosphorus metabolic process
#> 344: cis-regulatory region sequence-specific DNA binding
#> 345: localization
#> 346: epithelial to mesenchymal transition
#> term.ID term.URI
#> <char> <char>
#> 1: GO:0050896 http://purl.obolibrary.org/obo/GO_0050896
#> 2: GO:0006810 http://purl.obolibrary.org/obo/GO_0006810
#> 3: GO:0043565 http://purl.obolibrary.org/obo/GO_0043565
#> 4: GO:0045745 http://purl.obolibrary.org/obo/GO_0045745
#> 5: GO:0010634 http://purl.obolibrary.org/obo/GO_0010634
#> ---
#> 342: GO:0001959 http://purl.obolibrary.org/obo/GO_0001959
#> 343: GO:0051174 http://purl.obolibrary.org/obo/GO_0051174
#> 344: GO:0000987 http://purl.obolibrary.org/obo/GO_0000987
#> 345: GO:0051179 http://purl.obolibrary.org/obo/GO_0051179
#> 346: GO:0001837 http://purl.obolibrary.org/obo/GO_0001837