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

Description Usage Arguments Value Examples

View source: R/clue.R

Description

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

Usage

1
2
3
4
5
6
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

1
2
3
4
5
6
7
8
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)
}

BiocOncoTK documentation built on Nov. 8, 2020, 6:03 p.m.