Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
TuomasBorman committed Oct 9, 2024
1 parent fa78ac8 commit aa59828
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions R/plotAbundance.R
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,9 @@ setMethod("plotAbundance", signature = c("SummarizedExperiment"), function(
"the names.\nThe following names are not allowed: '",
paste0(not_allowed, collapse = "', '"), "'", call. = FALSE)
}
# Leave order.col.by out of the comparison, if it specifies a feature
order.col.by <- if(order.col.by %in% colnames(colData(x))) order.col.by else
NULL
all_vars <- unique(c(order.col.by, col.var))
if( sum(colnames(colData(x)) %in% all_vars) != length(all_vars) ){
stop("colData(x) must have unique colnames.", call. = FALSE)
Expand Down

0 comments on commit aa59828

Please sign in to comment.