-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathui.R
66 lines (57 loc) · 2.51 KB
/
ui.R
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
options(warn=-1)
if (!require("shiny"))
install.packages("shiny")
if (!require("shinyFiles"))
install.packages('shinyFiles')
if (!require("xtable"))
install.packages("xtable")
if (!requireNamespace("BiocManager", quietly = TRUE))
install.packages("BiocManager")
if (!require("openCyto"))
BiocManager::install("openCyto")
library(shiny)
library(shinyFiles)
library(openCyto)
library(xtable)
print(sessionInfo())
ui <- fluidPage(
br(),
tags$head(
tags$style(".title {margin: auto; width: 800px; font-size-adjust: 1.3}")
),
tags$div(class="title", titlePanel("Shiny OpenCyto")),
br(),
headerPanel(
list(HTML('<img src="Logo_cptp.png"/>'), HTML('<a href="https://www.cptp.inserm.fr/en/technical-platforms/genomic-and-transcriptomic/">Genomic and transcriptomic platform</a>'), HTML('<img src="Logo_inserm.png"/>')),
windowTitle="My Title"
),
br(),
sidebarLayout(
sidebarPanel(
h3("Please choose your input directory:"),
shinyDirButton("dir", "Choose input directory", "Select input directory"),
h3("Please upload your *.fcs files:"),
fileInput(inputId = "Files", label = "Select Samples", multiple = TRUE, accept = ".fcs"),
h3("Please upload your *.wsp files:"),
fileInput(inputId = "workspace", label = "FlowJO workspace", multiple = TRUE, accept = ".wsp"),
h3("Please choose your output options:"),
fileInput(inputId = "gatingstrategy", label = "Gating strategy", multiple = FALSE, accept = c("text/csv", "text/comma-separated-values, text/plain", ".csv"))
),
mainPanel(
h4("The OpenCyto framework enables easy, automated, data-driven gating of high-dimensional (e.g., many samples or many dimensions) FCM data sets, eliminating the time-consuming task of manual gating."),
HTML('<a href="https://journals.plos.org/ploscompbiol/article?id=10.1371/journal.pcbi.1003806">OpenCyto publication</a>'), citation("openCyto"), br(),
titlePanel("The results will be print here:"),br(),
#textOutput("inputFiles"),
h4("Remember your input FCS files were:"),
verbatimTextOutput("inputFiles"), br(),
h4("Remember your input workspace was:"),
verbatimTextOutput("inputWorkspace"), br(),
h4("Remember your input gating strategy was:"),
verbatimTextOutput("inputGatingStrategy"), br(),
h4("Remember your output directory was:"),
verbatimTextOutput("dir2"), br(),
h4("If the next line is in red ... it's your problem... not mine, YOUR'S... Good luck!"),
verbatimTextOutput("Samples")
)
)
)