geneSetSelectModule: A module that creates a dynamic selectizeInput for a...

Description Usage Arguments Value Module Return

Description

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".

Usage

 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 = "_::_")

Arguments

input, output, session

the shiny-required bits for the module

mgc

A MultiGSEAResultContainer object

server

logical to indicate whether options should be loaded on the server side (default: TRUE)

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 selectizeInput.

choices

the output of gs.select.choices(MultiGSEAResult)

ns

the namespace function for this module

mg

MultiGSEAResult to build options for

Value

a properly wired selectizeInput

data.table to populate choices of selectizeInput

Module Return

Returns information about the geneSetSelect object


lianos/multiGSEA.shiny documentation built on Sept. 15, 2020, 10:45 p.m.