| 
									
										
										
										
											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) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | ui <- fluidPage( | 
					
						
							| 
									
										
										
										
											2021-10-07 12:59:04 +02:00
										 |  |  |     rclipboardSetup(), | 
					
						
							| 
									
										
										
										
											2021-06-24 22:38:16 +02:00
										 |  |  |     titlePanel("TPE-OLD candidates"), | 
					
						
							| 
									
										
										
										
											2021-08-29 15:53:31 +02:00
										 |  |  |     column( | 
					
						
							|  |  |  |         width = 3, | 
					
						
							|  |  |  |         wellPanel( | 
					
						
							|  |  |  |             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-09-18 23:33:37 +02:00
										 |  |  |             ) | 
					
						
							|  |  |  |         ), | 
					
						
							|  |  |  |         wellPanel( | 
					
						
							|  |  |  |             h3("Ranking"), | 
					
						
							|  |  |  |             sliderInput( | 
					
						
							| 
									
										
										
										
											2021-09-30 12:54:40 +02:00
										 |  |  |                 "clusteriness", | 
					
						
							|  |  |  |                 "Clustering of genes", | 
					
						
							| 
									
										
										
										
											2021-09-18 23:33:37 +02:00
										 |  |  |                 post = "%", | 
					
						
							|  |  |  |                 min = 0, | 
					
						
							|  |  |  |                 max = 100, | 
					
						
							|  |  |  |                 step = 1, | 
					
						
							| 
									
										
										
										
											2021-10-07 11:31:45 +02:00
										 |  |  |                 value = 58 | 
					
						
							| 
									
										
										
										
											2021-09-18 23:33:37 +02:00
										 |  |  |             ), | 
					
						
							|  |  |  |             sliderInput( | 
					
						
							|  |  |  |                 "correlation", | 
					
						
							|  |  |  |                 "Correlation with known genes", | 
					
						
							|  |  |  |                 post = "%", | 
					
						
							|  |  |  |                 min = 0, | 
					
						
							|  |  |  |                 max = 100, | 
					
						
							|  |  |  |                 step = 1, | 
					
						
							| 
									
										
										
										
											2021-10-07 11:31:45 +02:00
										 |  |  |                 value = 36 | 
					
						
							| 
									
										
										
										
											2021-09-30 13:25:39 +02:00
										 |  |  |             ), | 
					
						
							| 
									
										
										
										
											2021-10-05 18:30:12 +02:00
										 |  |  |             sliderInput( | 
					
						
							|  |  |  |                 "neural", | 
					
						
							|  |  |  |                 "Assessment by neural network", | 
					
						
							|  |  |  |                 post = "%", | 
					
						
							|  |  |  |                 min = 0, | 
					
						
							|  |  |  |                 max = 100, | 
					
						
							|  |  |  |                 step = 1, | 
					
						
							| 
									
										
										
										
											2021-10-07 11:31:45 +02:00
										 |  |  |                 value = 6 | 
					
						
							| 
									
										
										
										
											2021-10-05 18:30:12 +02:00
										 |  |  |             ), | 
					
						
							| 
									
										
										
										
											2021-09-30 13:25:39 +02:00
										 |  |  |             sliderInput( | 
					
						
							|  |  |  |                 "cutoff", | 
					
						
							|  |  |  |                 "Cut-off score", | 
					
						
							|  |  |  |                 post = "%", | 
					
						
							|  |  |  |                 min = 0, | 
					
						
							|  |  |  |                 max = 100, | 
					
						
							|  |  |  |                 step = 1, | 
					
						
							|  |  |  |                 value = 50 | 
					
						
							| 
									
										
										
										
											2021-08-29 15:53:31 +02:00
										 |  |  |             ) | 
					
						
							| 
									
										
										
										
											2021-06-24 22:38:16 +02:00
										 |  |  |         ), | 
					
						
							| 
									
										
										
										
											2021-08-29 15:53:31 +02:00
										 |  |  |         wellPanel( | 
					
						
							|  |  |  |             h3("Results"), | 
					
						
							| 
									
										
										
										
											2021-08-29 15:29:34 +02:00
										 |  |  |             textOutput("synposis"), | 
					
						
							| 
									
										
										
										
											2021-10-07 12:59:04 +02:00
										 |  |  |             div( | 
					
						
							|  |  |  |                 style = "margin-top: 16px", | 
					
						
							|  |  |  |                 uiOutput("copy") | 
					
						
							|  |  |  |             ), | 
					
						
							| 
									
										
										
										
											2021-08-29 15:53:31 +02:00
										 |  |  |             div( | 
					
						
							|  |  |  |                 style = "overflow-x: auto; overflow-y: auto; margin-top: 16px", | 
					
						
							|  |  |  |                 DTOutput("genes") | 
					
						
							|  |  |  |             ) | 
					
						
							|  |  |  |         ) | 
					
						
							|  |  |  |     ), | 
					
						
							|  |  |  |     column( | 
					
						
							|  |  |  |         width = 8, | 
					
						
							|  |  |  |         wellPanel( | 
					
						
							|  |  |  |             h3("Gene positions"), | 
					
						
							|  |  |  |             p("This plot shows the selected genes' distance to the telomeres \ | 
					
						
							|  |  |  |                across species. It visualizes how certain genes have \ | 
					
						
							|  |  |  |                evolutionary conserved positions."), | 
					
						
							| 
									
										
										
										
											2021-08-29 13:43:14 +02:00
										 |  |  |             div( | 
					
						
							|  |  |  |                 style = "overflow-x: auto", | 
					
						
							|  |  |  |                 div( | 
					
						
							|  |  |  |                     style = "min-width: 1400px", | 
					
						
							|  |  |  |                     plotOutput( | 
					
						
							|  |  |  |                         "scatter", | 
					
						
							|  |  |  |                         width = "100%", | 
					
						
							|  |  |  |                         height = "600px" | 
					
						
							|  |  |  |                     ) | 
					
						
							|  |  |  |                 ) | 
					
						
							|  |  |  |             ) | 
					
						
							| 
									
										
										
										
											2021-10-07 12:18:47 +02:00
										 |  |  |         ), | 
					
						
							|  |  |  |         wellPanel( | 
					
						
							|  |  |  |             h3("Gene set enrichment analysis"), | 
					
						
							| 
									
										
										
										
											2021-10-07 12:42:36 +02:00
										 |  |  |             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:18:47 +02:00
										 |  |  |             ) | 
					
						
							| 
									
										
										
										
											2021-06-24 22:38:16 +02:00
										 |  |  |         ) | 
					
						
							|  |  |  |     ) | 
					
						
							|  |  |  | ) |