Description Usage Arguments Value Module Return
This code was inspired from the dynamicSelectShinyModule.R gist.
Note that when returning a data.frame for the choices of a selectizeInput, we need a column called "value" and a column called "label".
value the value that is sent back when an item is selected;
label the text that appears in the selection after its triggered
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | geneSetSelectUI(id, label = "Select Gene Set")
geneSetSelect(
input,
output,
session,
mgc,
server = TRUE,
maxOptions = Inf,
sep = "_::_"
)
updateGeneSetSelect(
session,
id,
label = NULL,
choices = NULL,
selected = NULL,
options = list(),
server = FALSE
)
gs.render.select.ui(
ns,
choices,
server = TRUE,
maxOptions = 1000,
sep = "_::_"
)
gs.select.choices(mg, sep = "_::_")
|
input, output, session |
the shiny-required bits for the module |
mgc |
A |
server |
|
maxOptions |
The maximum number of options to load into the dropdown |
sep |
the separater to put between the collection and name bits of a
geneset. These are the values used in the gene set |
choices |
the output of gs.select.choices(MultiGSEAResult) |
ns |
the namespace function for this module |
mg |
|
a properly wired selectizeInput
data.table
to populate choices
of
selectizeInput
Returns information about the geneSetSelect object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.