Toggle tabs


Load and unload tabs

In SPS, all tabs including tabs for modules and other default tabs can be loaded and unloaded. This is controlled by SPS options

Under current version, these options are:

OptionDescriptionDefaultOther
module_wfload workflow module?TRUEFALSE
module_rnaseqload RNAseq module?TRUEFALSE
module_ggplotload quick ggplot module?TRUEFALSE
tab_welcomeload welcome tab?TRUEFALSE
tab_vs_mainload custom visualization main tab?TRUEFALSE
tab_canvasload Canvas tab?TRUEFALSE
tab_aboutload about tab?TRUEFALSE

Each of them controls whether to load or unload a tab. By default, all tabs are loaded, but you can unload them by turn them to FALSE.

The original UI look like this:

Default UI

To unload some tabs, scroll to the option lines in global.R file:

options(sps = list(
    ...
    tab_welcome = TRUE,
    tab_vs_main = TRUE,
    tab_canvas = FALSE,
    tab_about = FALSE,
    module_wf = FALSE,
    module_rnaseq = FALSE,
    module_ggplot = TRUE,
    ...
))

We unload the “Canvas tab”, “workflow module tab”, “RNASeq module tab” and “About tab”. When you restart the app, you should see some tabs are gone:

The original UI look like this:

Unload some tabs

Exception for module main page

You may have noticed, there is no option to unload the module main tab, which is named “Modules” on the left sidebar. This is because this tab is controlled by its sub-tabs, the module tab options. To unload this tab, all the module tabs have to be unloaded the same time like following. If any module is loaded, this module main tab cannot be unloaded.

options(sps = list(
    ...
    module_wf = FALSE,
    module_rnaseq = FALSE,
    module_ggplot = FALSE,
    ...
))

No module loaded
Last modified 2021-10-10: Bot build site (d0c34823)