################################################################################
# Title : PIPprofileR - UI
# Organism : All
# Omics area : Omics
# Users : Thomas Denecker
# Email : thomas.denecker@gmail.com
# Date : Oct, 2020
# GitHub :
# DockerHub :
################################################################################
################################################################################
### Library ###
################################################################################
#===============================================================================
# Application
#===============================================================================
suppressMessages(suppressWarnings(library(shiny)))
suppressMessages(suppressWarnings(library(shinyjs)))
suppressMessages(suppressWarnings(library(shinyalert)))
suppressMessages(suppressWarnings(library(shinydashboard)))
suppressMessages(suppressWarnings(library(shinydashboardPlus)))
suppressMessages(suppressWarnings(library(shinyWidgets)))
suppressMessages(suppressWarnings(library(shinycssloaders)))
suppressMessages(suppressWarnings(library(shinyhelper)))
suppressMessages(suppressWarnings(library(colourpicker)))
suppressMessages(suppressWarnings(library(shinycustomloader)))
#===============================================================================
# Read FASTA files
#===============================================================================
suppressMessages(suppressWarnings(library(Biostrings)))
#===============================================================================
# Read annotation files
#===============================================================================
suppressMessages(suppressWarnings(library(ape)))
#===============================================================================
# Visualization
#===============================================================================
suppressMessages(suppressWarnings(library(DT)))
suppressMessages(suppressWarnings(library(DECIPHER)))
suppressMessages(suppressWarnings(library(ggplot2)))
#===============================================================================
# Data treatment
#===============================================================================
suppressMessages(suppressWarnings(library(dplyr)))
suppressMessages(suppressWarnings(library(reshape2)))
suppressMessages(suppressWarnings(library(knitr)))
suppressMessages(suppressWarnings(library(tibble)))
#===============================================================================
# Write report
#===============================================================================
suppressMessages(suppressWarnings(library(rlist)))
suppressMessages(suppressWarnings(library(svglite)))
suppressMessages(suppressWarnings(library(rmarkdown)))
################################################################################
### FUNCTIONS ###
################################################################################
source("./R_scripts/align_n_to_one.R")
################################################################################
### PANELS ###
################################################################################
source("panels/ui/home_ui.R", local = TRUE)
source("panels/ui/sequenceFilters_ui.R", local = TRUE)
source("panels/ui/graphic_ui.R", local = TRUE)
source("panels/ui/about_ui.R", local = TRUE)
source("panels/ui/resume_ui.R", local = TRUE)
source("panels/ui/annotationTabItem_ui.R", local = TRUE)
source("panels/ui/alignmentTabItem_ui.R", local = TRUE)
source("panels/ui/helpPage_ui.R", local = TRUE)
################################################################################
### MAIN ###
################################################################################
shinyUI(
dashboardPagePlus(
title = "PIPprofileR",
header = dashboardHeaderPlus(title = "PIPprofileR",
dropdownMenu(icon = icon("question-circle"),badgeStatus =NULL,headerText = "Global information",
messageItem(
from = "Find our project?",
message = "Visit our Github!",
icon = icon("github", class = "fa"),
href = "https://github.com/IFB-ElixirFr/PIPprofileR/"
),
messageItem(
from = "New User?",
message = "Read the docs!",
icon = icon("book"),
href = "https://github.com/IFB-ElixirFr/PIPprofileR/wiki"
),
messageItem(
from = "A bug with app?",
message = "Declare an issue!",
icon = icon("exclamation-triangle"),
href = "hhttps://github.com/IFB-ElixirFr/PIPprofileR/issues"
))
),
sidebar = dashboardSidebar( uiOutput('sidebar') ),
body = dashboardBody(id= "dashboardBody",
tags$head(tags$link(href = "img/logo.png",
rel ="icon", type="image/png")),
tags$head(HTML('<link rel="stylesheet" type="text/css"
href="css/style.css" />')), tags$head(tags$script('
var dimensionGgiraph = [0];
$(document).on("shiny:connected", function(e) {
var elem = document.getElementById("dashboardBody");
if(elem) {
var rect = elem.getBoundingClientRect();
dimensionGgiraph[0] = rect.width;
Shiny.onInputChange("dimensionGgiraph", dimensionGgiraph);
}
});
$(window).resize(function(e) {
var elem = document.getElementById("dashboardBody");
if(elem) {
var rect = elem.getBoundingClientRect();
dimensionGgiraph[0] = rect.width;
Shiny.onInputChange("dimensionGgiraph", dimensionGgiraph);
}
});
')),
useShinyjs(),
useShinyalert(),
tabItems(
tabItem("home", home),
tabItem("sequenceFilters", sequenceFilters),
tabItem("resume",resume),
tabItem("graphic",graphic),
tabItem("alignmentTabItem",alignmentTabItem),
tabItem("annotationTabItem", annotationTabItem),
tabItem("about", about),
tabItem("helpPage", helpPage)
)
)
)
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.