rxdbQuery_v1: very simple query formulation, build queries using endpoints...

View source: R/rxdbHandling.R

rxdbQuery_v1R Documentation

very simple query formulation, build queries using endpoints of bhklab PharmacoDB API

Description

very simple query formulation, build queries using endpoints of bhklab PharmacoDB API

Usage

rxdbQuery_v1(
  ...,
  url = "https://pharmacodb.pmgenomics.ca/api/v1/",
  decoder = basicDecoder
)

Arguments

...

typically a string representing an API endpoint, will be processed by unlist() and then to paste0 preceded by url

url

of a PharmacoDB server API target

decoder

a function of one argument that will be applied to API response (typically JSON)

Value

typically a list, dependent on decoder parameter

Examples

qout = rxdbQuery_v1('cell_lines') # yields 30; append '?all=true' to retrieve all
unlist(lapply(qout, function(x) x[[2]]))

vjcitn/RxGeno documentation built on Feb. 7, 2023, 5:15 a.m.