-
Notifications
You must be signed in to change notification settings - Fork 0
/
ui.R
60 lines (55 loc) · 2.99 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
library(shiny)
library(shinyAce)
shinyUI(
pageWithSidebar(
headerPanel(h3("PSA Velocity - v0.1"),windowTitle="PSA Velocity"),
sidebarPanel(
h5("Paste data below:"),
#Example input data
tags$textarea(id="PasteData", rows=10, cols=50, placeholder="PatientID,PSA_Date,PSA","Patient_1,19/09/2008,0.77
Patient_1,15/01/2010,0.48
Patient_1,11/03/2011,0.7
Patient_1,23/03/2012,0.53
Patient_2,19/09/2008,0.77
Patient_2,15/01/2010,0.48
Patient_3,11/03/2011,0.7"),
p(),
actionButton('clearText_button','Clear data'),
p(),
#Choose Field separator
radioButtons("fileSepP", h5("Field Separator:"), list("Comma"=1,"Tab"=2,"Semicolon"=3))
),#pageWithSidebar
mainPanel(
tabsetPanel(type = "pills",
tabPanel("Input Data",tableOutput("PSAV")),
tabPanel("Result",
tableOutput("PSAV_result"),
downloadButton("downloadResult", "Download")),
tabPanel("Plot",
uiOutput("PatientID"),
plotOutput("SamplePlot"),
tableOutput("PSAV_result_selected")),
tabPanel("Help",
#withMathJax(),
#helpText('An irrational number \\(\\sqrt{2}\\) and a fraction $$1-\\frac{1}{2}$$'),
HTML("<p><p>Under construction...<p><p><p>"),
HTML('<p>This application was developed with XYZ journal Methods as described in this <a href="http://www.ncbi.nlm.nih.gov/pubmed">editorial</a>. <p> The application allows users to calculate PSA velocity using <a href="http://www.ncbi.nlm.nih.gov/pubmed/17197071">three methods</a> from Connolly D paper:<p>'),
helpText("1. Arithmetic equation of change in PSA over time (AE)"),
helpText("2. Linear regression (LR)"),
helpText("3. Rate of PSA change using first and last values only (FL)"),
HTML('<p>A data matrix can be pasted into the application.
<p>PSA Velocity code can be run locally via <a href="https://github.com/zx8754/PSA_Velocity">GitHub</a>.'),
h5("Software references"),
HTML('<p>R Development Core Team. <i><a href="http://www.r-project.org/">R</a>: A Language and Environment for Statistical Computing.</i> R Foundation for Statistical Computing, Vienna (2013) <br>
RStudio and Inc. <i><a href="http://www.rstudio.com/shiny/">shiny</a>: Web Application Framework for R.</i> R package version 0.5.0 (2013) <br>'),
h5("Further references"),
HTML('<p> Connolly D1, Black A, Murray LJ, Napolitano G, Gavin A, Keane PF: <a href="http://www.ncbi.nlm.nih.gov/pubmed/17197071"> Methods of calculating prostate-specific antigen velocity. </a></p>'),
h6("This application was created by the ",
a("T.Dadaev",href="https://twitter.com/zx8754"),
" and ",
a("Prof. R. Eeles", href="http://www.icr.ac.uk/our-research/researchers-and-teams/professor-rosalind-eeles"),
" labs."))
)#tabsetPanel
)#mainPanel
)#sidebarPanel
)