From c2a8b6373a2628b76bc551593de59fd417bc15db Mon Sep 17 00:00:00 2001 From: Stefano Mangiola Date: Mon, 16 Sep 2024 18:22:52 +0300 Subject: [PATCH] fix gate_interactive for library(STexampleData) spatial_data <- Visium_mouseCoronal() --- R/methods.R | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/R/methods.R b/R/methods.R index 418da77..b33abc4 100755 --- a/R/methods.R +++ b/R/methods.R @@ -353,8 +353,8 @@ gate_interactive <- # Prepare spatial information image <- - SpatialExperiment::imgData(spe)[1, ]@listData$data[[1]] |> - SpatialExperiment::imgSource() |> + spe |> + SpatialExperiment::imgRaster() |> magick::image_read() image_x_size <-