From 882126a301e9b644eed1ed6294d08798abe94eb6 Mon Sep 17 00:00:00 2001 From: Artur-man Date: Thu, 22 May 2025 16:47:43 +0200 Subject: [PATCH] remove dependancy to getZarrArrayPath --- NAMESPACE | 2 +- R/plotImage.R | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/NAMESPACE b/NAMESPACE index 6ed0af0..685cb95 100644 --- a/NAMESPACE +++ b/NAMESPACE @@ -9,13 +9,13 @@ exportMethods(rotate) exportMethods(scale) exportMethods(translation) import(SpatialData) +importFrom(DelayedArray,path) importFrom(DelayedArray,realize) importFrom(Rarr,zarr_overview) importFrom(S4Vectors,metadata) importFrom(SingleCellExperiment,int_colData) importFrom(SingleCellExperiment,int_metadata) importFrom(SpatialData,channels) -importFrom(SpatialData,getZarrArrayPath) importFrom(dplyr,mutate) importFrom(dplyr,select) importFrom(ggforce,geom_circle) diff --git a/R/plotImage.R b/R/plotImage.R index 5df0e01..e71e38d 100644 --- a/R/plotImage.R +++ b/R/plotImage.R @@ -103,11 +103,11 @@ plotSpatialData <- \() ggplot() + scale_y_reverse() + .theme } # check if an image is rgb or not -#' @importFrom SpatialData getZarrArrayPath +#' @importFrom DelayedArray path #' @importFrom Rarr zarr_overview #' @noRd .get_img_dt <- \(a) { - pa <- getZarrArrayPath(a) + pa <- DelayedArray::path(a) df <- zarr_overview(pa, as_data_frame=TRUE) if (!is.null(dt <- df$data_type)) return(dt) }