Skip to content

Commit

Permalink
bypass upload_module_outliers (crashing) in order to test computation…
Browse files Browse the repository at this point in the history
…; clean up
  • Loading branch information
mauromiguelm committed Mar 12, 2024
1 parent ee12084 commit 1ba9b06
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
23 changes: 12 additions & 11 deletions components/board.upload/R/upload_module_computepgx.R
Original file line number Diff line number Diff line change
Expand Up @@ -406,6 +406,7 @@ upload_module_computepgx_server <- function(
if (!is.null(upload_wizard()) && upload_wizard() != "wizard_finished") {
return(NULL)
}
browser()

# TODO MOVE THIS TO THE WIZARD MODULE OR in selected_upload listener
# if (!is.null(input$selected_name) && !isValidFileName(input$selected_name)) {
Expand All @@ -429,17 +430,17 @@ upload_module_computepgx_server <- function(
return(NULL)
}

## check for name and description
has.name <- input$selected_name != ""
has.description <- input$selected_description != ""
if (!has.name || !has.description) {
shinyalert::shinyalert(
title = "ERROR",
text = "You must give a dataset name and description",
type = "error"
)
return(NULL)
}
# #TODO check for name and description.. remove this code as its not necessary anymore
# has.name <- input$selected_name != ""
# has.description <- input$selected_description != ""
# if (!has.name || !has.description) {
# shinyalert::shinyalert(
# title = "ERROR",
# text = "You must give a dataset name and description",
# type = "error"
# )
# return(NULL)
# }

## -----------------------------------------------------------
## Retrieve the most recent matrices from reactive values
Expand Down
1 change: 0 additions & 1 deletion components/board.upload/R/upload_module_outliers.R
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,6 @@ upload_module_outliers_server <- function(id, r_X, r_samples, r_contrasts,

## IMPUTE FIRST OR NORMALIZE????
imputedX <- reactive({

shiny::req(r_X())
counts <- r_X()
X <- log2(1 + counts)
Expand Down
2 changes: 1 addition & 1 deletion components/board.upload/R/upload_server.R
Original file line number Diff line number Diff line change
Expand Up @@ -574,7 +574,7 @@ UploadBoard <- function(id,

computed_pgx <- upload_module_computepgx_server(
id = "compute",
countsRT = corrected1$correctedCounts,
countsRT = shiny::reactive(checked_counts()$matrix), #TODO add return from new-bc module: corrected1$correctedCounts,
samplesRT = shiny::reactive(checked_samples()$matrix),
contrastsRT = modified_ct,
raw_dir = raw_dir,
Expand Down

0 comments on commit 1ba9b06

Please sign in to comment.