-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathui.R
84 lines (75 loc) · 4.32 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
# This is the user-interface definition of a Shiny web application.
# You can find out more about building applications with Shiny here:
#
# http://shiny.rstudio.com
#
library(shiny)
# library(shinyjs)
library(DT)
#.num.cores <- detectCores(all.tests = FALSE, logical = TRUE)
# sigmat <- LM22
navbarPage( tags$img(src = "Logo_B_1.pdf.png", height = "30" ),#"MIXTURE",
tabPanel("Run",
fluidRow(
column(4, wellPanel( h4("Files"),#helpText("Signature Matrix is LM22 from Newman et al."),
# fileInput('sigMat', strong('Choose Signature Matrix (optional):'), multiple = FALSE,
# accept = c('Excel', ".xlsx"), placeholder = "LM22 (Newman et al)"),
radioButtons("signature","Choose Molecular Signature",c("LM22","TIL10")),
fileInput('GeneExpr', strong('Choose gene expression file (Only xlsx):'), multiple = FALSE,
accept = c('Excel', "xlsx") ),
tags$hr(),
fileInput("mixResults", strong('Load MIXTURE result file (EXCEL)'), multiple = FALSE,
accept = c('Excel', "xlsx"))
)),
column(4, wellPanel( h4("Options"),
sliderInput("cores", "# CPUs", min = 1, max = .num.cores, value = .num.cores-1, step = 1 )
),
wellPanel( h4("Save MIXTURE results (Excel)"),
downloadButton("downloadData", "Download")
)
),
column(4, wellPanel( h4("Permutation Analysis"),
# sliderInput("cores", "# CPUs", min = 1, max = .num.cores, value = .num.cores-1, step = 1 ),
# Input: Specify the number of observations to view ----
numericInput("iter", "Number of permutation samples:", value = 0,min = 0, step = 100),
#
actionButton("goButton", "RUN MIXTURE")
))
),
fluidRow(
column(12, h4("Summary"),wellPanel(
verbatimTextOutput("Summary")
))
)
),
navbarMenu("Tables",##tabPanel Tables
tabPanel("Proportions",
DT::dataTableOutput("table.proportions")),
tabPanel("Absolute",DT::dataTableOutput("table.absolute")),
tabPanel("Metrics",
fluidRow(
column(12, wellPanel(DT::dataTableOutput("table.metrics")))#,
#column(2)#,
#column(4, wellPanel(DT::dataTableOutput("used.genes")))
)
),
tabPanel("P values",
fluidRow(
column(12, wellPanel(DT::dataTableOutput("p.values")))#,
#column(2)#,
#column(4, wellPanel(DT::dataTableOutput("used.genes")))
)
)
),##fin menu Tables
navbarMenu("Plots",##tabPanel Plots
tabPanel("Bars", plotOutput("bars")),
tabPanel("Heatmap", plotOutput("heatmap")),
tabPanel("Immuno Score By Subject", plotOutput("immscoresuj")),
tabPanel("Immuno Score Poulation Based", plotOutput("immscorepob"))
),##Fin Menu Plots
tabPanel("About",
fluidRow(
column(6, offset = 3,
verbatimTextOutput("about")
)))
)