-
Notifications
You must be signed in to change notification settings - Fork 0
/
ui.R
executable file
·116 lines (111 loc) · 3.2 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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
library(shiny)
library(shinythemes)
library(shinyjs)
shinyUI(
fluidPage(
tags$head(
HTML(
"
<script>
var socket_timeout_interval
var n = 0
$(document).on('shiny:connected', function(event) {
socket_timeout_interval = setInterval(function(){
Shiny.onInputChange('alive_count', n++)
}, 15000)
});
$(document).on('shiny:disconnected', function(event) {
clearInterval(socket_timeout_interval)
});
</script>
"
),
tags$style(
"
#keep_alive {
visibility: hidden;
}
"
)
),
theme = shinytheme("cerulean"),
navbarPage(
title = div(
img(
src = "logo.png",
style = "margin-top: -14px; padding-right:5px;padding-bottom:5px",
height = 55
)
),
windowTitle = "I.C.Y",
tabPanel(
"I.C.Y",
sidebarLayout(
sidebarPanel(
fileInput(
"sbdata",
"Genetic information from studbook",
placeholder = "CSV files only",
accept = c("text/csv")
),
useShinyjs(),
checkboxInput(inputId = "tick", label = "Filter Individuals?"),
selectizeInput('location', "Select Locations of individuals", choices = NULL, multiple = TRUE),
numericInput('age', "Age limit", value = 500,
min = 0,
max = 500,
step = 0.5
),
br(),
fileInput(
"kindata",
"Kinship matrix from studbook",
placeholder = "CSV files only",
accept = c("text/csv")
),
fileInput(
"founder",
"Founder information from studbook",
placeholder = "CSV files only",
accept = c("text/csv")
),
numericInput("numM", "Number of males needed", 0, min = 0),
numericInput("numF", "Number of females needed", 0, min =0),
numericInput(
"thold",
"Relatedness threshold",
0,
min = 0,
max = 1,
step = 0.0625
),
useShinyjs(),
checkboxInput(inputId = "button", label = "Previous releases?"),
selectizeInput('id', "Select studbook IDs of prior releases", choices = NULL, multiple = TRUE),
br(),
tableOutput("relatedness_example"),
br(),
br(),
downloadButton("report", "Generate report"),
textOutput("keep_alive")
),
mainPanel(
tabsetPanel(
tabPanel(
"Table",style = "font-size: 18pt",
tableOutput("chosentable")
),
tabPanel("Plots", plotOutput("chosenplot"))
)
)
)
),
navbarMenu(
"How to...",
tabPanel("How to use ICY", includeMarkdown("Documents/HowtoUse.md")),
tabPanel("How to generate the data", includeMarkdown("Documents/HowtoGenerate.md"))
),
tabPanel("About", includeMarkdown("Documents/About.md"))
)
)
)