knitr::opts_chunk$set(cache = TRUE)
library(cBioPortalData) library(AnVIL)
This vignette lays out the two main user-facing functions for downloading
and representing data from the cBioPortal API. cBioDataPack
makes use of the legacy distribution data method in cBioPortal
(via
tarballs). cBioPortalData
allows for a more flexibile approach to obtaining
data based on several available parameters including available molecular
profiles.
This function will access the packaged data from \url{cBioPortal.org/datasets} and return an integrative MultiAssayExperiment representation.
## Use ask=FALSE for non-interactive use cBioDataPack("laml_tcga", ask = FALSE)
This function provides a more flexible and granular way to request a MultiAssayExperiment object from a study ID, molecular profile, gene panel, sample list.
cbio <- cBioPortal() acc <- cBioPortalData(api = cbio, by = "hugoGeneSymbol", studyId = "acc_tcga", genePanelId = "IMPACT341", molecularProfileIds = c("acc_tcga_rppa", "acc_tcga_linear_CNA") ) acc
In cases where a download is interrupted, the user may experience a corrupt
cache. The user can clear the cache for a particular study by using the
removeCache
function. Note that this function only works for data downloaded
through the cBioDataPack
function.
removeCache("laml_tcga")
For users who wish to clear the entire cBioPortalData
cache, it is
recommended that they use:
unlink("~/.cache/cBioPortalData/")
sessionInfo()
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.