-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathui.R
80 lines (54 loc) · 2.3 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
#!/bin/R
#Tychele N. Turner
#Laboratory of Aravinda Chakravarti, Ph.D.
#Protein Plotting Script with Conservation Shiny UI Script
#Programming Language: R
#Updated 06/14/2013
#Description: This script is the ui.R script required for the Shiny application of Plot Protein With Conservation: Visualization of Mutations
library(shiny)
# Define UI
shinyUI(pageWithSidebar(
# Application title
headerPanel("Plot Protein With Conservation: Visualization of Mutations"),
#Sidebar panel
sidebarPanel(
fileInput(inputId="mutationFile", label="Mutation File (required):"),
fileInput(inputId="proteinArchitectureFile", label="Protein Architecture File (required):"),
fileInput(inputId="postTranslationalModificationFile", label="Post Translational Modification File (required):"),
fileInput(inputId="alignmentFile", label="Alignment File (required):"),
textInput("referenceSequencePositionInFile", "Reference Sequence Position In File (required):", "Data"),
textInput("nameOfQuery", "Name of Mutation File Data:", "Query"),
textInput("tickSize", "Tick Size:", 10),
checkboxInput(inputId = "labels",
label = strong("Show Labels?"),
value = FALSE),
checkboxInput(inputId = "showConservationScore",
label = strong("Show Conservation Score?"),
value = FALSE),
checkboxInput(inputId = "showReferenceSequence",
label = strong("Show Reference Sequence?"),
value = FALSE),
checkboxInput(inputId = "showGridsAtTicks",
label = strong("Show Gridlines at Ticks?"),
value = FALSE),
checkboxInput(inputId = "zoom",
label = strong("Zoom In?"),
value = FALSE),
textInput("zoomStart", "Zoom Start:", "Starting Position"),
textInput("zoomEnd", "Zoom End:", "Ending Position"),
checkboxInput(inputId = "second",
label = strong("Second Mutation File For Plot?"),
value = FALSE),
fileInput(inputId="secondmutationFile", label="Second Mutation File (optional):"),
textInput("nameOfQuery2", "Name of Second Mutation File Data:", "Second Query")
),
# Show a tabset with plot
mainPanel(
h5("Tychele N. Turner, [email protected]"),
h5("Laboratory of Aravinda Chakravarti, Ph.D."),
tabsetPanel(
tabPanel("Plot", plotOutput("plot")),
tabPanel("Table", tableOutput("table"))
)
)
))