Skip to content

Commit

Permalink
Visually improved markers report:
Browse files Browse the repository at this point in the history
If numbered clusters, order by numbers. Otherwise, keep it as is.
  • Loading branch information
vucinick committed Jul 12, 2024
1 parent 4cd94af commit c153bd1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions R/markers.R
Original file line number Diff line number Diff line change
Expand Up @@ -849,8 +849,10 @@ generate_markers_results_section <- function(df, group_var, dt_order_by, base_ou

df_list <- dplyr::group_split(df) %>%
set_names(dplyr::group_keys(df) %>% dplyr::pull(!!sym(group_var)))

df_list <- df_list[as.character(order(names(df_list)))]

if (!any(names(df_list) %in% c("binom", "t", "wilcox"))) {
df_list <- df_list[as.character(order(names(df_list)))]
}

z <- lapply(names(df_list), function(name) {
md_header(name, 4)
Expand Down

0 comments on commit c153bd1

Please sign in to comment.