diff --git a/environment.yml b/environment.yml index 29833ea..e93465c 100644 --- a/environment.yml +++ b/environment.yml @@ -5,26 +5,24 @@ channels: dependencies: - geopandas=0.12.2 - leidenalg=0.9.1 - - matplotlib=3.5.2 - napari=0.4.16 - - numpy=1.24.4 - opencv=4.5.5 - pip=22.2.2 - python=3.10.8 - pytorch=1.12.1 - rasterio=1.3.2 - - scanpy=1.9.1 + - scanpy=1.9.4 - scipy=1.8.0 - seaborn=0.11.2 - fsspec=2023.6.0 - pip: - - anndata==0.9.1 + - anndata==0.9.2 - basicpy==1.0.0 - cellpose==2.0.5 - jax==0.4.6 - jaxlib==0.4.6 - shapely==2.0.1 - - spatialdata==0.0.9 + - spatialdata==0.0.12 - squidpy==1.2.0 - voronoi-diagram-for-polygons==0.1.6 - xarray==2022.12.0 @@ -32,4 +30,4 @@ dependencies: - xarray-datatree==0.0.12 - xarray-schema==0.0.3 - xarray-spatial==0.3.5 - - pandas==1.4.2 \ No newline at end of file + - pandas==1.4.3 \ No newline at end of file diff --git a/setup.cfg b/setup.cfg index 215f470..0c9a45f 100644 --- a/setup.cfg +++ b/setup.cfg @@ -30,12 +30,12 @@ project_urls = [options] packages = find: install_requires = - pandas==1.4.2 - spatialdata==0.0.9 + pandas==1.4.3, + spatialdata>=0.0.9 cellpose==2.0.5 squidpy==1.2.0 - matplotlib<3.7 # scanpy not compatible with matplotlib>=3.7 - scanpy==1.9.1 + #matplotlib<3.7 # scanpy not compatible with matplotlib>=3.7 + scanpy>=1.9.1 jax==0.4.6 jaxlib==0.4.6 basicpy==1.0.0 diff --git a/src/napari_sparrow/image/_transcripts.py b/src/napari_sparrow/image/_transcripts.py index 08f984d..47192dc 100644 --- a/src/napari_sparrow/image/_transcripts.py +++ b/src/napari_sparrow/image/_transcripts.py @@ -166,6 +166,8 @@ def chunked_gaussian_filter(chunk): ) blurred_transcripts = blurred_transcripts.T + # rechunk, otherwise possible issues when saving to zarr + blurred_transcripts=blurred_transcripts.rechunk( blurred_transcripts.chunksize ) spatial_image = spatialdata.models.Image2DModel.parse( blurred_transcripts[None,], dims=("c", "y", "x")