In the TCGABioLinks R package there is a function called getManifest()
which allows you to download queries samples manifest files. I have two datasets that I'm trying to pull. One is a set of tumor samples with a specific mutation, the other is the set of samples without said mutation.
What I've done so far is to query these both using the GDCquery()
function. My code is below
query <- GDCquery(project = "TCGA-BRCA",
data.category = "Transcriptome Profiling",
data.type = "Gene Expression Quantification",
workflow.type = "HTSeq - FPKM",
barcode = samples$V2)
# Samples without mutation
control_query <- GDCquery(project = "TCGA-BRCA",
data.category = "Transcriptome Profiling",
data.type = "Gene Expression Quantification", workflow.type = "HTSeq - FPKM", barcode = control$V2)
#Download manifest files
getManifest(query, save=TRUE)
getManifest(control_query, save=TRUE)
However, the problem lies with the fact that the saved manifest file is named gdc-manifest.txt, and there is no argument to change file name, so when I try to download two manifest files, one gets overwritten. How would I go about changing the file name?
The code for
getManifest
is:Maybe overwrite it with a modified version so it can write to a custom file name?