-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathui.R
59 lines (49 loc) · 1.72 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
# This app will allow a user to explore their mapped RNA seq reads across transcripts
# or positions of interest.
library(shiny)
library(shinycssloaders)
library(colourpicker)
shinyUI(fluidPage(
### Basic app elements
titlePanel("shinySeqBrowser"),
### User-modifiable options
sidebarLayout(
sidebarPanel(
h4("File inputs"),
# Upload the bam file
fileInput("bam_file1", "Choose a BAM File",
multiple = FALSE,
accept = c(".bam")),
# indicate paired-end
checkboxInput("ispaired", label="Paired-end data", value=FALSE),
# Upload the GFF3 file
fileInput("gff_file", "Choose a GFF3 File",
multiple = FALSE,
accept = c(".gff3")),
# Add horizontal line to split from upload section
hr(),
h4("Search parameters"),
# Gene input
uiOutput("gene_search"),
# Chromosome input
uiOutput("chromosomes"),
# position input
numericInput("start", label = h5("Enter start position"), value=1),
numericInput("end", label = h5("Enter end position"), value=100000),
hr(),
downloadButton("save", "Download plot as PDF")
),
# Data visualizations here!
mainPanel(
# The main plot contains a distribution of aligned reads
withSpinner(plotOutput("read_gviz_plot")),
h4("Plot Options"),
hr(),
# Color palette choices
colourInput("bgcol", "Select background color", "white"),
colourInput("pancol", "Select panel color", "#51B9CF"),
colourInput("annotcol", "Select gene track color", "#FDC010"),
colourInput("readcol", "Select read color", "#333333")
)
)
))