Description Usage Arguments Value Examples
View source: R/Dim_reduction_module.R
Perform dimensionality reduction using t-SNE or UMAP
Dim_reduction module server function
1 2 3 | Dim_reductionUI(id)
Dim_reduction(input, output, session, rval)
|
id |
shiny id |
input |
shiny input |
output |
shiny output |
session |
shiny session |
rval |
A reactive values object |
The updated reactiveValues object rval
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 36 37 38 39 | ## Not run:
library(shiny)
library(shinydashboard)
library(flowWorkspace)
library(flowCore)
if (interactive()){
ui <- dashboardPage(
dashboardHeader(title = "Dim_reduction"),
sidebar = dashboardSidebar(disable = TRUE),
body = dashboardBody(
Dim_reductionUI("module")
)
)
server <- function(input, output, session) {
rval <- reactiveValues()
observe({
utils::data("GvHD", package = "flowCore")
gs <- GatingSet(GvHD)
transformation <- lapply(colnames(GvHD), function(x){logicle_trans()} )
names(transformation) <- colnames(GvHD)
print(transformation)
gs@transformation <- transformation
rval$gating_set <- gs
})
rval <- callModule(Dim_reduction, "module", rval = rval)
}
shinyApp(ui, server)
}
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.