-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathui.R
61 lines (56 loc) · 2.4 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
#
# This is the user-interface definition of a Shiny web application. You can
# run the application by clicking 'Run App' above.
#
# Find out more about building applications with Shiny here:
#
# http://shiny.rstudio.com/
#
library(shiny)
# Define UI for application that make plots for single cell data
shinyUI(fluidPage(
verticalLayout(
# Application title
titlePanel("Single Cell Data Viewer"),
tabsetPanel(id="tab", type="tabs",
tabPanel(title="Pie", plotOutput("pieCell")),
tabPanel(title="tSNE", fluidRow(column(6,plotOutput("tsneExp", width="95%", height="400px")),
column(6,plotOutput("tsneRef", width="100%", height="400px")))),
tabPanel(title="UMAP", fluidRow(column(6,plotOutput("umapExp", width="95%", height="400px")),
column(6,plotOutput("umapRef", width="100%", height="400px")))),
tabPanel(title="Bar", plotOutput("barExp")),
tabPanel(title="Violin", plotOutput("violinExp")),
tabPanel(title="Density", plotOutput("densityExp")),
tabPanel(title="BarLine", plotOutput("barLineExp")),
tabPanel(title="About",
h4("Thank you for using Single Cell Data Viewer!"),
HTML('Please address questions and comments to <a href="mailto:taz2008@med.cornell.edu" >Tuo Zhang</a>.'))
)
),
hr(),
# Bottom bar with file uploader and parameter selectors
fluidRow(
column(4,
wellPanel(fileInput(inputId="expFile",
label="upload expression matrix:",
multiple=F),
fileInput(inputId="geneFile",
label="upload gene list:",
multiple=F),
fileInput(inputId="cellFile",
label="upload cell list:",
multiple=F),
fileInput(inputId="clustFile",
label="upload annotations:", multiple=F)
)
),
column(4,
conditionalPanel(condition="output.fileUploaded", uiOutput("myMenu"))
),
column(4,
##h3("Test")
uiOutput("myDescription")
)
)
)
)