-
Notifications
You must be signed in to change notification settings - Fork 2
/
ui.R
98 lines (66 loc) · 2.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
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
92
93
94
95
96
97
98
#####################
#
# DEVELOPPEMENT D'UNE APPLI SHINY POUR LA VISUALISATION DES QTLS MOSAIQUES ET FUSA
#
####################
# Library
library(shiny)
library(plotly)
# Catch the existing chromosomes in the genetic map:
# Define UI for application that draws every chromosomes with diversity indexes
shinyUI(fluidPage(
# Application title
titlePanel(paste("\t\t\t\t\t\t","QTL Analysis for Mosaique and Fusariose","\n")),
# ------------------------------ SIDEBAR PANNEL FOR OPTIONS -----------------------------------
sidebarLayout(
sidebarPanel(
# INTRO
helpText(" 3 pages are provided : Page 1 for a first observation on every chromosomes. Page2 for a deep observation of ONE chromosome. Page 3 to study one marker in particular") ,
br(""),
# CHOIX DU FICHIER DE PHENOTYPAGE
textInput("Experiment",label = "Name of the working directory: " , value="DATA_DS_FUSA"),
submitButton("Submit"),
selectInput("Distance",label = "Physical or genetic positions for markers ?", choices = c("cM","physical")),
# CHOIX DU chromosome d'étude
uiOutput("choose_chromo"),
# CHOIX DU SEUIL
sliderInput("LOD_seuil", label = h3("LOD threshold printed on plots ?"), min = 2, max = 7, value = 4,step = 0.1),
# CHOIX D UN MARQUEUR
textInput("selected_marker", "marker to study ?" , value="Traes_7BS_62A8A6F7E@944"),
# CHOIX DES CARACTERES
uiOutput("choose_carac")
),
# ------------------------------ PANEAU PRINCIPAL avec 4 onglets -----------------------------------
mainPanel(
tabsetPanel(
# --- Onglet 1 avec tous les chromosomes
tabPanel("All chromo",
# Graphique avec tous les chromosomes:
br(""),
plotOutput("all_chromo" , height = "1800px"),
# ajout du tableau de vérification
br(""),
verbatimTextOutput("verif")
),
# --- Onglet 2 : zoom sur un chromosome
tabPanel("zoom on chromo",
plotlyOutput("chromo_zoom" , height = "600px")
),
# --- Onglet 3 : Analyse d un marqueur
tabPanel("Analyse d'un marqueur",
plotlyOutput("PCA1" , height = "600px"),
plotOutput("PCA2" , height = "600px"),
verbatimTextOutput("my_cor"),
plotOutput("my_boxplot", height = "600px"),
plotOutput("my_residuals" , height = "600px")
),
# --- Onglet 4 : Analyse de l'expression
tabPanel("Analyse de l'expression",
plotlyOutput("my_expression"),
br(""),
verbatimTextOutput("gene_exprime")
)
)
)
)
))