Contents

1 Overview

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 ((???)). 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 ((???)). 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 ((???)). 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.

2 Package Download and Installation

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)

3 Graphical User Interface (GUI)

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.

3.1 GFAG Path Viewer Function: GFAGpathUi()

‘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).

drawing

  • 1 - Tabs
    • Data Input - The first and the only non-disabled Tab upon the application’s launching. As the name implies, it is where the user will choose the input data (GFAGAnalysis output file) and it’s reading parameters.
    • Data Selection - The elements of this Tab will be disabled initially, you need to correctly upload a file in the first tab to enable it’s elements. Here you will be able to select the data to be plotted.
    • Data Formatting - The elements of this Tab will be disabled initially, you need to correctly upload a file in the first tab and then select your data in the second Tab to enable its elements. Here you will be able to format the selected data (select column order, rename columns, etc.).
    • Plot - The elements of this Tab will be disabled initially, you need to correctly upload a file in the first tab, select your data in the second Tab and the format the selected data in the third Tab to enable its elements. Here you will be able to plot the data and download the plot in .eps format.
  • 2 - Tab 1: File upload - A search buttom to upload the non-formated raw data (GFAGAnalysis output file)
  • 3 - Tab 1: Read Table Parameters - Parameters for reading file uploaded in 2, checks=TRUE.
  • 4 - Tab 1: Read Table Separator - Separators for reading file uploaded in 2, checks=TRUE (naturally only one may be selected).
  • 5 - Tab 1: File Information - Dinamic message in the main panel that informs the user about the progress in the process of file uploading.
  • 6 - Tab 1: Main Panel Tabs - Tabs in the main panel that only appear if a file was correctly uploaded. The ’ About file’ Tab provides basic information about the uploaded file such as name, size and path. The ‘Data’ Tab shows the created data.table according to the uploaded file in 1 and the selected parameters in 3 and 4. The ‘Summary’ Tab shows the output of the summary() function.

drawing

  • 7 - Tab 2: Select the ID column - Select the ID (Path) column of the uploaded file.
  • 8 - Tab 2: Select the P-values/Q-values columns - Select multiple columns corresponding to the p-values or q-values to be plotted.
  • 9 - Tab 2: Create Dataframe - Action Buttom to create a data.frame with the selected columns in 7 and 8. Note that you can add columns from multiple files, as long as the ID column is IDENTICAL!
  • 10 - Tab 2: Dataframe is ready for plotting - Action button to confirm the creation of the data.frame.
  • 11 - Tab 2: Reset Dataframe - Action buttom that resets everything done by the user in Tabs 2,3 and 4.

  • 12 - Tab 2: Main Panel - Shows the selected data.frame and the created data.frame.

drawing

  • 13 - Tab 3: Select Columns Order - Select the desired column order of your created data.frame, this will affect the plot.
  • 14 - Tab 3: Re-order dataframe - Action button that reorders the created data.frame according to the selected order in 13. Should 13 be empty the order will not be altered.
  • 15 - Tab 3: Select a column to rename - Disabled until you hit 14, this allows the user to select a column to be renamed. Note that renaming columns is purely optional!.
  • 16 - Tab 3: Write a name for the selected column - Disabled until you hit 14, this allows the user to input a new name for the column selected in 15. Note that renaming columns is purely optional!.
  • 17 - Tab 3: Rename Button - Disabled until you hit 14, this action button renames the column selected in 14 with the name in 15. If 15 is empty, the column in 14 will not be renamed. Note that renaming columns is purely optional!.
  • 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!

  • 19 - Tab 3: Dataframe is ready for plotting - Disabled until you hit 14, this action button informs the application that the formating process is finished. Upon hitting the plotting phase will start and the elements in Tab 4 will be enabled. .
  • 20 - Tab 3: Main Panel - The main Panel will show the created data.frame in Tab 2 initially, then it will also show the formated data.frame upon any changes done by the user in Tab 3. The main panel also displays a dinamic message that informs the user about progress done in this Tab. .