Individual built-in plots
The list of plots available in the current R session via omXplore can
be obtained with:
## [1] "omXplore_cc" "omXplore_corrmatrix" "omXplore_density"
## [4] "omXplore_heatmap" "omXplore_intensity" "omXplore_pca"
## [7] "omXplore_tabExplorer" "omXplore_variance"
By default, this function lists the built-in modules and the external
modules compliant with omXplore.
Each of these functions is a Shiny app implemented as a module and
can be launched in a standalone mode or embedded in another shiny app
(as it is the case with the main UI of omXplore
or inserted
in a third party Shiny app).
Most of these functions analyse the data contained in an Experiment
of the dataset (an instance of the class
SummarizedExperiment
). For a sake of simplicity, they all
have the same two parameters: (1) the dataset in any (compatible) format
(See the help page of the plot functions for details) and (2) the indice
of the assay to analyse (See MultiAssayExperiment).
Internally, each function builds the enriched instance of MAE used
inside omXplore then show the plot for the assay which has been
specified in parameters.
data(sub_R25)
app <- omXplore_density(sub_R25, 1)
shiny::runApp(app)
Note: this code to run a shiny app follows the recommendations of
Bioconductor on Running
Shiny apps.
Main UI
As it is 9described in the previous section, omXplore have several
built-in plots. And it may be fastidious to launch each plot function
one after one to completely analyze a dataset.
For that purpose, omXplore
has another shiny app, called
view_dataset()
which acts as a hub for plots to facilitate
the analyse of the different assays in a dataset. It is launched as
follows:
data(sub_R25)
app <- view_dataset(sub_R25)
shiny::runApp(app)
The resulting UI is the following:
The interface is divided in three parts.
(A) Choosing the assay
A widget let the user select one of the experiments contained in the
dataset.
(B) Select which plot to display
A series of clickable vignettes which represent the different plots
available. When the user clicks on a vignette, the corresponding plot is
displayed (See are C).
(C) Viewing the plots
The plots are displayed in the same window as the UI (below the
vignettes) or in a modal window, depending of the option used to launch
the Shinyp app (See ?view_dataset
).
When a plot is displayed, it shows the data corresponding to the
dataset selected in the widget (of the left side). If this dataset is
changed, the plot is automatically updated with the data of the new
dataset.