Skip to content

Commit

Permalink
use is.matrix to check matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
Yunuuuu committed Sep 9, 2023
1 parent 5a09945 commit 407117a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/log_transformation.R
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
log_trans <- function(data, pseudo = 1) {
if (inherits(data, "ExpressionSet")) {
expr_data <- Biobase::exprs(data)
} else if (inherits(data, "matrix")) {
} else if (is.matrix(data)) {
expr_data <- data
} else {
cli::cli_abort("data should must be a {.cls matrix} or {.cls ExpressionSet}")
Expand Down

0 comments on commit 407117a

Please sign in to comment.