Skip to content

Commit

Permalink
Update auxiliary_giotto.R
Browse files Browse the repository at this point in the history
Fix `combineMetadata()` which was using a cbind instead of merge, causing the plotted metadata clustering information to be out of sync.
  • Loading branch information
jiajic committed Nov 8, 2023
1 parent d2d746a commit 66a9fc4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/auxiliary_giotto.R
Original file line number Diff line number Diff line change
Expand Up @@ -4822,7 +4822,7 @@ combineMetadata = function(gobject,
cell_ID = NULL

if(!is.null(spatial_locs)) {
metadata = cbind(metadata, spatial_locs[, cell_ID := NULL])
metadata = merge(metadata, spatial_locs, by = 'cell_ID')
}


Expand Down

0 comments on commit 66a9fc4

Please sign in to comment.