RTCGA
package to download CNV data that are included in RTCGA.CNV
packageThe Cancer Genome Atlas (TCGA) Data Portal provides a platform for researchers to search, download, and analyze data sets generated by TCGA. It contains clinical information, genomic characterization data, and high level sequence analysis of the tumor genomes. The key is to understand genomics to improve cancer care.
RTCGA
package offers download and integration of the variety and volume of TCGA data using patient barcode key, what enables easier data possession. This may have an benefcial infuence on impact on development of science and improvement of patients’ treatment. RTCGA
is an open-source R package, available to download from Bioconductor
or from github
Furthermore, RTCGA
package transforms TCGA data to form which is convenient to use in R statistical package. Those data transformations can be a part of statistical analysis pipeline which can be more reproducible with RTCGA
.
Use cases and examples are shown in RTCGA
packages vignettes:
There are many available date times of TCGA data releases. To see them all just type:
Version 1.0 of RTCGA.CNV
package contains clinical datasets from 2015-11-01
. There were downloaded as follows (which is mainly copied from http://rtcga.github.io/RTCGA/:
All cohort names can be checked using:
For all cohorts the following code downloads the CNV data.
Datasets from the folder data/CNV2
are imported and transformed into rda files.
allCNVFiles <- list.files("data/CNV2", pattern = "cnv", recursive = TRUE, full.names = TRUE)
for (CNVFile in allCNVFiles) {
CNV <- read.table(CNVFile,h=T)
cohortName <- strsplit(strsplit(CNVFile, split = "/")[[1]][4], "\\.")[[1]][1]
name = paste0(cohortName, ".CNV")
assign(name, CNV)
save(list = name, file=paste0("data/CNV2/", name, ".rda"), compression_level = 9, compress = "xz")
}
RTCGA.CNV
packageNow you should copy all rda files into the RTCGA.CNV package data directory.