GNOSIS 1.5.0
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.
if (!requireNamespace("BiocManager", quietly = TRUE)) {
install.packages("BiocManager")
}
BiocManager::install("GNOSIS")
library(GNOSIS)
GNOSIS()
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.
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:
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:
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:
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:
An additional function of GNOSIS is the ability to summarise, analyse and visualise mutation annotation format (MAF) files using maftools.
GNOSIS facilitates reproducible research by allowing users to download an input log containing information on all the inputs selected throughout the session:
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.
sessionInfo()
## R Under development (unstable) (2024-10-21 r87258)
## Platform: x86_64-pc-linux-gnu
## Running under: Ubuntu 24.04.1 LTS
##
## Matrix products: default
## BLAS: /home/biocbuild/bbs-3.21-bioc/R/lib/libRblas.so
## LAPACK: /usr/lib/x86_64-linux-gnu/lapack/liblapack.so.3.12.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.5.0 maftools_2.23.0 operator.tools_1.6.3
## [4] lubridate_1.9.3 forcats_1.0.0 stringr_1.5.1
## [7] dplyr_1.1.4 purrr_1.0.2 readr_2.1.5
## [10] tidyr_1.3.1 tibble_3.2.1 ggplot2_3.5.1
## [13] tidyverse_2.0.0 shinymeta_0.2.0.3 shinyWidgets_0.8.7
## [16] dashboardthemes_1.1.6 shinydashboardPlus_2.0.5 shinydashboard_0.7.2
## [19] shiny_1.9.1 BiocStyle_2.35.0
##
## loaded via a namespace (and not attached):
## [1] IRanges_2.41.0 R.methodsS3_1.8.2
## [3] RcppCCTZ_0.2.12 gld_2.6.6
## [5] nnet_7.3-19 TCGAutils_1.27.0
## [7] DT_0.33 Biostrings_2.75.0
## [9] vctrs_0.6.5 kSamples_1.2-10
## [11] partykit_1.2-22 digest_0.6.37
## [13] png_0.1-8 shape_1.4.6.1
## [15] proxy_0.4-27 Exact_3.3
## [17] BiocBaseUtils_1.9.0 styler_1.10.3
## [19] MASS_7.3-61 fontLiberation_0.1.0
## [21] reshape2_1.4.4 httpuv_1.6.15
## [23] foreach_1.5.2 BiocGenerics_0.53.0
## [25] withr_3.0.2 xfun_0.48
## [27] ggpubr_0.6.0 survival_3.7-0
## [29] BWStest_0.2.3 memoise_2.0.1
## [31] gmp_0.7-5 systemfonts_1.1.0
## [33] AnVIL_1.19.0 ragg_1.3.3
## [35] zoo_1.8-12 DNAcopy_1.81.0
## [37] R.oo_1.26.0 Formula_1.2-5
## [39] RTCGAToolbox_2.37.0 KEGGREST_1.47.0
## [41] promises_1.3.0 httr_1.4.7
## [43] rstatix_0.7.2 restfulr_0.0.15
## [45] ps_1.8.1 rstudioapi_0.17.1
## [47] nanotime_0.3.10 pan_1.9
## [49] UCSC.utils_1.3.0 miniUI_0.1.1.1
## [51] generics_0.1.3 processx_3.8.4
## [53] inum_1.0-5 SuppDists_1.1-9.8
## [55] curl_5.2.3 S4Vectors_0.45.0
## [57] zlibbioc_1.53.0 GenomeInfoDbData_1.2.13
## [59] SparseArray_1.7.0 xtable_1.8-4
## [61] evaluate_1.0.1 S4Arrays_1.7.0
## [63] BiocFileCache_2.15.0 hms_1.1.3
## [65] glmnet_4.1-8 GenomicRanges_1.59.0
## [67] bookdown_0.41 colorspace_2.1-1
## [69] filelock_1.0.3 readxl_1.4.3
## [71] magrittr_2.0.3 later_1.3.2
## [73] lattice_0.22-6 XML_3.99-0.17
## [75] matrixStats_1.4.1 class_7.3-22
## [77] pillar_1.9.0 nlme_3.1-166
## [79] iterators_1.0.14 compiler_4.5.0
## [81] stringi_1.8.4 shinycssloaders_1.1.0
## [83] DescTools_0.99.57 jomo_2.7-6
## [85] minqa_1.2.8 SummarizedExperiment_1.37.0
## [87] GenomicAlignments_1.43.0 plyr_1.8.9
## [89] crayon_1.5.3 abind_1.4-8
## [91] BiocIO_1.17.0 truncnorm_1.0-9
## [93] chron_2.3-61 bit_4.5.0
## [95] rootSolve_1.8.2.4 chromote_0.3.1
## [97] libcoin_1.0-10 GenomicDataCommons_1.31.0
## [99] codetools_0.2-20 textshaping_0.4.0
## [101] openssl_2.2.2 flextable_0.9.7
## [103] AnVILBase_1.1.0 bslib_0.8.0
## [105] e1071_1.7-16 lmom_3.2
## [107] mime_0.12 MultiAssayExperiment_1.33.0
## [109] RaggedExperiment_1.31.0 anytime_0.3.9
## [111] splines_4.5.0 Rcpp_1.0.13
## [113] dbplyr_2.5.0 cellranger_1.1.0
## [115] knitr_1.48 blob_1.2.4
## [117] utf8_1.2.4 lme4_1.1-35.5
## [119] RJSONIO_1.3-1.9 expm_1.0-0
## [121] ggsignif_0.6.4 Matrix_1.7-1
## [123] tzdb_0.4.0 svglite_2.1.3
## [125] pkgconfig_2.0.3 tools_4.5.0
## [127] cachem_1.1.0 fabricatr_1.0.2
## [129] R.cache_0.16.0 RSQLite_2.3.7
## [131] viridisLite_0.4.2 rvest_1.0.4
## [133] DBI_1.2.3 fastmap_1.2.0
## [135] rmarkdown_2.28 scales_1.3.0
## [137] grid_4.5.0 rapiclient_0.1.8
## [139] Rsamtools_2.23.0 broom_1.0.7
## [141] sass_0.4.9 officer_0.6.7
## [143] BiocManager_1.30.25 carData_3.0-5
## [145] rpart_4.1.23 fontawesome_0.5.2
## [147] survminer_0.4.9 yaml_2.3.10
## [149] MatrixGenerics_1.19.0 rtracklayer_1.67.0
## [151] cli_3.6.3 writexl_1.5.1
## [153] stats4_4.5.0 PMCMRplus_1.9.12
## [155] lifecycle_1.0.4 askpass_1.2.1
## [157] Biobase_2.67.0 mvtnorm_1.3-1
## [159] lambda.r_1.2.4 backports_1.5.0
## [161] BiocParallel_1.41.0 timechange_0.3.0
## [163] gtable_0.3.6 rjson_0.2.23
## [165] shinylogs_0.2.1 parallel_4.5.0
## [167] jsonlite_1.8.9 mitml_0.4-5
## [169] bitops_1.0-9 kableExtra_1.4.0
## [171] multcompView_0.1-10 bit64_4.5.2
## [173] zip_2.3.1 futile.options_1.0.1
## [175] mice_3.16.0 jquerylib_0.1.4
## [177] highr_0.11 survMisc_0.5.6
## [179] shinyjs_2.1.0 R.utils_2.12.3
## [181] htmltools_0.5.8.1 KMsurv_0.1-5
## [183] rappdirs_0.3.3 formatR_1.14
## [185] glue_1.8.0 compareGroups_4.9.0
## [187] httr2_1.0.5 XVector_0.47.0
## [189] gdtools_0.4.0 RCurl_1.98-1.16
## [191] Rsolnp_1.16 futile.logger_1.4.3
## [193] gridExtra_2.3 boot_1.3-31
## [195] R6_2.5.1 Rmpfr_0.9-5
## [197] km.ci_0.5-6 GenomicFeatures_1.59.0
## [199] GenomeInfoDb_1.43.0 sourcetools_0.1.7-1
## [201] nloptr_2.1.1 DelayedArray_0.33.0
## [203] tidyselect_1.2.1 xml2_1.3.6
## [205] fontBitstreamVera_0.1.1 car_3.1-3
## [207] AnnotationDbi_1.69.0 munsell_0.5.1
## [209] fontquiver_0.2.1 cBioPortalData_2.19.0
## [211] data.table_1.16.2 websocket_1.4.2
## [213] htmlwidgets_1.6.4 RColorBrewer_1.1-3
## [215] rlang_1.1.4 uuid_1.2-1
## [217] HardyWeinberg_1.7.8 fansi_1.0.6