-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathui.R
48 lines (38 loc) · 2.25 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
mypackages <- c("shiny", "shinyhelper", "magrittr", "DECIPHER", "seqinr", "shinyFiles", "shinythemes", "dendextend")
checkpkg <- mypackages[!(mypackages %in% installed.packages()[,"Package"])]
if(length(checkpkg)) install.packages(checkpkg, dependencies = TRUE)
if (!requireNamespace("BiocManager", quietly = TRUE))
install.packages("BiocManager")
BiocManager::install("DECIPHER")
library(shiny)
library(DECIPHER)
library(seqinr)
library(dendextend)
library(shinyhelper)
library(magrittr) # allows you to use %>%
library(shinythemes)
ui <- fluidPage(theme = shinytheme("flatly"),
titlePanel(strong(h1("DACTY-ID"))),
titlePanel(h3("For the genetic identification of the Dactylopiidae")),
img(src='logo.png', height = '150px', width = '200px'),
titlePanel(h4("Created by Clarke van Steenderen")),
br(),
tabsetPanel(tabPanel("Home",
#sidebarLayout(
sidebarPanel(strong("Click to view the help file:", style = "color:darkgreen")
%>% helper(type = "markdown", content = "DactylopiusIdentifier_Manual", colour = "green", icon = "question-circle"),
br(),
# list.files("Gene_databases/") is the name of the folder in this project's file (Dactylopius Identifier R/ DactylopiusID) which contains .fas files
selectInput("selectfile","Select File", choice = c(list.files("Gene_databases/"), "Own file upload"), selected = "Own file upload" ),
fileInput("inFile", "Upload a .fas file"),
textInput("name", label = "Enter sequence name:", value = ">QUERY"),
textAreaInput("nuc_seq", label = "Enter nucleotide sequence:", placeholder = "e.g. AGCTTT", height = "250px"),
selectInput("distCorrection", "Distance correction method", choices = c("none", "Jukes-Cantor"), selected = "Jukes-Cantor"),
selectInput("treeMethod", "Agglomeration method", choices = c("complete", "single", "UPGMA", "WPGMA", "NJ", "ML"), selected = "NJ"),
actionButton("submit", label = "Submit", style="color: #fff; background-color: #337ab7; border-color: #2e6da4")
),
mainPanel() ),
tabPanel("View Tree", plotOutput("treePlot", height = "1600px"))
)
)
#)