Entering edit mode
14 months ago
Rob
▴
170
Hi friends
Is there an R code to download CPTAC mutation data? I tried to use the following code but it did not work. I would appreciate your help. Thanks
install.packages("tidyverse")
library(tidyverse)
if (!require("BiocManager"))
install.packages("BiocManager")
BiocManager::install('GenomicDataCommons')
library(GenomicDataCommons)
qfiles = files() %>% filter( ~ cases.project.project_id == 'CPTAC-3-kirc' &
type == 'mutation' &
access == "open" #&
#analysis.workflow_type == 'STAR - Counts'
)
manifest_df = qfiles %>% manifest() # I got error here
nrow(manifest_df)
The error I get is : Error in if (ncol(tmp) < 5) { : argument is of length zero
files()
? What libraries do you have loaded? Add the output tosessionInfo()
.Hi thanks for responding. here is the full code with libraries and packages. file here is all the data before filtering for only mutation.
The error I get is :
Error in if (ncol(tmp) < 5) { : argument is of length zero
I've moved the relevant content to your post. You've still not explained where
files()
comes from and you've also not added the output tosessionInfo()
yet.