| 
									
										
										
										
											2021-06-24 22:38:16 +02:00
										 |  |  | library(DT) | 
					
						
							| 
									
										
										
										
											2021-10-07 12:18:47 +02:00
										 |  |  | library(plotly) | 
					
						
							| 
									
										
										
										
											2021-10-07 12:59:04 +02:00
										 |  |  | library(rclipboard) | 
					
						
							| 
									
										
										
										
											2021-06-24 22:38:16 +02:00
										 |  |  | library(shiny) | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-10-19 16:44:29 +02:00
										 |  |  | source("methods.R") | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-06-24 22:38:16 +02:00
										 |  |  | ui <- fluidPage( | 
					
						
							| 
									
										
										
										
											2021-10-16 17:02:39 +02:00
										 |  |  |     shinyjs::useShinyjs(), | 
					
						
							| 
									
										
										
										
											2021-10-07 12:59:04 +02:00
										 |  |  |     rclipboardSetup(), | 
					
						
							| 
									
										
										
										
											2021-06-24 22:38:16 +02:00
										 |  |  |     titlePanel("TPE-OLD candidates"), | 
					
						
							| 
									
										
										
										
											2021-10-15 11:46:15 +02:00
										 |  |  |     sidebarLayout( | 
					
						
							|  |  |  |         sidebarPanel( | 
					
						
							|  |  |  |             width = 3, | 
					
						
							| 
									
										
										
										
											2021-08-29 15:53:31 +02:00
										 |  |  |             h3("Filter criteria"), | 
					
						
							| 
									
										
										
										
											2021-08-29 13:25:12 +02:00
										 |  |  |             selectInput( | 
					
						
							|  |  |  |                 "species", | 
					
						
							|  |  |  |                 "Species to include", | 
					
						
							|  |  |  |                 choices = list( | 
					
						
							| 
									
										
										
										
											2021-09-30 12:54:40 +02:00
										 |  |  |                     "Replicatively aging" = "replicative", | 
					
						
							|  |  |  |                     "All qualified" = "all" | 
					
						
							| 
									
										
										
										
											2021-08-29 13:25:12 +02:00
										 |  |  |                 ) | 
					
						
							| 
									
										
										
										
											2021-10-11 11:08:50 +02:00
										 |  |  |             ), | 
					
						
							| 
									
										
										
										
											2021-10-15 11:46:15 +02:00
										 |  |  |             uiOutput("n_species_slider"), | 
					
						
							|  |  |  |             sliderInput( | 
					
						
							|  |  |  |                 "cutoff", | 
					
						
							|  |  |  |                 "Cut-off score", | 
					
						
							|  |  |  |                 post = "%", | 
					
						
							|  |  |  |                 min = 0, | 
					
						
							|  |  |  |                 max = 100, | 
					
						
							|  |  |  |                 step = 1, | 
					
						
							|  |  |  |                 value = 50 | 
					
						
							|  |  |  |             ), | 
					
						
							| 
									
										
										
										
											2021-10-19 16:44:29 +02:00
										 |  |  |             methods_ui("methods") | 
					
						
							| 
									
										
										
										
											2021-06-24 22:38:16 +02:00
										 |  |  |         ), | 
					
						
							| 
									
										
										
										
											2021-10-15 11:46:15 +02:00
										 |  |  |         mainPanel( | 
					
						
							| 
									
										
										
										
											2021-10-15 13:59:00 +02:00
										 |  |  |             tabsetPanel( | 
					
						
							|  |  |  |                 type = "pills", | 
					
						
							|  |  |  |                 header = div(style = "margin-top: 16px"), | 
					
						
							|  |  |  |                 tabPanel( | 
					
						
							|  |  |  |                     "Results", | 
					
						
							| 
									
										
										
										
											2021-10-15 15:03:40 +02:00
										 |  |  |                     uiOutput("copy"), | 
					
						
							| 
									
										
										
										
											2021-10-15 13:59:00 +02:00
										 |  |  |                     div( | 
					
						
							|  |  |  |                         style = "margin-top: 16px", | 
					
						
							|  |  |  |                         DTOutput("genes", height = "1000px") | 
					
						
							|  |  |  |                     ) | 
					
						
							|  |  |  |                 ), | 
					
						
							|  |  |  |                 tabPanel( | 
					
						
							|  |  |  |                     "Positions", | 
					
						
							|  |  |  |                     plotlyOutput( | 
					
						
							|  |  |  |                         "scatter", | 
					
						
							|  |  |  |                         width = "100%", | 
					
						
							|  |  |  |                         height = "600px" | 
					
						
							|  |  |  |                     ) | 
					
						
							|  |  |  |                 ), | 
					
						
							|  |  |  |                 tabPanel( | 
					
						
							| 
									
										
										
										
											2021-10-15 15:03:40 +02:00
										 |  |  |                     "Assessment", | 
					
						
							|  |  |  |                     htmlOutput("assessment_synopsis"), | 
					
						
							|  |  |  |                     div( | 
					
						
							|  |  |  |                         style = "margin-top: 16px", | 
					
						
							|  |  |  |                         plotlyOutput( | 
					
						
							|  |  |  |                             "rank_plot", | 
					
						
							|  |  |  |                             width = "100%", | 
					
						
							|  |  |  |                             height = "600px" | 
					
						
							|  |  |  |                         ) | 
					
						
							|  |  |  |                     ), | 
					
						
							| 
									
										
										
										
											2021-10-15 13:59:00 +02:00
										 |  |  |                 ), | 
					
						
							|  |  |  |                 tabPanel( | 
					
						
							|  |  |  |                     "Analysis", | 
					
						
							|  |  |  |                     checkboxInput( | 
					
						
							|  |  |  |                         "enable_gost", | 
					
						
							|  |  |  |                         "Perform a gene set enrichment analysis on the \ | 
					
						
							|  |  |  |                         filtered result genes." | 
					
						
							|  |  |  |                     ), | 
					
						
							|  |  |  |                     conditionalPanel( | 
					
						
							|  |  |  |                         "input.enable_gost == true", | 
					
						
							|  |  |  |                         plotlyOutput( | 
					
						
							|  |  |  |                             "gost", | 
					
						
							|  |  |  |                             width = "100%", | 
					
						
							|  |  |  |                             height = "600px" | 
					
						
							|  |  |  |                         ) | 
					
						
							|  |  |  |                     ) | 
					
						
							| 
									
										
										
										
											2021-10-07 12:42:36 +02:00
										 |  |  |                 ) | 
					
						
							| 
									
										
										
										
											2021-10-07 12:18:47 +02:00
										 |  |  |             ) | 
					
						
							| 
									
										
										
										
											2021-06-24 22:38:16 +02:00
										 |  |  |         ) | 
					
						
							|  |  |  |     ) | 
					
						
							| 
									
										
										
										
											2021-10-19 14:15:28 +02:00
										 |  |  | ) |