GDCdownload | R Documentation |
Uses GDC API or GDC transfer tool to download gdc data The user can use query argument The data from query will be save in a folder: project/data.category
GDCdownload(
query,
token.file,
method = "api",
directory = "GDCdata",
files.per.chunk = NULL
)
query |
A query for GDCquery function |
token.file |
Token file to download controlled data (only for method = "client") |
method |
Uses the API (POST method) or gdc client tool. Options "api", "client". API is faster, but the data might get corrupted in the download, and it might need to be executed again |
directory |
Directory/Folder where the data was downloaded. Default: GDCdata |
files.per.chunk |
This will make the API method only download n (files.per.chunk) files at a time. This may reduce the download problems when the data size is too large. Expected a integer number (example files.per.chunk = 6) |
Shows the output from the GDC transfer tools
Tiago Chedraoui Silva
## Not run:
# Download clinical data from XML
query <- GDCquery(project = "TCGA-COAD", data.category = "Clinical")
GDCdownload(query, files.per.chunk = 200)
query <- GDCquery(
project = "TARGET-AML",
data.category = "Transcriptome Profiling",
data.type = "miRNA Expression Quantification",
workflow.type = "BCGSC miRNA Profiling",
barcode = c("TARGET-20-PARUDL-03A-01R", "TARGET-20-PASRRB-03A-01R")
)
# data will be saved in:
# example_data_dir/TARGET-AML/harmonized/Transcriptome_Profiling/miRNA_Expression_Quantification
GDCdownload(query, method = "client", directory = "example_data_dir")
query_acc_gbm <- GDCquery(
project = c("TCGA-ACC", "TCGA-GBM"),
data.category = "Transcriptome Profiling",
data.type = "Gene Expression Quantification",
workflow.type = "STAR - Counts"
)
GDCdownload(
query = query_acc_gbm,
method = "api",
directory = "example",
files.per.chunk = 50
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.