Skip to content

Commit f12ac37

Browse files
committed
Merge branch 'main' into anndataR
2 parents 6b5bd39 + 665383b commit f12ac37

4 files changed

Lines changed: 49 additions & 41 deletions

File tree

DESCRIPTION

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Package: SpatialData
22
Title: Representation of Python's SpatialData in R
3-
Depends: R (>= 4.4)
4-
Version: 0.99.23
3+
Depends: R (>= 4.5)
4+
Version: 0.99.24
55
Description: Interface to Python's 'SpatialData', currently including:
66
reticulate-based use of 'spatialdata-io' for reading of manufracturer
77
data and writing to .zarr, on-disk representation of images/labels as

R/read.R

Lines changed: 29 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,32 @@
11
#
2-
allp = c("session_info==1.0.0", "spatialdata==0.3.0", "spatialdata_io==0.1.7",
3-
"pillow==11.1.0", "anndata==0.11.3", "annotated_types==0.7.0", "asciitree==0.3.3",
4-
"attr==0.3.2", "certifi==2025.01.31", "charset_normalizer==3.4.1",
5-
"click==8.1.8", "cloudpickle==3.1.1", "cycler==0.12.1", "dask==2024.4.1",
6-
"dask_image==2024.5.3", "datashader==0.17.0",
7-
"deprecated==1.2.18", "distributed==2024.4.1",
8-
"flowio==1.3.0", "fsspec==2025.2.0", "geopandas==1.0.1", "h5py==3.12.1",
9-
"idna==3.10", "imagecodecs==2024.12.30", "imageio==2.37.0", "jinja2==3.1.5",
10-
"joblib==1.4.2", "kiwisolver==1.4.8", "lazy_loader==0.4", "legacy_api_wrap==1.4.1",
11-
"llvmlite==0.44.0", "locket==1.0.0", "markupsafe==3.0.2", "matplotlib==3.10.0",
12-
"more_itertools==10.3.0", "msgpack==1.1.0", "multipledispatch==0.6.0",
13-
"multiscale_spatial_image==2.0.2", "natsort==8.4.0", "networkx==3.4.2",
14-
"numba==0.61.0", "numcodecs==0.15.1", "numpy==2.1.3", "ome_types==0.5.3",
15-
"ome_zarr==0.10.3", "packaging==24.2", "pandas==2.2.3", "param==2.2.0",
16-
"pims==0.7", "platformdirs==4.3.6", "psutil==7.0.0", "pyarrow==19.0.0",
17-
"pyct==0.5.0", "pydantic==2.10.6", "pydantic_compat==0.1.2",
18-
"pydantic_core==2.27.2", "pygments==2.19.1", "pyparsing==3.2.1",
19-
"pyproj==3.7.0", "pytz==2025.1", "readfcs==2.0.1", "requests==2.32.3",
20-
"rich==13.9.4", "scanpy==1.11.0", "scipy==1.15.1", "setuptools==75.8.0",
21-
"shapely==2.0.7", "six==1.17.0", "scikit-image==0.25.1", "scikit-learn==1.5.2",
22-
"slicerator==1.1.0", "sortedcontainers==2.4.0", "spatial_image==1.1.0",
23-
"tblib==3.0.0", "threadpoolctl==3.5.0", "tifffile==2025.1.10",
24-
"toolz==1.0.0", "tornado==6.4.2", "tqdm==4.67.1",
25-
"typing_extensions==4.12.2", "urllib3==2.3.0", "wrapt==1.17.2",
26-
"xarray==2024.11.0", "xarray_dataclasses==1.9.1", "xarray_schema==0.0.3",
27-
"zarr==2.18.4", "zict==3.0.0")
2+
# allp = c("session_info==1.0.0", "spatialdata==0.3.0", "spatialdata_io==0.1.7",
3+
# "pillow==11.1.0", "anndata==0.11.3", "annotated_types==0.7.0", "asciitree==0.3.3",
4+
# "attr==0.3.2", "certifi==2025.01.31", "charset_normalizer==3.4.1",
5+
# "click==8.1.8", "cloudpickle==3.1.1", "cycler==0.12.1", "dask==2024.4.1",
6+
# "dask_image==2024.5.3", "datashader==0.17.0",
7+
# "deprecated==1.2.18", "distributed==2024.4.1",
8+
# "flowio==1.3.0", "fsspec==2025.2.0", "geopandas==1.0.1", "h5py==3.12.1",
9+
# "idna==3.10", "imagecodecs==2024.12.30", "imageio==2.37.0", "jinja2==3.1.5",
10+
# "joblib==1.4.2", "kiwisolver==1.4.8", "lazy_loader==0.4", "legacy_api_wrap==1.4.1",
11+
# "llvmlite==0.44.0", "locket==1.0.0", "markupsafe==3.0.2", "matplotlib==3.10.0",
12+
# "more_itertools==10.3.0", "msgpack==1.1.0", "multipledispatch==0.6.0",
13+
# "multiscale_spatial_image==2.0.2", "natsort==8.4.0", "networkx==3.4.2",
14+
# "numba==0.61.0", "numcodecs==0.15.1", "numpy==2.1.3", "ome_types==0.5.3",
15+
# "ome_zarr==0.10.3", "packaging==24.2", "pandas==2.2.3", "param==2.2.0",
16+
# "pims==0.7", "platformdirs==4.3.6", "psutil==7.0.0", "pyarrow==19.0.0",
17+
# "pyct==0.5.0", "pydantic==2.10.6", "pydantic_compat==0.1.2",
18+
# "pydantic_core==2.27.2", "pygments==2.19.1", "pyparsing==3.2.1",
19+
# "pyproj==3.7.0", "pytz==2025.1", "readfcs==2.0.1", "requests==2.32.3",
20+
# "rich==13.9.4", "scanpy==1.11.0", "scipy==1.15.1", "setuptools==75.8.0",
21+
# "shapely==2.0.7", "six==1.17.0", "scikit-image==0.25.1", "scikit-learn==1.5.2",
22+
# "slicerator==1.1.0", "sortedcontainers==2.4.0", "spatial_image==1.1.0",
23+
# "tblib==3.0.0", "threadpoolctl==3.5.0", "tifffile==2025.1.10",
24+
# "toolz==1.0.0", "tornado==6.4.2", "tqdm==4.67.1",
25+
# "typing_extensions==4.12.2", "urllib3==2.3.0", "wrapt==1.17.2",
26+
# "xarray==2024.11.0", "xarray_dataclasses==1.9.1", "xarray_schema==0.0.3",
27+
# "zarr==2.18.4", "zict==3.0.0")
28+
allp = c("zarr==3.1.5", "spatialdata==0.7.0", "spatialdata_io==0.6.0",
29+
"spatialdata_plot==0.2.14", "setuptools==75.8.0")
2830
# notes from VJC -- readSpatialData was modified below so
2931
# that if anndataR = FALSE, spatialdata.read_zarr is used
3032
# to get the whole zarr store, and then the tables are
@@ -119,7 +121,7 @@ readShape <- function(x, ...) {
119121
#' @importFrom basilisk BasiliskEnvironment
120122
.env <- BasiliskEnvironment(
121123
pkgname="SpatialData", envname="anndata_env",
122-
packages=c( "python==3.12.0", "zarr==2.18.4" ),
124+
packages=c( "python==3.13.0"),
123125
pip=allp)
124126

125127
#' @importFrom reticulate import

R/tx_to_ext.R

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,15 @@
2424
#' @examples
2525
#' src <- system.file("extdata", "blobs.zarr", package="SpatialData")
2626
#' td <- tempfile()
27-
#' do_tx_to_ext(
28-
#' srcdir=src, dest=td,
29-
#' coordinate_system="global",
30-
#' maintain_positioning=FALSE,
31-
#' target_width=400.)
32-
#' (sd <- readSpatialData(td))
27+
#' # TODO: for now this example converts to a zarr v3 so we comment out,
28+
#' # check again later
29+
#'
30+
#' # do_tx_to_ext(
31+
#' # srcdir=src, dest=td,
32+
#' # coordinate_system="global",
33+
#' # maintain_positioning=FALSE,
34+
#' # target_width=400.)
35+
#' # (sd <- readSpatialData(td))
3336
#'
3437
#' @export
3538
do_tx_to_ext <- function(srcdir, dest, coordinate_system, ...) {

man/do_tx_to_ext.Rd

Lines changed: 9 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)