Skip to content

Commit

Permalink
use map_lgl
Browse files Browse the repository at this point in the history
  • Loading branch information
allyhawkins committed May 1, 2024
1 parent 57630da commit bb515c6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions bin/merge_sces.R
Original file line number Diff line number Diff line change
Expand Up @@ -247,8 +247,7 @@ adt_present_columns <- sce_list |>

# ensure that there are indeed no "adt" altExps if adt_present_columns is empty
adt_altexps <- sce_list |>
purrr::map(\(sce) "adt" %in% altExpNames(sce)) |>
unlist()
purrr::map_lgl(\(sce) "adt" %in% altExpNames(sce))
if (is.null(adt_present_columns) && sum(adt_altexps) > 0) {
stop("Error in determining which adt altExp columns should be retained.")
}
Expand Down

0 comments on commit bb515c6

Please sign in to comment.