clueInstances {slinky} | R Documentation |
Convenience wrapper to query function to retrieve instance ids meeting specified criteria.
clueInstances(x, where_clause = NULL, verbose = FALSE, poscon = c("omit", "keep")) ## S4 method for signature 'Slinky' clueInstances(x, where_clause = NULL, verbose = FALSE, poscon = c("omit", "keep"))
x |
a Slinky Object |
where_clause |
Filter terms, as a list of terms, e.g.
|
verbose |
Do you want to know how things are going? Default is false. |
poscon |
Instances of type |
Vector of ids matching criteria. This is a convenience wrapper to the signature API which queries clue.io and unwraps response.
# for build/demo only. You MUST use your own key when using the slinky # package. user_key <- httr::content(httr::GET('https://api.clue.io/temp_api_key'), as='parsed')$user_key sl <- Slinky(user_key, system.file('extdata', 'demo.gctx', package='slinky'), system.file('extdata', 'demo_inst_info.txt', package = 'slinky')) amox_ids <- clueInstances(sl, where_clause = list("pert_iname" = "amoxicillin", "cell_id" = "MCF7", "is_gold" = TRUE))