| 
									
										
										
										
											2021-06-24 22:38:16 +02:00
										 |  |  | library(DT) | 
					
						
							|  |  |  | library(shiny) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | ui <- fluidPage( | 
					
						
							|  |  |  |     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( | 
					
						
							|  |  |  |                     "All qualified" = "all", | 
					
						
							|  |  |  |                     "Replicatively aging" = "replicative" | 
					
						
							|  |  |  |                 ) | 
					
						
							|  |  |  |             ), | 
					
						
							| 
									
										
										
										
											2021-08-26 11:20:50 +02:00
										 |  |  |             sliderInput( | 
					
						
							|  |  |  |                 "range", | 
					
						
							|  |  |  |                 "Gene position (Mbp)", | 
					
						
							|  |  |  |                 min = 0, | 
					
						
							|  |  |  |                 max = 50, | 
					
						
							|  |  |  |                 value = c(0, 15), | 
					
						
							|  |  |  |                 step = 0.1 | 
					
						
							|  |  |  |             ), | 
					
						
							|  |  |  |             sliderInput( | 
					
						
							|  |  |  |                 "length", | 
					
						
							|  |  |  |                 "Minimum cluster size", | 
					
						
							|  |  |  |                 min = 0, | 
					
						
							| 
									
										
										
										
											2021-09-19 09:57:27 +02:00
										 |  |  |                 max = 30, | 
					
						
							|  |  |  |                 value = 10 | 
					
						
							| 
									
										
										
										
											2021-09-18 23:33:37 +02:00
										 |  |  |             ) | 
					
						
							|  |  |  |         ), | 
					
						
							|  |  |  |         wellPanel( | 
					
						
							|  |  |  |             h3("Ranking"), | 
					
						
							|  |  |  |             sliderInput( | 
					
						
							|  |  |  |                 "clustering", | 
					
						
							|  |  |  |                 "Size of largest cluster", | 
					
						
							|  |  |  |                 post = "%", | 
					
						
							|  |  |  |                 min = 0, | 
					
						
							|  |  |  |                 max = 100, | 
					
						
							|  |  |  |                 step = 1, | 
					
						
							|  |  |  |                 value = 100 | 
					
						
							|  |  |  |             ), | 
					
						
							|  |  |  |             sliderInput( | 
					
						
							|  |  |  |                 "correlation", | 
					
						
							|  |  |  |                 "Correlation with known genes", | 
					
						
							|  |  |  |                 post = "%", | 
					
						
							|  |  |  |                 min = 0, | 
					
						
							|  |  |  |                 max = 100, | 
					
						
							|  |  |  |                 step = 1, | 
					
						
							|  |  |  |                 value = 100 | 
					
						
							| 
									
										
										
										
											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-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-06-24 22:38:16 +02:00
										 |  |  |         ) | 
					
						
							|  |  |  |     ) | 
					
						
							|  |  |  | ) |