This repository was archived by the owner on Apr 21, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathui.R
More file actions
48 lines (45 loc) · 1.34 KB
/
ui.R
File metadata and controls
48 lines (45 loc) · 1.34 KB
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
library(shiny)
library(dygraphs)
db <<- NULL
tryCatch({
library(scidb)
db <<- scidbconnect(username = "root", password = "Paradigm4", port = 8083, protocol = "https")
}, error = function(e){
print(e)
})
try(
{
library(rredis)
redisConnect()
}
)
source('functions.R')
# Define UI for application that draws a histogram
shinyUI(fluidPage(
shinyjs::useShinyjs(),
# Application title
titlePanel("SciDB array dashboard"),
# Sidebar with a slider input for the number of bins
sidebarLayout(
# Show a plot of the generated distribution
sidebarPanel(
selectInput("nmsp_list", "Choose a namespace:",
choices = nmspList(),
selected = 'public'),
selectInput("array1", "Choose a SciDB array:",
choices = arrayList()),
checkboxInput("chooseSecondArray", "Compare with another array", FALSE),
selectInput("array2", "Compare with another SciDB array:",
choices = NULL),
helpText("SciDB array residency"),
helpText("Plot shows counts per instance, or scaled count (if minimum is non-zero)"),
h4("Options"),
checkboxInput("scaleCounts", "scale counts when possible", FALSE),
checkboxInput("useCache", "use cache", FALSE)
),
mainPanel(
dygraphOutput("dygraph"),
dygraphOutput("dygraph2")
)
)
))