Skip to content

Commit

Permalink
Style code (GHA)
Browse files Browse the repository at this point in the history
  • Loading branch information
ivokwee committed Dec 2, 2024
1 parent d4ec8f4 commit 273b1de
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions components/board.dataview/R/dataview_server.R
Original file line number Diff line number Diff line change
Expand Up @@ -149,9 +149,16 @@ DataViewBoard <- function(id, pgx, labeltype = shiny::reactive("feature")) {
samples <- colnames(pgx$X)

if (!is.null(input$data_samplefilter)) {
samples <- tryCatch({playbase::selectSamplesFromSelectedLevels(
pgx$samples, input$data_samplefilter
)}, error = function(w) {NULL})
samples <- tryCatch(
{
playbase::selectSamplesFromSelectedLevels(
pgx$samples, input$data_samplefilter
)
},
error = function(w) {
NULL
}
)
}
# validate samples
validate(need(length(samples) > 0, "No samples remaining after filtering."))
Expand Down

0 comments on commit 273b1de

Please sign in to comment.