Skip to content

Commit

Permalink
Rename tree nodes only when update.tree = TRUE (#682)
Browse files Browse the repository at this point in the history
  • Loading branch information
TuomasBorman authored Jan 26, 2025
1 parent 075891b commit f80ea32
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: mia
Type: Package
Version: 1.15.18
Version: 1.15.19
Authors@R:
c(person(given = "Tuomas", family = "Borman", role = c("aut", "cre"),
email = "tuomas.v.borman@utu.fi",
Expand Down
4 changes: 3 additions & 1 deletion R/agglomerate.R
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,9 @@ setMethod(
# Agglomerate data by using SCE method
x <- callNextMethod(x, rank = rank, update.tree = update.tree, ...)
# Rename tree to correspond the current rownames
x <- .rename_all_tree_nodes(x, by = 1L)
if( update.tree ){
x <- .rename_all_tree_nodes(x, by = 1L)
}
return(x)
}
)
Expand Down

0 comments on commit f80ea32

Please sign in to comment.