Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
TuomasBorman committed Jun 25, 2024
1 parent e597743 commit fca2242
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions R/plotAbundance.R
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,8 @@ setMethod("plotAbundance", signature = c("SummarizedExperiment"),
}
.check_assay_present(assay.type, x)
############################# INPUT CHECK #############################
if(!.is_non_empty_string(rank) & !is.null(rank)){
stop("'rank' must be an non empty single character value.",
if(!.is_non_empty_string(rank) && !is.null(rank)){
stop("'rank' must be an non empty single character value or NULL.",
call. = FALSE)
}
if(!.is_a_bool(use_relative)){
Expand All @@ -180,7 +180,7 @@ setMethod("plotAbundance", signature = c("SummarizedExperiment"),
order_rank_by <- match.arg(order_rank_by, c("name","abund","revabund"))
.check_abund_plot_args(one_facet = one_facet,
ncol = ncol)
if( !is.null(features)){
if( !is.null(features) ){
features <- match.arg(features, colnames(colData(x)))
}
########################### INPUT CHECK END ###########################
Expand Down

0 comments on commit fca2242

Please sign in to comment.