Skip to content

Commit 0e22047

Browse files
committed
Fix logic to check for overlap
1 parent cf43b2a commit 0e22047

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

R/utilities.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1350,14 +1350,14 @@ check_if_assays_are_NOT_overlapped <- function(se, dim = "cols") {
13501350
# This will be TRUE also if some assays have dimnames and other don't
13511351
# For each assay, sort the dimnames, then check that they are all the
13521352
# same. Can't check for unique length, since some names may be repeated
1353+
# If they're not all the same, the reduce() step will return FALSE;
1354+
# otherwise, returns the (shared) dimnames
13531355
assays(se, withDimnames = FALSE) |>
13541356
as.list() |>
13551357
map(dimnames_function) |>
13561358
map(sort) |>
13571359
reduce(is_identical_for_reduce) |>
1358-
length() |>
1359-
equals(length_function(se)) |>
1360-
not()
1360+
is.logical()
13611361
}
13621362

13631363

0 commit comments

Comments
 (0)