query_clue {BiocOncoTK} | R 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)
    }

[Package BiocOncoTK version 1.10.0 Index]