Skip to content

Commit

Permalink
fix: identifyTMAcores() add catch for 0 dim matrices in rbind
Browse files Browse the repository at this point in the history
  • Loading branch information
jiajic committed Jan 30, 2025
1 parent 183296f commit 720b37a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Giotto 4.2.1
## Bug fixes
* fix `identifyTMAcores()` when no overlap relations are found and an `rbind` error is thrown

# Giotto 4.2.0 (2024/01/17)

## Breaking Changes
Expand Down
1 change: 1 addition & 0 deletions R/spatial_clusters.R
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,7 @@ identifyTMAcores <- function(
# determine sorted pairs of overlaps
apply(MARGIN = 2, sort) |>
t()
if (any(dim(ovlp) == 0)) ovlp <- NULL
return(ovlp)
})
# combine test reps
Expand Down

0 comments on commit 720b37a

Please sign in to comment.