clueCount {slinky} | R Documentation |
Wrapper for Slinky.io REST calls to retrieve record counts
clueCount(x, endpoint = c("sigs", "cells", "genes", "perts", "plates", "profiles", "rep_drugs", "pcls"), where_clause = "") ## S4 method for signature 'Slinky' clueCount(x, endpoint = c("sigs", "cells", "genes", "perts", "plates", "profiles", "rep_drugs", "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
# 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))