**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.
.
* **21** -
**Tab 4: Plot Height** - Select the desired height for the plot,
it is a reactive input, meaning that the plot will be updated automatically
as this value changes.
.
* **22** -
**Tab 4: Plot Width** - Select the desired width for the plot,
it is a reactive input, meaning that the plot will be updated automatically
as this value changes.
.
* **23** -
**Tab 4: Select a font family for plot elements** - Select the desired font
family for the plot's elements. Not reactive, you need to click in **29** to
re-plot and see the changes.
.
* **24** -
**Tab 4: Select a size for plot elements** - Select the desired size for the
font of the plot's elements. Not reactive, you need to click in **29** to
re-plot and see the changes.
.
* **25** -
**Tab 4: Select a size for plot legend** - Select the desired size for the
font of the plot's legend. Not reactive, you need to click in **29** to
re-plot and see the changes.
.
* **26** -
**Tab 4: Select a font face for the axis text** - Select the desired font
face/style (default='plain','bold','italic','bold.italic') for the font of the
plot's legend. Not reactive, you need to click in **29** to re-plot and see
the changes.
* **27** -
**Tab 4: Select a font face for the legend** - Select the desired font
face/style (default='plain','bold','italic','bold.italic') for the font of the
plot's legend. Not reactive, you need to click in **29** to re-plot and see the
changes.
* **28** -
**Tab 4: Plot Button** - Action button to display the plot with the
selected parameters.
* **29** -
**Tab 4: Download Button** - Download buttom, downloads the displayed
plot in .eps format. Disabled as long as there is no plot displayed.
* **30** -
**Tab 4: Main Panel** - Displays the plot.
## GFAG Target Viewer Function: GFAGtargetUi()
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:
```{r eval=TRUE, fig.height=6, fig.width=6}
library(ADAM)
library(ADAMgui)
```
```{r eval=TRUE, fig.height=6, fig.width=6}
data("ResultAnalysisAedes") # GFAG Output data
```
```{r eval=TRUE, fig.height=6, fig.width=6}
data("ExpressionAedes") # target expression data
```
```{r eval=TRUE, fig.height=6, fig.width=6}
data("GeneFunctionAedes") # Path-to-Target relationship data
```
```{r eval=TRUE, fig.height=6, fig.width=6}
data("DiffAedes") # target differential expression
```
Now create the files:
```{r eval=FALSE, fig.height=6, fig.width=6}
# 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:
```{r eval=TRUE, fig.height=6, fig.width=6}
library(ADAM)
library(ADAMgui)
```
```{r eval=FALSE, fig.height=6, fig.width=6}
GFAGtargetUi(TRUE) #Run the app in your default browser.
GFAGtargetUi(FALSE) #Run the app in R (your local machine).
```
* **1** - **Tabs**
+ **File Upload & Case Selection** -
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) it's reading parameters.
+ **GFAG Data Filter** -
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 filter and select the Paths whose targets will be plotted.
+ **Plot** -
The elements of this Tab will be disabled initially, you need to correctly
upload a file in the first tab and select a GFAG in the second Tab to
enable it's elements. Here you will be able to select plotting parameters,
construct the plot and download it in .eps format.
* **2** -
**Tab 1: GFAG Data** Initially this the only enabled element. Is it
where the user will choose the GFAGAnalysis output file and consequentially
the case as well.
* **3** -
**Tab 1: Target Expression Data** . This element is initially disabled, the user
needs to correctly upload a GFAGAnalysis output file first to enable it.
Here the user will choose the expression file that he used to generate the
GFAG output file that was selected.
* **4** -
**Tab 1: Path-to-Target Data** . This element is initially disabled, the user
needs to correctly upload a GFAGAnalysis output file and a expression file
first. Here the user will choose the Path-to-Target relationship file that can
be generated by the statistical modules.
* **5** -
**Tab 1:Target Differential Expression Data** . This element is initially
disabled, the user needs to correctly upload a GFAGAnalysis output file, a
expression file anda Path-to-Target file first. Here the user will choose the
differential expression file of interest. Note that this package does not
supports differential expression analysis. The user needs to make the analysis
by other means and input the results in the correct format. Because of this,
once a file is uploaded a menu containing reading parameters and column
selection elements will be displayed in this field. The columns to be selected
are respectively: the column the contains the target's ID, the column that
contains the logFC (log Fold Change) values and a the column that contains the
p-values or q-values. No control can implemented here, so if the user input the
wrong columns in the fields, the resulting plot will be wrong. Should this
happen the user needs to reset the application by clicking on **6**.
* **6** -
**Tab 1: Reset Button** . This action button can reset the whole application
so the user can make a new analysis.
* **7** -
**Tab 1: Main Panel Tabs** .
+ **7** -
**Tab 1: Main Panel Tab 1-Summary** Displays information about
the uploaded files such as the number of entries in each file,
the number of unique elements in each file, the number of targets
that are present in your expression file that are contemplated
in the Path-to-Target file, the number of Paths in your GFAGAnalysis output
file that are contemplated in the Path-to-Target.
+ **7** -
**Tab 1: Main Panel Tab 2-Tables** Displays data.tables of the uploaded
files.
* **8** -
**Tab 1: Main Panel** . Different displays depending on the selected Tab
in **7**.
* **9** -
**Tab 2: Select q-value cut-off for ativity** - Input a desired q-value
cutoff for the ativity.
* **10** -
**Tab 2: Select q-value cut-off for diversity** - Input a desired q-value
cutoff for the diversity.
* **11** -
**Tab 2: Filter Buttons** - Action buttons for filtering the uploaded GFAG
output file so the user can select a Path. There are 4 buttons: 'Filter
Ativity', 'Filter Diversity', 'Filter Ativity and Diversity' and
'No Filter', respectively.
* **12** -
**Tab 2: Select a Path of interest** - Select a path of interest and then
click on the 'Update GFAG/Path' action button to update the value.
* **13** -
**Tab 2: Start Plot** - Click in the action button once a Path has been
selected and updated in **12** to start the plotting phase and enable
the elements in **Tab 3**
* **14** -
**Tab 2: Main Panel** - Displays a data.table of the filtered GFAGAnalysis
output file.
* **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.
# Session Info
```{r SessionInfo, eval=TRUE, message=FALSE, echo=FALSE}
sessionInfo()
```
# References