Last active
September 1, 2020 22:16
-
-
Save lwaldron/ff6b0c0cfd289d476510d422588553c4 to your computer and use it in GitHub Desktop.
Download of full ACC and BRCA datasets, GBM IMPACT341
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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