Description Usage Arguments Value Slots Examples
The Slinky class encapsulates details about location of the LINCS L1000
data files as well as access credentials for the clue.io API (if desired).
It provides methods for querying and loading data from these resources.
The helper function Slinky is a simpler way to construct
an object of this class
1 2 |
user_key |
clue.io API key |
gctx |
gctx containing expression data (optional) |
info |
info file containing metadata (optional) |
A Slinky object.
.indexinternal slot for mapping object to file data
baseBase url for clue.io API.
gctxgctx containing expression data (optional)
infoinfo file containing metadata (optional)
metadatainternal slot for storing metadata from info file, mapped to gctx file and current index.
user_keyclue.io API key (required unless CLUE_API_KEY env variable is set)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | # 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_gold <- clueInstances(sl, where_clause = list('pert_type' = 'trt_cp',
'pert_iname' = 'amoxicillin',
'cell_id' = 'MCF7',
'is_gold' = TRUE), poscon = 'omit')
amox_gold_sumexp <- loadL1K(sl, ids = amox_gold)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.