forked from BI-STEM-Away/sMAP
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ui.R
127 lines (121 loc) · 4.59 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
117
118
119
120
121
122
123
124
125
126
127
# Dashboard UI
source('userInterface/introduction_UI.R')
source('userInterface/dataImport_UI.R')
source('userInterface/qualityControl_UI.R')
source('userInterface/sampleGrouping_UI.R')
source('userInterface/degAnalysis_UI.R')
source('userInterface/functionalAnalysis_UI.R')
source('userInterface/faq_UI.R')
source('userInterface/contact_UI.R')
options(shiny.maxRequestSize = 1000*1024^2)
sidebar <- dashboardSidebar(
skin = "light",
sidebarMenu(id = "tabs",
menuItem("Introduction", tabName = "introduction",
icon = icon("arrow-right")),
# bs4SidebarHeader("Data Importation"),
menuItem("Upload Data", tabName = "dataImport",
icon = icon("upload")),
# bs4SidebarHeader("Quality Control"),
menuItem(tags$div("QC & Preprocessing",style="display: inline-block;vertical-align:middle"), tabName = "qualityControl",
icon = icon("vials"),
menuSubItem(text=tags$div("Visualization",tags$br(), "Before Preprocessing",style= "display: inline-block;vertical-align:middle"), tabName = "qC"),
menuSubItem("Normalization", tabName = "normalization"),
menuSubItem(text=tags$div("Batch Correction &",tags$br(),"Visualization",style= "display: inline-block;vertical-align:middle"), tabName = "batchCorrection"),
menuSubItem("Potential Outliers", tabName = "potentialOutliers")
),
# bs4SidebarHeader("Grouping of Samples"),
menuItem("Sample Grouping", tabName = "sampleGrouping",
icon = icon("object-group")),
# bs4SidebarHeader("Statistical Analysis"),
menuItem("Statistical Analysis", tabName = "degAnalysis",
icon = icon("dna"),
menuSubItem("Top DEGs", tabName="topDEGs"),
menuSubItem("Volcano Plot", tabName="volcanoPlot")
),
# bs4SidebarHeader("Functional Analysis"),
menuItem("Functional Analysis", tabName = "functionalAnalysis",
icon = icon("project-diagram"),
menuSubItem("KEGG Pathway Enrichment",
tabName="functionalEnrichmentAnalysis"),
menuSubItem("Gene Ontology Enrichment", tabName="geneConceptNetwork"),
menuSubItem("Gene Set Enrichment", tabName="gsea")
),
bs4SidebarHeader("Help"),
# menuItem("Docs", tabName = "docs", icon = icon("book")),
menuItem("FAQs", icon = icon("question-circle"), tabName = "faq"),
menuItem("Contact", tabName = "contact", icon = icon("users"))
)
)
body <- dashboardBody(
tabItems(
introductionTab,
dataImportTab,
# qualityControlTab,
qCTab,
normalizationTab,
batchCorrectionTab,
potentialOutliersTab,
sampleGroupingTab,
# degAnalysisTab,
topDEGsTab,
volcanoPlotTab,
# functionalAnalysisTab,
functionalEnrichmentAnalysisTab,
geneConceptNetworkTab,
gseaTab,
# docsTab,
faqTab,
contactTab
),
tags$head(
tags$link(rel = "stylesheet", type = "text/css", href = "css/style.css"),
tags$script(src = "js/tform.js")
)
)
# Valid statuses are: primary, secondary, info, success, warning, danger, gray-dark, gray, white, indigo, lightblue, navy, purple, fuchsia, pink, maroon, orange, lime, teal, olive.
title <- dashboardBrand(
title = "sMAP",
color = "primary",
opacity = 1,
href = "https://stemaway.com/",
)
dashboardPage(
freshTheme = create_theme(
bs4dash_vars(
navbar_light_color = "#040404"
),
bs4dash_layout(
main_bg = "#fffffc"
),
bs4dash_sidebar_light(
bg = "#FFF",
color = "#040404",
hover_color = "#0C4767",
),
bs4dash_status(
primary = "#57A773", danger = "#BF616A", success = '#57A773', warning = '#F7B538', info = "#57a773"
),
bs4dash_color(
blue = '#4281A4',
lime = '#ffffff'
)
),
dashboardHeader(
fixed = TRUE,
border = TRUE,
status = 'lightgray',
title = title,
div(style = "margin-left:auto;margin-right:auto; text-align:center; color:black",HTML('<strong>sMAP: Standard Microarray Analysis Pipeline</strong>'))
),
sidebar,
body,
footer = dashboardFooter(
left = a(
href = "https://github.com/BI-STEM-Away/",
target = "_blank", "@BI-STEM-Away"
),
right = "sMAP: 2021"
),
fullscreen = TRUE, dark = NULL
)