-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathui.R
60 lines (42 loc) · 1.58 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
#!/bin/R
#Tychele N. Turner
#Laboratory of Aravinda Chakravarti, Ph.D.
#Johns Hopkins University School of Medicine
#Protein Plotting Script for Shiny
#Programming Language: R
#Updated 06/15/2013
#Description: This script is the ui.R script for the Plot Protein Shiny Application
library(shiny)
# Define UI
shinyUI(pageWithSidebar(
# Application title
headerPanel("Plot Protein: Visualization of Mutations"),
# Sidebar with controls to select the random distribution type
# and number of observations to generate. Note the use of the br()
# element to introduce extra vertical spacing
sidebarPanel(
fileInput(inputId="mutationFile", label="Mutation File:"),
fileInput(inputId="proteinArchitectureFile", label="Protein Architecture File:"),
fileInput(inputId="postTranslationalModificationFile", label="Post Translational Modification File:"),
textInput("proteinLength", "Length of Protein:", "Data"),
textInput("nameOfQuery", "Name of Query:", "Data"),
textInput("tickSize", "Tick Size:", 10),
checkboxInput(inputId = "labels",
label = strong("Show Labels"),
value = FALSE),
checkboxInput(inputId = "zoom",
label = strong("Zoom In?"),
value = FALSE),
textInput("zoomStart", "Zoom Start:", "Data"),
textInput("zoomEnd", "Zoom End:", "Data")
),
# Show a tabset that includes a plot and table
mainPanel(
h5("Tychele N. Turner, [email protected]"),
h5("Laboratory of Aravinda Chakravarti, Ph.D."),
tabsetPanel(
tabPanel("Plot", plotOutput("plot")),
tabPanel("Table", tableOutput("table"))
)
)
))