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

Description Usage Arguments Value Examples

View source: R/rxdbHandling.R

Description

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

Usage

1
2
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

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

pogos documentation built on Nov. 8, 2020, 8:11 p.m.