R/cadra_api.R
download_feature_sets.Rd
Get a specific feature set available on CaDrA API Portal and determine whether to include input scores and gene expression that associated with that feature set
download_feature_sets(
feature_set,
include_input_score = TRUE,
include_gene_expression = TRUE,
out_dir = Sys.getenv("HOME")
)
a list of feature sets to look up and download the appropriate data that are associated with it.
a Boolean value to determine whether to include input scores that associated with the given feature sets. Default is TRUE.
a Boolean value to determine whether to include gene expression sets that associated with the given feature sets. Default is TRUE.
a directory to save the output.
a zip file
# Retrieve a list of feature sets available from CaDrA Portal
fs_list <- CaDrA.shiny::get_feature_set(order_by = "asc")
# Download feature sets and return a datalist with appropriate paths to its dataset
mydatafile <- download_feature_sets(
feature_set = fs_list$feature_set_name[1],
include_input_score = TRUE,
include_gene_expression = TRUE,
out_dir = "~/Github"
)
# Launch CaDrA Shiny app with your downloaded datalist
app <- CaDrA.shiny::CaDrA_App(id="myapp", datalist=mydatafile)
#> Error in get_extdata(datalist = datalist): There is no feature sets exists at CCLE SCNAs and Mutations.
#> Please check your files again.
# Launch Shiny app at localhost with port 3838 (NOT RUN)
# shiny::runApp(app, host='0.0.0.0', port=3838)