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 4.2.1 (2022-06-23)
## Platform: x86_64-pc-linux-gnu (64-bit)
## Running under: Ubuntu 20.04.5 LTS
## 
## Matrix products: default
## BLAS:   /home/biocbuild/bbs-3.16-bioc/R/lib/libRblas.so
## LAPACK: /home/biocbuild/bbs-3.16-bioc/R/lib/libRlapack.so
## 
## locale:
##  [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C              
##  [3] LC_TIME=en_GB              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] stats4    stats     graphics  grDevices utils     datasets  methods  
## [8] base     
## 
## other attached packages:
##  [1] MultiAssayExperiment_1.24.0 SummarizedExperiment_1.28.0
##  [3] Biobase_2.58.0              MatrixGenerics_1.10.0      
##  [5] matrixStats_0.62.0          GenomicRanges_1.50.0       
##  [7] GenomeInfoDb_1.34.0         IRanges_2.32.0             
##  [9] S4Vectors_0.36.0            sesameData_1.15.2          
## [11] ExperimentHub_2.6.0         AnnotationHub_3.6.0        
## [13] BiocFileCache_2.6.0         dbplyr_2.2.1               
## [15] BiocGenerics_0.44.0         BiocStyle_2.26.0           
## [17] dplyr_1.0.10                DT_0.26                    
## [19] ELMER_2.22.0                ELMER.data_2.21.0          
## 
## loaded via a namespace (and not attached):
##   [1] utf8_1.2.2                    tidyselect_1.2.0             
##   [3] RSQLite_2.2.18                AnnotationDbi_1.60.0         
##   [5] htmlwidgets_1.5.4             grid_4.2.1                   
##   [7] BiocParallel_1.32.0           munsell_0.5.0                
##   [9] codetools_0.2-18              ragg_1.2.4                   
##  [11] interp_1.1-3                  withr_2.5.0                  
##  [13] colorspace_2.0-3              filelock_1.0.2               
##  [15] highr_0.9                     knitr_1.40                   
##  [17] rstudioapi_0.14               ggsignif_0.6.4               
##  [19] labeling_0.4.2                GenomeInfoDbData_1.2.9       
##  [21] farver_2.1.1                  bit64_4.0.5                  
##  [23] downloader_0.4                vctrs_0.5.0                  
##  [25] generics_0.1.3                xfun_0.34                    
##  [27] biovizBase_1.46.0             R6_2.5.1                     
##  [29] doParallel_1.0.17             clue_0.3-62                  
##  [31] AnnotationFilter_1.22.0       bitops_1.0-7                 
##  [33] cachem_1.0.6                  reshape_0.8.9                
##  [35] DelayedArray_0.24.0           assertthat_0.2.1             
##  [37] vroom_1.6.0                   promises_1.2.0.1             
##  [39] BiocIO_1.8.0                  scales_1.2.1                 
##  [41] nnet_7.3-18                   gtable_0.3.1                 
##  [43] ensembldb_2.22.0              rlang_1.0.6                  
##  [45] systemfonts_1.0.4             GlobalOptions_0.1.2          
##  [47] splines_4.2.1                 rtracklayer_1.58.0           
##  [49] rstatix_0.7.0                 lazyeval_0.2.2               
##  [51] dichromat_2.0-0.1             broom_1.0.1                  
##  [53] checkmate_2.1.0               BiocManager_1.30.19          
##  [55] yaml_2.3.6                    reshape2_1.4.4               
##  [57] abind_1.4-5                   GenomicFeatures_1.50.0       
##  [59] crosstalk_1.2.0               backports_1.4.1              
##  [61] httpuv_1.6.6                  Hmisc_4.7-1                  
##  [63] tools_4.2.1                   ggplot2_3.3.6                
##  [65] ellipsis_0.3.2                jquerylib_0.1.4              
##  [67] RColorBrewer_1.1-3            Rcpp_1.0.9                   
##  [69] plyr_1.8.7                    base64enc_0.1-3              
##  [71] progress_1.2.2                zlibbioc_1.44.0              
##  [73] purrr_0.3.5                   RCurl_1.98-1.9               
##  [75] prettyunits_1.1.1             ggpubr_0.4.0                 
##  [77] rpart_4.1.19                  deldir_1.0-6                 
##  [79] GetoptLong_1.0.5              ggrepel_0.9.1                
##  [81] cluster_2.1.4                 magrittr_2.0.3               
##  [83] data.table_1.14.4             circlize_0.4.15              
##  [85] ProtGenerics_1.30.0           archive_1.1.5                
##  [87] hms_1.1.2                     TCGAbiolinksGUI.data_1.17.0  
##  [89] mime_0.12                     evaluate_0.17                
##  [91] xtable_1.8-4                  XML_3.99-0.12                
##  [93] jpeg_0.1-9                    gridExtra_2.3                
##  [95] shape_1.4.6                   compiler_4.2.1               
##  [97] biomaRt_2.54.0                tibble_3.1.8                 
##  [99] crayon_1.5.2                  htmltools_0.5.3              
## [101] later_1.3.0                   tzdb_0.3.0                   
## [103] Formula_1.2-4                 tidyr_1.2.1                  
## [105] DBI_1.1.3                     ComplexHeatmap_2.14.0        
## [107] rappdirs_0.3.3                Matrix_1.5-1                 
## [109] car_3.1-1                     readr_2.1.3                  
## [111] cli_3.4.1                     parallel_4.2.1               
## [113] Gviz_1.42.0                   pkgconfig_2.0.3              
## [115] GenomicAlignments_1.34.0      foreign_0.8-83               
## [117] plotly_4.10.0                 xml2_1.3.3                   
## [119] foreach_1.5.2                 bslib_0.4.0                  
## [121] XVector_0.38.0                rvest_1.0.3                  
## [123] stringr_1.4.1                 VariantAnnotation_1.44.0     
## [125] digest_0.6.30                 Biostrings_2.66.0            
## [127] rmarkdown_2.17                TCGAbiolinks_2.26.0          
## [129] htmlTable_2.4.1               restfulr_0.0.15              
## [131] curl_4.3.3                    shiny_1.7.3                  
## [133] Rsamtools_2.14.0              rjson_0.2.21                 
## [135] lifecycle_1.0.3               jsonlite_1.8.3               
## [137] carData_3.0-5                 viridisLite_0.4.1            
## [139] BSgenome_1.66.0               fansi_1.0.3                  
## [141] pillar_1.8.1                  lattice_0.20-45              
## [143] KEGGREST_1.38.0               fastmap_1.1.0                
## [145] httr_1.4.4                    survival_3.4-0               
## [147] interactiveDisplayBase_1.36.0 glue_1.6.2                   
## [149] png_0.1-7                     iterators_1.0.14             
## [151] BiocVersion_3.16.0            bit_4.0.4                    
## [153] BiocBaseUtils_1.0.0           stringi_1.7.8                
## [155] sass_0.4.2                    blob_1.2.3                   
## [157] textshaping_0.3.6             latticeExtra_0.6-30          
## [159] memoise_2.0.1

Bibliography

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