Allow showing all genes in correlation plot

This commit is contained in:
Elias Projahn 2022-08-17 16:17:58 +02:00
parent 4e31d4ef79
commit 170a92dd56
3 changed files with 47 additions and 35 deletions

View file

@ -160,7 +160,8 @@ server <- function(options) {
method_names[[input$ranking_x]], method_names[[input$ranking_x]],
method_names[[input$ranking_y]], method_names[[input$ranking_y]],
gene_sets = gene_sets, gene_sets = gene_sets,
use_ranks = input$use_ranks use_ranks = input$use_ranks,
use_sample = input$use_sample
) )
}) })

View file

@ -8,7 +8,8 @@ custom_css <- function() {
"display: inline-block;", "display: inline-block;",
"vertical-align: top;", "vertical-align: top;",
"margin-right: 12px;", "margin-right: 12px;",
"}" "}",
".shiny-input-container { width: auto !important; min-width: 200px; }"
)) ))
) )
} }

16
R/ui.R
View file

@ -66,10 +66,9 @@ ui <- function(options) {
), ),
tabPanel( tabPanel(
title = "Method correlation", title = "Method correlation",
div(
style = "margin-top: 16px",
div( div(
class = "flow-layout", class = "flow-layout",
style = "margin-top: 16px",
selectInput( selectInput(
"ranking_y", "ranking_y",
label = NULL, label = NULL,
@ -99,6 +98,17 @@ ui <- function(options) {
"Use ranks instead of scores", "Use ranks instead of scores",
value = TRUE value = TRUE
) )
),
div(
style = paste0(
"display: inline-block;",
"padding: 0.375rem 0.75rem;"
),
checkboxInput(
"use_sample",
"Take random sample of genes",
value = TRUE
)
) )
), ),
plotly::plotlyOutput( plotly::plotlyOutput(
@ -106,7 +116,6 @@ ui <- function(options) {
width = "100%", width = "100%",
height = "600px" height = "600px"
) )
)
), ),
tabPanel( tabPanel(
title = "Comparison", title = "Comparison",
@ -134,6 +143,7 @@ ui <- function(options) {
tabPanel( tabPanel(
title = "Scores by position", title = "Scores by position",
div( div(
class = "flow-layout",
style = "margin-top: 16px", style = "margin-top: 16px",
selectInput( selectInput(
"positions_plot_chromosome_name", "positions_plot_chromosome_name",