Learn R Programming

ELMER (version 1.4.2)

getTCGA: getTCGA to download DNA methylation, RNA expression and clinic data for all samples of certain cancer type from TCGA.

Description

getTCGA is a function to download DNA methylation, RNA expression and clinic data for all samples of certain cancer type from TCGA website. And downloaded data will be transform to matrixes or data frame for further analysis.

Usage

getTCGA(disease, Meth = TRUE, RNA = TRUE, Clinic = TRUE, basedir = "./Data", RNAtype = "gene", Methfilter = 0.2)

Arguments

disease
A character specifies the disease to download in TCGA such as BLCA
Meth
A logic if TRUE HM450K DNA methylation data will download.
RNA
A logic if TRUE RNA-seq Hiseq-V2 from TCGA level 3 will be download.
Clinic
A logic if TRUE clinic data will be download for that disease.
basedir
A path shows where the data will be stored.
RNAtype
A charactor to specify whether use isoform level or gene level. When RNAtype=gene, gene level gene expression will be used. When isoform, then isoform data will be used.
Methfilter
A number. For each probe, the percentage of NA among the all the samples should smaller than Methfilter.

Value

Download DNA methylation (HM450K)/RNAseq(HiseqV2)/Clinic data for the specified disease from TCGA.

References

https://tcga-data.nci.nih.gov/tcga/tcgaHome2.jsp

Examples

Run this code
getTCGA("BRCA",Meth=FALSE, RNA=FALSE, Clinic=TRUE, basedir="~")

Run the code above in your browser using DataLab