query_clue: run the api.clue.io API to acquire information on LINCS...

View source: R/clue.R

query_clueR Documentation

run the api.clue.io API to acquire information on LINCS experiments

Description

run the api.clue.io API to acquire information on LINCS experiments

Usage

query_clue(
  service = "profiles",
  filter = list(where = (list(pert_iname = "sirolimus", cell_id = "MCF7", assay =
    "L1000"))),
  key = Sys.getenv("CLUE_KEY")
)

Arguments

service

a character(1) service name

filter

a list to be converted to JSON for submission as a GET request

key

character(1) API key provided by clue.io

Value

API return value processed by fromJSON

Examples

if (nchar(Sys.getenv("CLUE_KEY"))>0) {
demos = clueDemos()
nd = length(demos)
chk = lapply(seq_len(nd), function(x) query_clue( service=names(demos)[x],
              filter=demos[[x]]) )
names(chk) = names(demos)
sapply(chk,length)
}

vjcitn/BiocOncoTK documentation built on Feb. 14, 2023, 11:56 p.m.