Skip to content

Commit

Permalink
agglomerateByRank: bugfix related to agglomeration non-existing tree (m…
Browse files Browse the repository at this point in the history
  • Loading branch information
TuomasBorman authored May 13, 2024
1 parent 13f7dce commit 7a0b0ea
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 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.13.3
Version: 1.13.4
Authors@R:
c(person(given = "Felix G.M.", family = "Ernst", role = c("aut"),
email = "[email protected]",
Expand Down
1 change: 1 addition & 0 deletions NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -117,3 +117,4 @@ Changes in version 1.13.x
+ Added new functions getMediation and addMediation
+ replace getExperiment* and testExperiment* functions with getCrossAssociation
+ Replace mergeRows and mergeCols with new function agglomerateByVariable
+ agglomerateByRank: bugfix related to agglomeration of non-existing tree
7 changes: 3 additions & 4 deletions R/agglomerate.R
Original file line number Diff line number Diff line change
Expand Up @@ -371,10 +371,9 @@ setMethod(
}
# Agglomerate data
x <- callNextMethod(x, ...)
# Agglomerate also tree, if the data includes only one
# rowTree --> otherwise it is not possible to agglomerate
# since all rownames are not found from individual tree.
if(agglomerate.tree){
# Agglomerate also trees if user has specified and if there
# are trees available
if( agglomerate.tree && !is.null(x@rowTree) ){
x <- .agglomerate_trees(x)
}
x
Expand Down

0 comments on commit 7a0b0ea

Please sign in to comment.