Skip to content

Commit

Permalink
Results file now have concentrations in numeric order, if not all rep…
Browse files Browse the repository at this point in the history
…s have same concentrations.
  • Loading branch information
travis-m-blimkie committed Apr 29, 2024
1 parent a93f361 commit 5434dec
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 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.804
Version: 0.99.805
Authors@R:
person(given = "Travis",
family = "Blimkie",
Expand Down
8 changes: 5 additions & 3 deletions R/3_results.R
Original file line number Diff line number Diff line change
Expand Up @@ -2006,10 +2006,12 @@ writer_xlsx <- function(x, filename) {
df_clean <- df %>%
select(cols_conc, rows_conc, abci_avg) %>%
distinct(cols_conc, rows_conc, .keep_all = TRUE) %>%
tidyr::pivot_wider(
names_from = "cols_conc",
values_from = "abci_avg"
mutate(
cols_conc = as.numeric(as.character(cols_conc)),
rows_conc = as.numeric(as.character(rows_conc))
) %>%
arrange(cols_conc, rows_conc) %>%
tidyr::pivot_wider(names_from = "cols_conc", values_from = "abci_avg") %>%
tibble::column_to_rownames("rows_conc")

addWorksheet(wb, nm)
Expand Down

0 comments on commit 5434dec

Please sign in to comment.