Skip to content

Commit

Permalink
bug fix: ensure ExperimentList order is the same when comparing colum…
Browse files Browse the repository at this point in the history
…n names
  • Loading branch information
LiNk-NY committed Aug 11, 2023
1 parent 62b3478 commit bc96603
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/MultiAssayExperiment-class.R
Expand Up @@ -380,9 +380,9 @@ MultiAssayExperiment <-
colNams <- Filter(function(x) !isEmpty(x), colnames(object))
msg <- NULL
if (length(colNams)) {
logicResult <- mapply(function(x, y, nm) {
logicResult <- mapply(function(x, y) {
identical(sort(x), sort(y))
}, x = colNams, y = assayCols, nm = names(colNams))
}, x = colNams, y = assayCols[names(colNams)])
if (!all(logicResult))
msg <- "not all ExperimentList samples are found in the sampleMap"
}
Expand Down

0 comments on commit bc96603

Please sign in to comment.