ADAMgui 1.4.0
ADAMgui is an Graphical User Interface for the ADAM package which is GSEA R package created to group a set of genes from comparative samples (control versus experiment) belonging to different species according to their respective functions (Gene Ontology and KEGG pathways as default) and show their significance by calculating p-values referring to gene diversity and activity (Castro et al. (2009)). Each group of genes is called GFAG (Group of Functionally Associated Genes).
The ADAM package was constituted by an statistical class, all genes present in the expression data are grouped by their respective functions according to the domains described by AnalysisDomain argument. The relationship between genes and functions are made based on the species annotation package. If there is no annotation package, a three column file (gene, function and function description) must be provided. For each GFAG, gene diversity and activity in each sample are calculated. As the package always compare two samples (control versus experiment), relative gene diversity and activity for each GFAG are calculated. Using bootstrap method, for each GFAG, according to relative gene diversity and activity, two p-values are calculated. The p-values are then corrected, according to the correction method defined by PCorrectionMethod argument, generating a q-value (Molan (2018)). The significative GFAGs will be those whoose q-value stay under the cutoff set by PCorrection argument. Optionally, it’s possible to run Wilcoxon test and/or Fisher’s exact test (Fontoura and Mombach (2016)). These tests also provide a corrected p-value, and siginificative groups can be seen through them.
The ADAMgui package provides a graphical class so the outputs of the statistical functions in the ADAM package can be studied through different plots. It’s possible, for example, to choose a specific GFAG and observe the gene expression behavior within it. Features as differential expression and fold change can be easily seen.
Download and installation of the package can be done with Bioconductor plataform via BiocManager package, as the code chunk shows:
if (!requireNamespace("BiocManager", quietly = TRUE)){
install.packages("BiocManager")
BiocManager::install("ADAMgui")}
Download and installation of the development version of the package can be done from the package’s GitHub repositories as follows:
BiocManager::install('jrybarczyk/ADAMgui')
After download and installation of the desired version of the ADAMgui package, it can be loaded:
library(ADAMgui)
The ADAMgui package contains 2 graphical modules for visualization and analysis of the GFAGAnalysis output file. These modules are shiny-generated (GUI)s that allows the user to create and download plots in .eps format. The functions that launches those applications are: GFAGpathUi() and GFAGtargetUi(). The sections below contains more information about both applications.
‘Paths’ are essentially group names that contains the targets (eg: Gene Ontologies and KEGG are paths while genes and proteins related to them are targets). The GFAGAnalysis output file contains information about the paths that the user utilized in the analysis and the GFAGpathUi() is a function that launches a shiny based (GUI) that can construct heatmaps for q-values present in the GFAGAnalysis output file. Below there is the layout of an usage example of the application with the GFAGAnalysis output file created with the first 10 entries of the Aedes Aegypt data used in the statistical modules.
To generate the input file ‘ResultAnalysisAedes.txt’ use the commands on R console listed below. First load the data in the package:
library(ADAMgui)
data("ResultAnalysisAedes")
Then select the first 10 rows:
library(ADAMgui)
data("ResultAnalysisAedes")
dt<-ResultAnalysisAedes[1:10,]
And save it:
write.table(dt,'ResultAnalysisAedes.txt',sep='\t',quote = F,
row.names = F,col.names = T)
Now launch the app, it can be launched in local machine or your default browser:
library(ADAMgui)
GFAGpathUi(TRUE) #Run the app in your default browser.
GFAGpathUi(FALSE) #Run the app in R (your local machine).
11 - Tab 2: Reset Dataframe - Action buttom that resets everything done by the user in Tabs 2,3 and 4.
18 - Tab 3: Select ID/Path column position - Disabled until you hit 14, here you must select what is the current position of your ID/Path column in your currently formated data.frame. The default value is 1, should your ID/Path column be in another position, then change the value accordingly!
This application was made to further analyse the GFAGs in the GFAGAnalysis output file. These paths can have many targets (genes, proteins) and this application constructs a plot that show the differential expression of the targets in a selected Path. The user needs to input 4 files in order to use this application: the GFAGAnalysis output file, an expression file, a Path-to-Target relationship file and a differential expression file.
Below there is the layout of an usage example of the application with the GFAGAnalysis output file of the Aedes Aegypt data used in the statistical modules. Load the required data first in order to generate the input data:
library(ADAM)
library(ADAMgui)
data("ResultAnalysisAedes") # GFAG Output data
data("ExpressionAedes") # target expression data
data("GeneFunctionAedes") # Path-to-Target relationship data
data("DiffAedes") # target differential expression
Now create the files:
# save the GFAG output file
write.table(dt,'ResultAnalysisAedes.txt',sep='\t',quote = F,
row.names = F,col.names = T)
# save the target expression file
write.table(dt,'ExpressionAedes.txt',sep='\t',quote = F,
row.names = F,col.names = T)
# save the Path-to-Target relationship file
write.table(dt,'GeneFunctionAedes.txt',sep='\t',quote = F,
row.names = F,col.names = T)
# save the target differential expression file
write.table(dt,'DiffAedes.txt',sep='\t',quote = F,
row.names = F,col.names = T)
The app can be launched in local machine or your default browser:
library(ADAM)
library(ADAMgui)
GFAGtargetUi(TRUE) #Run the app in your default browser.
GFAGtargetUi(FALSE) #Run the app in R (your local machine).
15 - Tab 3: Q-value interval selection - Slider input to select a desired q-value interval between 0 and 1. Used for filtering q-values to plot.
16 - Tab 3: LogFC interval selection - Slider input to select a desired logFC interval between -10 and 10. Used for filtering logFCs to plot.
17 - Tab 3: Plot Height - Select the desired plot height.
18 - Tab 3: Plot Width - Select the desired plot height.
19 - Tab 3: Select font family for plot elements - Select the desired font family for the plot’s elements.
20 - Tab 3: Select font size for plot elements - Select the desired font size for the plot’s elements.
21 - Tab 3: Select font size for plot title - Select the desired font size for the plot’s title.
22 - Tab 3: Select font size for axis text - Select the desired font size for the axis text.
23 - Tab 3: Select font size for axis title - Select the desired font size for the axis title.
24 - Tab 3: Select font face for axis text - Select the desired font face/style for the axis text.
25 - Tab 3: Select font face for axis title - Select the desired font face/style for the axis title.
26 - Tab 3: Select font face for plot title - Select the desired font face/style for the plot title.
27 - Tab 3: Plot Buttons - Buttons to create a plot with the selected data and parameters and display it on the main panel. There are 4 tipes of plots: ‘Plot with filtered LogFC values’, ‘Plot with filtered q.values’, ‘Plot with filtered q.values and LogFC values’ and ‘Plot with no filter’.
28 - Tab 3: Download Plot - Download buttom for downloading the displayed plot in .eps format. Disabled as long as there is no plot displayed on the main panel.
29 - Tab 3: Main Panel - Display the plot.
## R version 4.0.0 (2020-04-24)
## Platform: x86_64-pc-linux-gnu (64-bit)
## Running under: Ubuntu 18.04.4 LTS
##
## Matrix products: default
## BLAS: /home/biocbuild/bbs-3.11-bioc/R/lib/libRblas.so
## LAPACK: /home/biocbuild/bbs-3.11-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] stats graphics grDevices utils datasets methods base
##
## other attached packages:
## [1] ADAMgui_1.4.0 ADAM_1.4.0 BiocStyle_2.16.0
##
## loaded via a namespace (and not attached):
## [1] Biobase_2.48.0 httr_1.4.1
## [3] bit64_0.9-7 shiny_1.4.0.2
## [5] assertthat_0.2.1 BiocManager_1.30.10
## [7] stats4_4.0.0 blob_1.2.1
## [9] GenomeInfoDbData_1.2.3 yaml_2.2.1
## [11] ggrepel_0.8.2 pillar_1.4.3
## [13] RSQLite_2.2.0 lattice_0.20-41
## [15] glue_1.4.0 digest_0.6.25
## [17] promises_1.1.0 GenomicRanges_1.40.0
## [19] RColorBrewer_1.1-2 XVector_0.28.0
## [21] ggsignif_0.6.0 colorspace_1.4-1
## [23] plyr_1.8.6 htmltools_0.4.0
## [25] httpuv_1.5.2 Matrix_1.2-18
## [27] pkgconfig_2.0.3 bookdown_0.18
## [29] zlibbioc_1.34.0 xtable_1.8-4
## [31] purrr_0.3.4 GO.db_3.10.0
## [33] scales_1.1.0 later_1.0.0
## [35] tibble_3.0.1 KEGGREST_1.28.0
## [37] IRanges_2.22.0 ggplot2_3.3.0
## [39] ggpubr_0.2.5 ellipsis_0.3.0
## [41] DT_0.13 shinyjs_1.1
## [43] SummarizedExperiment_1.18.0 pbapply_1.4-2
## [45] BiocGenerics_0.34.0 mime_0.9
## [47] magrittr_1.5 crayon_1.3.4
## [49] memoise_1.1.0 evaluate_0.14
## [51] data.table_1.12.8 tools_4.0.0
## [53] lifecycle_0.2.0 matrixStats_0.56.0
## [55] stringr_1.4.0 S4Vectors_0.26.0
## [57] munsell_0.5.0 DelayedArray_0.14.0
## [59] AnnotationDbi_1.50.0 Biostrings_2.56.0
## [61] colorRamps_2.3 compiler_4.0.0
## [63] GenomeInfoDb_1.24.0 rlang_0.4.5
## [65] grid_4.0.0 RCurl_1.98-1.2
## [67] htmlwidgets_1.5.1 bitops_1.0-6
## [69] rmarkdown_2.1 testthat_2.3.2
## [71] gtable_0.3.0 DBI_1.1.0
## [73] reshape2_1.4.4 R6_2.4.1
## [75] gridExtra_2.3 knitr_1.28
## [77] dplyr_0.8.5 varhandle_2.0.5
## [79] fastmap_1.0.1 bit_1.1-15.2
## [81] stringi_1.4.6 parallel_4.0.0
## [83] Rcpp_1.0.4.6 vctrs_0.2.4
## [85] png_0.1-7 tidyselect_1.0.0
## [87] xfun_0.13
Castro, Mauro AA, José L Rybarczyk Filho, Rodrigo JS Dalmolin, Marialva Sinigaglia, José CF Moreira, José CM Mombach, and Rita MC de Almeida. 2009. “ViaComplex: Software for Landscape Analysis of Gene Expression Networks in Genomic Context.” Bioinformatics 25 (11). Oxford University Press:1468–9.
Fontoura, C.A.R.S., and J.C.M Mombach. 2016. “PATHChange: A Tool for Identification of Differentially Expressed Pathways Using Multi-Statistic Comparison.” https://cran.r-project.org/web/packages/PATHChange/PATHChange.pdf.
Molan, A. L. 2018. “Construction of a Tool for Multispecies Genic Functional Enrichment Analysis Among Comparative Samples.” Master’s thesis, Institute of Biosciences of Botucatu – Univ. Estadual Paulista. http://hdl.handle.net/11449/157105.