TCGA.pipe: Running ELMER for TCGA data in a compact way

TCGA.pipe is a function for easily downloading TCGA data from GDC using TCGAbiolinks package (Colaprico et al. 2016) and performing all the analyses in ELMER. For illustration purpose, we skip the downloading step. The user can use the getTCGA function to download TCGA data or use TCGA.pipe by including “download” in the analysis option.

The following command will do distal DNA methylation analysis and predict putative target genes, motif analysis and identify regulatory transcription factors.

TCGA.pipe: Mode argument

In this new version we added the argument mode in the TCGA.pipe function. This will automatically set the minSubgroupFrac to the following values:

Modes available:

  • unsupervised:
    • Use 20% of each group to identify differently methylated regions (minSubgroupFrac = 0.2 in get.diff.meth)
    • Use 40% of all samples to create Unmethytlated (U) and Methylated (M) groups in the other steps (the lowest quintile of samples is the U group and the highest quintile samples is the M group) (minSubgroupFrac = 0.4 in get.pairs and get.TFs functions)
  • supervised:
    • Use all samples in all functions and set Unmethytlated (U) and Methylated (M) one of the group selected in the analysis.

The unsupervised mode should be used when want to be able to detect a specific (possibly unknown) molecular subtype among tumor; these subtypes often make up only a minority of samples, and 20% was chosen as a lower bound for the purposes of statistical power. If you are using pre-defined group labels, such as treated replicates vs. untreated replicated, use supervised mode (all samples),

For more information please read the analysis section of the vignette.

Using mutation data to identify groups

We add in TCGA.pipe function (download step) the option to identify mutant samples to perform WT vs Mutant analysis. It will download open MAF file from GDC database (Grossman and others 2016), select a gene and identify the which are the mutant samples based on the following classification: (it can be changed using the atgument mutant_variant_classification).

Mutations classification
Argument Description
Frame_Shift_Del Mutant
Frame_Shift_Ins Mutant
Missense_Mutation Mutant
Nonsense_Mutation Mutant
Splice_Site Mutant
In_Frame_Del Mutant
In_Frame_Ins Mutant
Translation_Start_Site Mutant
Nonstop_Mutation Mutant
Silent WT
3’UTR WT
5’UTR WT
3’Flank WT
5’Flank WT
IGR1 (intergenic region) WT
Intron WT
RNA WT
Target_region WT

The arguments to be used are below:

TCGA.pipe mutation arguments
Argument Description
genes List of genes for which mutations will be verified. A column in the MAE with the name of the gene will be created with two groups WT (tumor samples without mutation), MUT (tumor samples w/ mutation), NA (not tumor samples)
mutant_variant_classification List of GDC variant classification from MAF files to consider a samples mutant. Only used when argument gene is set.
group.col A column defining the groups of the sample. You can view the available columns using: colnames(MultiAssayExperiment::colData(data)).
group1 A group from group.col. ELMER will run group1 vs group2. That means, if direction is hyper, get probes hypermethylated in group 1 compared to group 2.
group2 A group from group.col. ELMER will run group1 vs group2. That means, if direction is hyper, get probes hypermethylated in group 1 compared to group 2.

Here is an example we TCGA-LUSC data is downloaded and we will compare TP53 Mutant vs TP53 WT samples.

Session Info

## R version 3.5.3 (2019-03-11)
## Platform: x86_64-pc-linux-gnu (64-bit)
## Running under: Ubuntu 16.04.6 LTS
## 
## Matrix products: default
## BLAS: /home/biocbuild/bbs-3.8-bioc/R/lib/libRblas.so
## LAPACK: /home/biocbuild/bbs-3.8-bioc/R/lib/libRlapack.so
## 
## locale:
##  [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C              
##  [3] LC_TIME=en_US.UTF-8        LC_COLLATE=C              
##  [5] LC_MONETARY=en_US.UTF-8    LC_MESSAGES=en_US.UTF-8   
##  [7] LC_PAPER=en_US.UTF-8       LC_NAME=C                 
##  [9] LC_ADDRESS=C               LC_TELEPHONE=C            
## [11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C       
## 
## attached base packages:
## [1] parallel  stats4    stats     graphics  grDevices utils     datasets 
## [8] methods   base     
## 
## other attached packages:
##  [1] MultiAssayExperiment_1.8.3  SummarizedExperiment_1.12.0
##  [3] DelayedArray_0.8.0          BiocParallel_1.16.6        
##  [5] matrixStats_0.54.0          Biobase_2.42.0             
##  [7] GenomicRanges_1.34.0        GenomeInfoDb_1.18.2        
##  [9] IRanges_2.16.0              S4Vectors_0.20.1           
## [11] BiocGenerics_0.28.0         BiocStyle_2.10.0           
## [13] dplyr_0.8.0.1               DT_0.5                     
## [15] ELMER_2.6.3                 ELMER.data_2.6.0           
## 
## loaded via a namespace (and not attached):
##   [1] backports_1.1.3               circlize_0.4.5               
##   [3] Hmisc_4.2-0                   AnnotationHub_2.14.5         
##   [5] aroma.light_3.12.0            plyr_1.8.4                   
##   [7] selectr_0.4-1                 ConsensusClusterPlus_1.46.0  
##   [9] lazyeval_0.2.2                splines_3.5.3                
##  [11] crosstalk_1.0.0               ggplot2_3.1.0                
##  [13] sva_3.30.1                    digest_0.6.18                
##  [15] foreach_1.4.4                 ensembldb_2.6.7              
##  [17] htmltools_0.3.6               magrittr_1.5                 
##  [19] checkmate_1.9.1               memoise_1.1.0                
##  [21] BSgenome_1.50.0               cluster_2.0.7-1              
##  [23] doParallel_1.0.14             limma_3.38.3                 
##  [25] ComplexHeatmap_1.20.0         Biostrings_2.50.2            
##  [27] readr_1.3.1                   annotate_1.60.1              
##  [29] sesameData_1.0.0              R.utils_2.8.0                
##  [31] prettyunits_1.0.2             colorspace_1.4-1             
##  [33] blob_1.1.1                    rvest_0.3.2                  
##  [35] ggrepel_0.8.0                 xfun_0.6                     
##  [37] crayon_1.3.4                  RCurl_1.95-4.12              
##  [39] jsonlite_1.6                  genefilter_1.64.0            
##  [41] zoo_1.8-5                     survival_2.44-1.1            
##  [43] VariantAnnotation_1.28.13     iterators_1.0.10             
##  [45] glue_1.3.1                    survminer_0.4.3              
##  [47] gtable_0.3.0                  sesame_1.0.0                 
##  [49] zlibbioc_1.28.0               XVector_0.22.0               
##  [51] GetoptLong_0.1.7              wheatmap_0.1.0               
##  [53] shape_1.4.4                   scales_1.0.0                 
##  [55] DESeq_1.34.1                  DBI_1.0.0                    
##  [57] edgeR_3.24.3                  ggthemes_4.1.0               
##  [59] Rcpp_1.0.1                    viridisLite_0.3.0            
##  [61] cmprsk_2.2-7                  xtable_1.8-3                 
##  [63] progress_1.2.0                htmlTable_1.13.1             
##  [65] foreign_0.8-71                bit_1.1-14                   
##  [67] matlab_1.0.2                  km.ci_0.5-2                  
##  [69] preprocessCore_1.44.0         Formula_1.2-3                
##  [71] htmlwidgets_1.3               httr_1.4.0                   
##  [73] RColorBrewer_1.1-2            acepack_1.4.1                
##  [75] reshape_0.8.8                 pkgconfig_2.0.2              
##  [77] XML_3.98-1.19                 R.methodsS3_1.7.1            
##  [79] Gviz_1.26.5                   nnet_7.3-12                  
##  [81] locfit_1.5-9.1                DNAcopy_1.56.0               
##  [83] labeling_0.3                  later_0.8.0                  
##  [85] tidyselect_0.2.5              rlang_0.3.3                  
##  [87] AnnotationDbi_1.44.0          munsell_0.5.0                
##  [89] tools_3.5.3                   downloader_0.4               
##  [91] generics_0.0.2                ExperimentHub_1.8.0          
##  [93] RSQLite_2.1.1                 broom_0.5.1                  
##  [95] evaluate_0.13                 stringr_1.4.0                
##  [97] yaml_2.2.0                    knitr_1.22                   
##  [99] bit64_0.9-7                   survMisc_0.5.5               
## [101] randomForest_4.6-14           purrr_0.3.2                  
## [103] AnnotationFilter_1.6.0        TCGAbiolinks_2.10.5          
## [105] nlme_3.1-137                  EDASeq_2.16.3                
## [107] mime_0.6                      R.oo_1.22.0                  
## [109] xml2_1.2.0                    biomaRt_2.38.0               
## [111] compiler_3.5.3                rstudioapi_0.10              
## [113] plotly_4.8.0                  interactiveDisplayBase_1.20.0
## [115] curl_3.3                      tibble_2.1.1                 
## [117] geneplotter_1.60.0            stringi_1.4.3                
## [119] GenomicFeatures_1.34.7        lattice_0.20-38              
## [121] ProtGenerics_1.14.0           Matrix_1.2-17                
## [123] KMsurv_0.1-5                  pillar_1.3.1                 
## [125] BiocManager_1.30.4            GlobalOptions_0.1.0          
## [127] data.table_1.12.0             bitops_1.0-6                 
## [129] httpuv_1.5.0                  rtracklayer_1.42.2           
## [131] R6_2.4.0                      latticeExtra_0.6-28          
## [133] hwriter_1.3.2                 promises_1.0.1               
## [135] ShortRead_1.40.0              gridExtra_2.3                
## [137] codetools_0.2-16              dichromat_2.0-0              
## [139] assertthat_0.2.1              rjson_0.2.20                 
## [141] GenomicAlignments_1.18.1      Rsamtools_1.34.1             
## [143] GenomeInfoDbData_1.2.0        mgcv_1.8-28                  
## [145] hms_0.4.2                     grid_3.5.3                   
## [147] rpart_4.1-13                  tidyr_0.8.3                  
## [149] rmarkdown_1.12                ggpubr_0.2                   
## [151] biovizBase_1.30.1             shiny_1.2.0                  
## [153] base64enc_0.1-3

Bibliography

Grossman, Robert L, and others. 2016. “Toward a Shared Vision for Cancer Genomic Data.” New England Journal of Medicine 375 (12). Mass Medical Soc:1109–12.