forked from jmzeng1314/TF_map
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathui.R
92 lines (80 loc) · 2.41 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
library(shiny)
library(shinydashboard)
library(dashboardthemes)
library(knitr)
library(rmarkdown)
library(DT)
### there are 4 pages in this website:
## Home, Statistics, Help, About
## there are 3 boxes in home page:
## which are Parameters, searching, results.
source('scripts/ui-box-homepage.R', local = TRUE)$value
page_Home <-fluidRow(
shinyjs::useShinyjs(),
tags$script(src="www/getIP.js"),
column(width = 4,box1,box2
),
column(width = 8,box3
)
)
page_statistics<- fluidRow(
box(p(style = "font-size: 30px;", "Statistics for the metadata in GEO/ENCODE database"),
# title = "Statistics for the metadata in GEO/ENCODE database",
status = "success",width=12,style="background-color: #fff",
fluidRow(
column(4,selectInput("stat_species", "Select species:",
c("Human(GRCh38)" = "human",
"Mouse(mm10)" = "mouse") )
),
column(4,selectInput("stat_IP", "Select IP:",
c("Trans-acting factors" = "TF",
"Histone marks" = "histone"
) )
),
column(4, selectInput("stat_database", "Select database:",
c("GEO" = "cistrome",
"ENCODE" = "ENCODE"
) )
)
) ## end for fluidRow
),## end for box
wellPanel(DT::dataTableOutput('stat_table'))
#plotOutput('stat_figure',height = 1000)
)
page_about <- fluidRow(
column(8, offset = 2,
includeMarkdown("about.Rmarkdown")
)
)
page_help <- fluidRow(
column(8, offset = 2,
includeMarkdown("help.Rmarkdown")
)
)
body <- dashboardBody(
shinyDashboardThemes(
theme = "poor_mans_flatly"
#blue_gradient,boe_website,grey_light,grey_dark,onenote,poor_mans_flatly,purple_gradient
),
fluidRow(
tabBox(
# The id lets us use input$tabset1 on the server to find the current tab
id = "tabset1", height = "12000px",width = 12,
tabPanel("Home", icon = icon("Home"),page_Home
),
tabPanel("Statistics" ,icon = icon("table"), page_statistics
),
tabPanel("Help",icon = icon('book'),page_help),
tabPanel("About", icon = icon('info-circle'),page_about
)
)
)
)
dashboardPage(
dashboardHeader(
title = "TFmapper"
),
dashboardSidebar(
disable = TRUE
),body
)