1 Introduction

Exploratory, statistical and survival analysis of cancer genomic data is extremely important and can lead to new discoveries, such as the identification of novel genomic prognostic markers, that have the potential to advance our understanding of cancer and ultimately benefit patients. These analyses are often performed on data available from a number of consortia websites, such as cBio Cancer Genomics Portal (cBioPortal), which is one of the best known and commonly used consolidated curations that hosts data from large consortium efforts. While cBioPortal provides both graphical user interface (GUI)-based and representational state transfer mediated means for researchers to explore and analyse clinical and genomics data, its capabilities have their limitations and oftentimes, to explore specific hypotheses, users need to perform a more sophisticated ‘off site’ analysis that typically requires users to have some prior programming experience.

To overcome these limitations and provide a GUI that facilitates the visualisation and interrogation of cancer genomics data, particularly cBioPortal-hosted data, using standard biostatistical methodologies, we developed an R Shiny app called GeNomics explOrer using StatistIcal and Survival analysis in R (GNOSIS). GNOSIS was initially developed as part of our study, using the METABRIC data, to investigate whether survival outcomes are associated with genomic instability in luminal breast cancers and was further developed to enable the exploration, analysis and incorporation of a diverse range of genomic features with clinical data in a research or clinical setting.

GNOSIS leverages a number of R packages and provides an intuitive GUI with multiple tab panels supporting a range of functionalities, including data upload and initial exploration, data recoding and subsetting, data visualisations, statistical analysis, mutation analysis and, in particular, survival analysis to identify prognostic markers. In addition, GNOSIS also helps researchers carry out reproducible research by providing downloadable input logs (Shiny_Log.txt) from each session.

GNOSIS has been submitted to Bioconductor to aid researchers in carrying out a reproducable, comprehensive statistical and survival analysis using data obtained from cBioPortal, or otherwise.

2 Installation

if (!requireNamespace("BiocManager", quietly = TRUE)) {
    install.packages("BiocManager")
}

BiocManager::install("GNOSIS")

3 Loading the package

library(GNOSIS)

4 Launching GNOSIS

GNOSIS()

5 GNOSIS layout

The GNOSIS GUI has 4 main elements: (1) A sidebar where each analysis tab can be selected, the Exploratory Tables tab is selected and displayed. (2) Tab panels within each tab, allowing multiple operations to be carried out and viewed in the one tab. (3) A box sidebar allowing users to select inputs, alter arguments and customise and export visualisations. (4) Main viewing panel displaying output.

6 Data upload and preview

Users can upload their own clinical, CNA or mutation data stored on their local machine, or select a cBioPortal study to upload:



A preview of the uploaded/selected data is provided in the GNOSIS viewing panel to ensure that the data has been read in correctly:




In the case where a cBioPortal study does not contain CNA and/or MAF data, a warning will be produced alerting users to this.

In addition, users can select specific columns of each dataframe to inspect:

7 Data reformatting and filtering

To prepare the data for downstream analysis a number a things can be done. Firstly users can change the type of variables to numeric or factors using the box sidebar, which contains a space to select relevant variables:


Subsequently, users can subset the data based on up to three categorical variables and carry out survival variable recoding.

Here we filter the data to only include patients who received chemotherapy:

We also recode the overall and disease-specific survival to 0/1:


In cases where CNA data is uploaded, users may produce and segment CNA metrics for each patient, as well as select and extract specific genes for further analysis:

8 Data visualisation

Users can produce a range of visualisations including boxplots, scatterplots, barplots, histograms and density plots.

Here is an example of a customisable boxplot, that can also be downloaded:

9 Statistical and survival analysis

The primary function offered by GNOSIS is statistically robust survival analysis. GNOSIS contains several step-wise tabs to provide a complete survival analysis of the data under investigation.

Users can produce KM survival curves and the corresponding logrank tests to identify survival-associated categorical variables, both visually and statistically.



Users can perform a selection of association tests to identify variables that are associated with each other. This enables users to identify potential confounding variables in the analysis.

Statistical association tests available include the Chi-squared test, Fisher’s exact test, simulated Fisher’s exact test, ANOVA, Kruskal-Wallis test, pairwise t-test and Dunn’s test.


Users can produce both univariate and multivariable Cox models to identify survival-associated variables, and test the assumptions of these models using graphical diagnostics based on the scaled Schoenfeld residuals:




The corresponding adjusted survival curves, survival curves adjusted for the covariates in the multivariable Cox model, can also be produced and customised:


In the case where the PH assumption of the multivariable Cox model is violated, users can apply recursive partitioning survival trees:

10 Mutation Analysis

An additional function of GNOSIS is the ability to summarise, analyse and visualise mutation annotation format (MAF) files using maftools.



11 Input Log

GNOSIS facilitates reproducible research by allowing users to download an input log containing information on all the inputs selected throughout the session:

12 Additional Resources

For details on the implementation, layout and application of GNOSIS see the corresponding publication. Demonstration videos providing a walkthrough of GNOSIS are also provided on Zenodo.

13 Session Info

sessionInfo()
## R version 4.3.1 (2023-06-16)
## Platform: x86_64-pc-linux-gnu (64-bit)
## Running under: Ubuntu 22.04.3 LTS
## 
## Matrix products: default
## BLAS:   /home/biocbuild/bbs-3.18-bioc/R/lib/libRblas.so 
## LAPACK: /usr/lib/x86_64-linux-gnu/lapack/liblapack.so.3.10.0
## 
## 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       
## 
## time zone: America/New_York
## tzcode source: system (glibc)
## 
## attached base packages:
## [1] stats     graphics  grDevices utils     datasets  methods   base     
## 
## other attached packages:
##  [1] GNOSIS_1.0.0             maftools_2.18.0          operator.tools_1.6.3    
##  [4] lubridate_1.9.3          forcats_1.0.0            stringr_1.5.0           
##  [7] dplyr_1.1.3              purrr_1.0.2              readr_2.1.4             
## [10] tidyr_1.3.0              tibble_3.2.1             ggplot2_3.4.4           
## [13] tidyverse_2.0.0          shinymeta_0.2.0.3        shinyWidgets_0.8.0      
## [16] dashboardthemes_1.1.6    shinydashboardPlus_2.0.3 shinydashboard_0.7.2    
## [19] shiny_1.7.5.1            BiocStyle_2.30.0        
## 
## loaded via a namespace (and not attached):
##   [1] matrixStats_1.0.0           bitops_1.0-7               
##   [3] fontawesome_0.5.2           webshot_0.5.5              
##   [5] httr_1.4.7                  RColorBrewer_1.1-3         
##   [7] GenomicDataCommons_1.26.0   tools_4.3.1                
##   [9] backports_1.4.1             utf8_1.2.4                 
##  [11] R6_2.5.1                    DT_0.30                    
##  [13] jomo_2.7-6                  withr_2.5.1                
##  [15] gridExtra_2.3               TCGAutils_1.22.0           
##  [17] prettyunits_1.2.0           cli_3.6.1                  
##  [19] Biobase_2.62.0              textshaping_0.3.7          
##  [21] formatR_1.14                shinyjs_2.1.0              
##  [23] officer_0.6.3               sass_0.4.7                 
##  [25] survMisc_0.5.6              mvtnorm_1.2-3              
##  [27] proxy_0.4-27                askpass_1.2.0              
##  [29] rapiclient_0.1.3            Rsamtools_2.18.0           
##  [31] systemfonts_1.0.5           svglite_2.1.2              
##  [33] gfonts_0.2.0                R.utils_2.12.2             
##  [35] sourcetools_0.1.7-1         styler_1.10.2              
##  [37] readxl_1.4.3                httpcode_0.3.0             
##  [39] rstudioapi_0.15.0           RSQLite_2.3.1              
##  [41] generics_0.1.3              shape_1.4.6                
##  [43] BiocIO_1.12.0               car_3.1-2                  
##  [45] zip_2.3.0                   Matrix_1.6-1.1             
##  [47] futile.logger_1.4.3         fansi_1.0.5                
##  [49] DescTools_0.99.50           S4Vectors_0.40.0           
##  [51] abind_1.4-5                 R.methodsS3_1.8.2          
##  [53] lifecycle_1.0.3             yaml_2.3.7                 
##  [55] inum_1.0-5                  carData_3.0-5              
##  [57] SummarizedExperiment_1.32.0 RaggedExperiment_1.26.0    
##  [59] SparseArray_1.2.0           BiocFileCache_2.10.0       
##  [61] grid_4.3.1                  blob_1.2.4                 
##  [63] promises_1.2.1              crayon_1.5.2               
##  [65] mitml_0.4-5                 miniUI_0.1.1.1             
##  [67] lattice_0.22-5              AnVIL_1.14.0               
##  [69] GenomicFeatures_1.54.0      KEGGREST_1.42.0            
##  [71] pillar_1.9.0                knitr_1.44                 
##  [73] GenomicRanges_1.54.0        rjson_0.2.21               
##  [75] boot_1.3-28.1               gld_2.6.6                  
##  [77] codetools_0.2-19            cBioPortalData_2.14.0      
##  [79] compareGroups_4.7.2         pan_1.9                    
##  [81] glue_1.6.2                  fontLiberation_0.1.0       
##  [83] data.table_1.14.8           MultiAssayExperiment_1.28.0
##  [85] vctrs_0.6.4                 png_0.1-8                  
##  [87] cellranger_1.1.0            gtable_0.3.4               
##  [89] cachem_1.0.8                xfun_0.40                  
##  [91] S4Arrays_1.2.0              mime_0.12                  
##  [93] libcoin_1.0-10              survival_3.5-7             
##  [95] RTCGAToolbox_2.32.0         iterators_1.0.14           
##  [97] KMsurv_0.1-5                ellipsis_0.3.2             
##  [99] nlme_3.1-163                RcppCCTZ_0.2.12            
## [101] bit64_4.0.5                 fontquiver_0.2.1           
## [103] progress_1.2.2              filelock_1.0.2             
## [105] GenomeInfoDb_1.38.0         R.cache_0.16.0             
## [107] bslib_0.5.1                 rpart_4.1.21               
## [109] colorspace_2.1-0            BiocGenerics_0.48.0        
## [111] DBI_1.1.3                   nnet_7.3-19                
## [113] DNAcopy_1.76.0              Exact_3.2                  
## [115] tidyselect_1.2.0            bit_4.0.5                  
## [117] compiler_4.3.1              curl_5.1.0                 
## [119] chron_2.3-61                glmnet_4.1-8               
## [121] rvest_1.0.3                 HardyWeinberg_1.7.5        
## [123] flextable_0.9.4             mice_3.16.0                
## [125] expm_0.999-7                xml2_1.3.5                 
## [127] nanotime_0.3.7              fontBitstreamVera_0.1.1    
## [129] DelayedArray_0.28.0         bookdown_0.36              
## [131] rtracklayer_1.62.0          scales_1.2.1               
## [133] RCircos_1.2.2               rappdirs_0.3.3             
## [135] digest_0.6.33               minqa_1.2.6                
## [137] rmarkdown_2.25              XVector_0.42.0             
## [139] htmltools_0.5.6.1           pkgconfig_2.0.3            
## [141] lme4_1.1-34                 MatrixGenerics_1.14.0      
## [143] dbplyr_2.3.4                fastmap_1.1.1              
## [145] rlang_1.1.1                 htmlwidgets_1.6.2          
## [147] jquerylib_0.1.4             zoo_1.8-12                 
## [149] jsonlite_1.8.7              BiocParallel_1.36.0        
## [151] R.oo_1.25.0                 RCurl_1.98-1.12            
## [153] magrittr_2.0.3              Formula_1.2-5              
## [155] kableExtra_1.3.4            GenomeInfoDbData_1.2.11    
## [157] munsell_0.5.0               Rcpp_1.0.11                
## [159] shinycssloaders_1.0.0       gdtools_0.3.4              
## [161] partykit_1.2-20             stringi_1.7.12             
## [163] rootSolve_1.8.2.4           RJSONIO_1.3-1.8            
## [165] zlibbioc_1.48.0             MASS_7.3-60                
## [167] plyr_1.8.9                  parallel_4.3.1             
## [169] shinylogs_0.2.1             lmom_3.0                   
## [171] survminer_0.4.9             Biostrings_2.70.0          
## [173] splines_4.3.1               hms_1.1.3                  
## [175] anytime_0.3.9               ggpubr_0.6.0               
## [177] uuid_1.1-1                  ggsignif_0.6.4             
## [179] reshape2_1.4.4              biomaRt_2.58.0             
## [181] stats4_4.3.1                futile.options_1.0.1       
## [183] crul_1.4.0                  XML_3.99-0.14              
## [185] evaluate_0.22               lambda.r_1.2.4             
## [187] BiocManager_1.30.22         fabricatr_1.0.0            
## [189] nloptr_2.0.3                tzdb_0.4.0                 
## [191] foreach_1.5.2               httpuv_1.6.12              
## [193] openssl_2.1.1               km.ci_0.5-6                
## [195] broom_1.0.5                 xtable_1.8-4               
## [197] restfulr_0.0.15             e1071_1.7-13               
## [199] rstatix_0.7.2               Rsolnp_1.16                
## [201] later_1.3.1                 viridisLite_0.4.2          
## [203] class_7.3-22                ragg_1.2.6                 
## [205] truncnorm_1.0-9             memoise_2.0.1              
## [207] AnnotationDbi_1.64.0        GenomicAlignments_1.38.0   
## [209] IRanges_2.36.0              writexl_1.4.2              
## [211] timechange_0.2.0