diff --git a/R/auxiliary_giotto.R b/R/auxiliary_giotto.R index 2640111f2..2dc49cc69 100644 --- a/R/auxiliary_giotto.R +++ b/R/auxiliary_giotto.R @@ -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') }