Skip to content

Commit

Permalink
add new arguments for GSVA missing values to Shiny app
Browse files Browse the repository at this point in the history
  • Loading branch information
axelklenk committed Oct 28, 2024
1 parent 178f15b commit 2070d67
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 2070d67

Please sign in to comment.