Skip to content

Instantly share code, notes, and snippets.

@lwaldron
Last active September 1, 2020 22:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lwaldron/ff6b0c0cfd289d476510d422588553c4 to your computer and use it in GitHub Desktop.
Save lwaldron/ff6b0c0cfd289d476510d422588553c4 to your computer and use it in GitHub Desktop.
Download of full ACC and BRCA datasets, GBM IMPACT341
# to run this using Docker from the command line on the stock Bioconductor image:
# docker run -it bioconductor/bioconductor_docker:latest R
BiocManager::install("cBioPortalData")
library(cBioPortalData)
#acc_tcga full data pack
system.time(accpack <- cBioDataPack("acc_tcga")) #~10 seconds
accpack
#brca_tcga full data pack
system.time(brcapack <- cBioDataPack("brca_tcga")) #~109 seconds
brcapack
# acc_tcga IMPACT341 Reverse Phase Protein Array (RPPA) and Copy Number Alterations (CNA)
# takes ~1 minute
cBio <- cBioPortal()
system.time(acc341 <- cBioPortalData(api = cBio, by = "hugoGeneSymbol", studyId = "acc_tcga",
genePanelId = "IMPACT341",
molecularProfileIds = c("acc_tcga_rppa", "acc_tcga_linear_CNA")
))
acc341
# second time is much faster due to local caching (~1 second)
system.time(acc341 <- cBioPortalData(cBio, studyId = "acc_tcga",
genePanelId = "IMPACT341",
molecularProfileIds = c("acc_tcga_rppa", "acc_tcga_linear_CNA")
))
acc341
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment