clueCount {slinky} | R Documentation

## clueCount

### Description

Wrapper for Slinky.io REST calls to retrieve record counts

### Usage

    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

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

[Package slinky version 1.10.0 Index]