Description Usage Arguments Value Examples
Wrapper for Slinky.io REST calls to retrieve record counts
1 2 3 4 5 6 7 8 | clueCount(x, endpoint = c("sigs", "cells", "genes", "perts", "plates",
"profiles", "rep_drugs", "rep_drug_indications", "pcls"),
where_clause = "")
## S4 method for signature 'Slinky'
clueCount(x, endpoint = c("sigs", "cells", "genes",
"perts", "plates", "profiles", "rep_drugs", "rep_drug_indications",
"pcls"), where_clause = "")
|
x |
a Slinky Object |
endpoint |
The endpoint to query, default is 'sigs'. |
where_clause |
Optional where_clause clause. Must be named list (e.g. list(field='value') |
Count of records satisfying query
1 2 3 4 5 6 7 8 9 10 11 12 13 | # 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_count <- clueCount(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.