-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathui.R
98 lines (86 loc) · 3.72 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
library(shiny)
library(rhandsontable)
manuscript <- a("manuscript", href="https://www.google.com/")
shinyUI(fluidPage(
# Navigation prompt
tags$head(tags$script(HTML("
// Enable navigation prompt
window.onbeforeunload = function() {
return 'Your changes will be lost!';
};
"))),
titlePanel( div(column(width = 6, h2("Predict ICU admission for COVID-19 patients")),
column(width = 6,
# tags$a(
# href="https://www.uslcentro.toscana.it",
# tags$img(src="Logo_Servizio_Sanitario_della_Toscana.jpg",
# title="USLTC",
# align="right",
# height="80")
# ),
tags$a(
href="https://github.com/cgplab",
tags$img(src="cgplab.png",
title="Cancer Genomics Prato Lab",
align="right",
height="80")
))
),
windowTitle="covidapp"),
br(),
br(),
sidebarLayout(
sidebarPanel(
wellPanel(
h4("Usage"),
helpText("This app calculates the probability of admission to ICU",
"for COVID-19 patients",
" based on three models ",
" exploiting blood laboratory-arterial gas analyses, ",
"radiological and ",
"radiomics parameters.",
br()
),
helpText("Right-click on the table to delete/insert rows.", br(),
"Double-click on a cell to edit. ", br(), br(),
"Click on", tags$b("Calculate"),
"to run the three models. "),
helpText("For more details about the study and models see", br(),
"the", manuscript, "(preprint, under revision)" )
),
br(),
wellPanel(
h4("Predict ICU"),
helpText("Calculate risk of ICU admission based on three models: ", br(), br(),
tags$b("blood laboratory-arterial gas analysis"), ": age, P/F, LDH", br(),
tags$b("Hybrid radiological"), ": age, P/F, LDH, percentage consolidated lung (CT)", br(),
tags$b("Hybrid radiomics"), ": P/F, LDH, percentage consolidated (CT), 3 radiomic features
(LargeDependenceLowGrayLevelEmphasis, RunLengthNonUniformity, LowGrayLevelZoneEmphasis)"
), br(),
actionButton("calc_pred", "Calculate")
),
br()
# ,
# wellPanel(
# h4("Credits"),
# helpText(tags$b("Study design"), ": Maurizio Bartolucci", br(),
# tags$b("Data collection (clinical)"), ": XX, XX", br(),
# tags$b("Data collection (radiological)"), ": Margherita Betti, Luca Fedeli", br(),
# tags$b("Radiological evaluation and analyses"), ": Maurizio Bartolucci, Margherita Betti, Luca Fedeli", br(),
# tags$b("Radiomic analyses, model building and evaluation"), ": Matteo Benelli", br(),
# tags$b("App development and testing"), ": Matteo Benelli", br(),
# tags$b("Study supervision"), ": Maurizio Bartolucci, Matteo Benelli, Mario Mascalchi", br()
# ) )
#
),
mainPanel(
h4("Input data"),
br(),
rHandsontableOutput("hot"),
br(),
h4("Risk of ICU admission"),
br(),
rHandsontableOutput("model_out")
)
)
))