Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
TuomasBorman committed Feb 11, 2024
1 parent 552ed02 commit f099005
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/agglomerate.R
Original file line number Diff line number Diff line change
Expand Up @@ -408,13 +408,13 @@ setMethod("mergeFeaturesByRank", signature = c(x = "TreeSummarizedExperiment"),
remove_all <- length(remove_index) == length(tree$tip.label)
remove_none <- length(remove_index) == 0
if( remove_all ){
stop(
warning(
"'keep.nodes' does not specify any tips from 'tree'. After ",
"agglomeration, all tips would be removed resulting to ",
"NULL. The tree is not agglomerated.", call. = FALSE)
}
if( remove_none ){
stop(
warning(
"'keep.nodes' does specify all the tips from 'tree'. ",
"The tree is not agglomerated.", call. = FALSE)
}
Expand Down

0 comments on commit f099005

Please sign in to comment.