clueCount: clueCount

Description Usage Arguments Value Examples

Description

Wrapper for Slinky.io REST calls to retrieve record counts

Usage

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 = "")

Arguments

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')

Value

Count of records satisfying query

Examples

 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))
                                    

erikor/slinky documentation built on Aug. 21, 2021, 7:43 a.m.