Description Usage Arguments Value Examples
Convenience wrapper to query function to retrieve instance ids meeting specified criteria.
1 2 3 4 5 6 | 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.
1 2 3 4 5 6 7 8 9 10 11 12 | # 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))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.