annotationInfo: annotationInfo

View source: R/ep_other.R

annotationInfoR Documentation

annotationInfo

Description

annotationInfo

Usage

annotationInfo(
  annotation,
  request = NULL,
  file = NULL,
  return = TRUE,
  overwrite = FALSE,
  memoised = FALSE
)

Arguments

annotation

Character. Either plain text, ontology term ID or an ontology term URI.

request

Character. If null retreeives the annotation object. Otherwise

  • datasets: Does a search for datasets containing annotations matching the given string

file

Character. File path. If provided, response will be saved to file

return

Logical. If the response should be returned. Set to false when you only want to save a file

overwrite

Logical. If TRUE, existing files will be overwritten. If FALSE a warning will be thrown and no action is taken.

memoised

Logical. If TRUE a memoised version of the function will be used which is faster for repeated requests. Use forgetGemmaMemoised to clear memory.

Value

A list

Examples


annotationInfo('http://purl.obolibrary.org/obo/OBI_0000105')
annotationInfo('transplantation')
annotationInfo('http://purl.obolibrary.org/obo/OBI_0000105', request = 'datasets')


oganm/gemmaAPI documentation built on July 23, 2022, 8:26 p.m.