Skip to content

Commit

Permalink
Changed sort order for concentrations in summary card. Fixed message …
Browse files Browse the repository at this point in the history
…type in notify function.
  • Loading branch information
travis-m-blimkie committed Apr 23, 2024
1 parent 387e574 commit 5a0611e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: ABCindex
Title: A Shiny app to calculate ABCI for checkerboard assays
Version: 0.99.79
Version: 0.99.80
Authors@R:
person(given = "Travis",
family = "Blimkie",
Expand Down
12 changes: 5 additions & 7 deletions R/2_upload.R
Original file line number Diff line number Diff line change
Expand Up @@ -370,13 +370,13 @@ fill_card <- function(expt) {
p(strong("Treatment in the columns: "), expt$cols$name),
p(
tags$b("Detected concentrations: "),
paste(sort(expt$cols$conc, decreasing = TRUE), collapse = ", ")
paste(sort(expt$cols$conc, decreasing = FALSE), collapse = ", ")
),
hr(),
p(strong("Treatment in the rows: "), expt$rows$name),
p(
strong("Detected concentrations: "),
paste(sort(expt$rows$conc, decreasing = TRUE), collapse = ", ")
paste(sort(expt$rows$conc, decreasing = FALSE), collapse = ", ")
),
)
}
Expand Down Expand Up @@ -418,7 +418,7 @@ notify <- function(id = NULL, list) {
showNotification(
id = id,
type = list$type,
duration = ifelse(list$type == "success", 10, 20),
duration = ifelse(list$type == "message", 5, 20),
ui = HTML(paste0(
"<h4 class='alert-heading'><b>", list$status, "</b></h4>",
"<p class='mb-0'>",
Expand Down Expand Up @@ -878,15 +878,13 @@ server_upload <- function(id) {
"name" = unique(experiment$cols),
"concentrations" = levels(experiment$cols_conc) %>%
as.character() %>%
as.numeric() %>%
sort()
as.numeric()
),
"rows" = list(
"name" = unique(experiment$rows),
"concentrations" = levels(experiment$rows_conc) %>%
as.character() %>%
as.numeric() %>%
sort()
as.numeric()
)
)
})
Expand Down

0 comments on commit 5a0611e

Please sign in to comment.