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) }