Skip to content

Commit

Permalink
little bugfix
Browse files Browse the repository at this point in the history
Signed-off-by: Daena Rys <rysdaena8@gmail.com>
  • Loading branch information
Daenarys8 committed Oct 14, 2024
1 parent aa59828 commit ce13f56
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion R/plotAbundance.R
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,8 @@ setMethod("plotAbundance", signature = c("SummarizedExperiment"), function(
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
order.col.by <- if( !is.null(order.col.by) && 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) ){
Expand Down

0 comments on commit ce13f56

Please sign in to comment.