Skip to content

Commit

Permalink
minor change
Browse files Browse the repository at this point in the history
  • Loading branch information
thpral committed Apr 19, 2024
1 parent 895694c commit 0603db1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions R/calculateUnifrac.R
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ setGeneric("calculateUnifrac", signature = c("x", "tree"),
#' @export
setMethod("calculateUnifrac", signature = c(x = "ANY", tree = "phylo"),
function(x, tree, weighted = FALSE){
.require_package("rbiom")
if(is(x,"SummarizedExperiment")){
stop("When providing a 'tree', please provide a matrix-like as 'x'",
" and not a 'SummarizedExperiment' object. Please consider ",
Expand Down

0 comments on commit 0603db1

Please sign in to comment.