Using RTCGA package to download CNV data that are included in RTCGA.CNV package

Date of datasets release: 2015-11-01

Przemyslaw Biecek

2022-04-28

RTCGA package

The 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

if (!requireNamespace("BiocManager", quietly=TRUE))
    install.packages("BiocManager")
BiocManager::install("RTCGA")

or from github

if (!require(devtools)) {
    install.packages("devtools")
    require(devtools)
}
BiocManager::install("RTCGA/RTCGA")

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:

browseVignettes("RTCGA")

How to download CNV data (i.e. copy number variation) to gain the same datasets as in RTCGA.CNV package?

There are many available date times of TCGA data releases. To see them all just type:

library(RTCGA)
checkTCGA('Dates')

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/:

Available cohorts

All cohort names can be checked using:

For all cohorts the following code downloads the CNV data.

Downloading files

Reading downloaded CNV dataset

Datasets from the folder data/CNV2 are imported and transformed into rda files.

Saving CNV data to RTCGA.CNV package

Now you should copy all rda files into the RTCGA.CNV package data directory.