Description Usage Arguments Value Examples
Fetch the vehicle control applicable to given ids (distil_id). Expects that perturbagen is of type trt_cp.
1 2 3 4 | clueVehicle(x, ids, verbose = FALSE)
## S4 method for signature 'Slinky'
clueVehicle(x, ids, verbose = FALSE)
|
x |
a Slinky Object |
ids |
The distil_id(s) to lookup. |
verbose |
Do you want to know how things are going? Default is FALSE. |
The name of the vehicle control for the queried perturbagen(s). This is a convenience wrapper to the profiles API which queries clue.io and unwraps response.
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 <- clue(sl, where_clause = list("pert_iname" = "amoxicillin",
"cell_id" = "MCF7",
"is_gold" = TRUE))
amox.ctrl <- clueVehicle(sl, amox$distil_id)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.