Skip to content

Commit

Permalink
Merge pull request #216 from rcastelo/215-extend-the-gsva-shiny-app-t…
Browse files Browse the repository at this point in the history
…o-make-use-of-its-new-missing-data-policy

add new arguments for GSVA missing values to Shiny app
  • Loading branch information
axelklenk authored Oct 28, 2024
2 parents 178f15b + 2070d67 commit 2ea8113
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions inst/shinyApp/argumentsDataModule.R
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ argumentsDataServer <- function(id){
toggleElement("ssgseaNorm", condition = input$method %in% "ssgsea")
toggleElement("mxDiff", condition = input$method %in% "gsva")
toggleElement("tau", condition = input$method %in% c("gsva", "ssgsea"))
toggleElement("checkNA", condition = input$method %in% "ssgsea")
toggleElement("use", condition = input$method %in% "ssgsea")
toggleElement("checkNA", condition = input$method %in% c("gsva", "ssgsea"))
toggleElement("use", condition = input$method %in% c("gsva", "ssgsea"))

if(input$method == "gsva"){
updateNumericInput(inputId = "tau", value = 1)
Expand Down
4 changes: 3 additions & 1 deletion inst/shinyApp/server.R
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,9 @@ function(input, output, session) {
kcdf=isolate(argInp[["kcdf"]]()),
tau=isolate(argInp[["selectedTau"]]()),
maxDiff=isolate(argInp[["mxDiff"]]()),
absRanking=isolate(argInp[["absRanking"]]())))
absRanking=isolate(argInp[["absRanking"]]()),
checkNA=isolate(argInp[["checkNA"]]()),
use=isolate(argInp[["use"]]())))
result <- gsva(param=param, verbose=TRUE)
sink()
## when gsva() ends, we reset the console text file to empty
Expand Down

0 comments on commit 2ea8113

Please sign in to comment.