SubsampleUI: Subsample a GatingSet

Description Usage Arguments Value Examples

View source: R/Subsample_module.R

Description

Subsample a GatingSet

Subsample module server function

Usage

1
2
3
SubsampleUI(id)

Subsample(input, output, session, rval)

Arguments

id

shiny id

input

shiny input

output

shiny output

session

shiny session

rval

reactivevalues object with the following elements :

gating_set

: a GatingSet object

Value

The input reactivevalues object 'rval' with updated elements :

gating_set_list

list of GatingSet objects loaded

gating_set

selected GatingSet

gating_set_selected

Name of the selected GatingSet

Examples

 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
32
33
34
35
## Not run: 
library(shiny)
library(shinydashboard)
library(flowWorkspace)
library(flowCore)

if (interactive()){
  
  ui <- dashboardPage(
    dashboardHeader(title = "Subsample"),
    sidebar = dashboardSidebar(disable = TRUE),
    body = dashboardBody(
      fluidRow(
        column(12, box(width = NULL, SubsampleUI("module")))
      )
    )
  )
  
  server <- function(input, output, session) {
    
    rval <- reactiveValues()
    
    observe({
      utils::data("GvHD", package = "flowCore")
      rval$gating_set <- GatingSet(GvHD)
    })
    
    rval <- callModule(Subsample, "module", rval = rval)
    
  }
  
  shinyApp(ui, server)
  
}
## End(Not run)

VoisinneG/flowR documentation built on June 1, 2021, 6:42 p.m.