You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
INFO Rasterizing image for faster rendering.
Clipping input data to the valid range for imshow with RGB data ([0..1] for floats or [0..255] for integers). Got range [-0.012448133..1.0].
/scratch/<redacted>/.venv/lib/python3.12/site-packages/spatialdata/_core/_elements.py:105: UserWarning: Key `study4_sampleB7` already exists. Overwriting it in-memory.
self._check_key(key, self.keys(), self._shared_keys)
/scratch/<redacted>/.venv/lib/python3.12/site-packages/spatialdata/_core/_elements.py:125: UserWarning: Key `all` already exists. Overwriting it in-memory.
self._check_key(key, self.keys(), self._shared_keys)
[...]
11.5 s ± 439 ms per loop (mean ± std. dev. of 7 runs, 1 loop each)
For comparison, these are the timings with the demo visium dataset only takes ~1 second
INFO Dropping coordinate system 'ST8059050' since it doesn't have relevant elements.
INFO Dropping coordinate system 'ST8059052' since it doesn't have relevant elements.
<magic-timeit>:1: DeprecationWarning: `elements` is being deprecated as an argument to `PlotAccessor.render_images.render_images` in spatialdata_plot version version 0.3.0, switch to `element` instead.
<magic-timeit>:2: DeprecationWarning: `elements` is being deprecated as an argument to `PlotAccessor.render_shapes.render_shapes` in spatialdata_plot version 0.3.0, switch to `element` instead.
/scratch/sturmgre/projects/scverse/spatialdata-plot/.venv/lib/python3.12/site-packages/spatialdata/_core/spatialdata.py:185: UserWarning: The table is annotating 'ST8059050', which is not present in the SpatialData object.
self.validate_table_in_spatialdata(v)
INFO Rasterizing image for faster rendering.
Clipping input data to the valid range for imshow with RGB data ([0..1] for floats or [0..255] for integers). Got range [-0.03797468..1.0].
/scratch/sturmgre/projects/scverse/spatialdata-plot/.venv/lib/python3.12/site-packages/spatialdata/_core/_elements.py:105: UserWarning: Key `ST8059048` already exists. Overwriting it in-memory.
self._check_key(key, self.keys(), self._shared_keys)
/scratch/sturmgre/projects/scverse/spatialdata-plot/.venv/lib/python3.12/site-packages/spatialdata/_core/_elements.py:125: UserWarning: Key `table` already exists. Overwriting it in-memory.
self._check_key(key, self.keys(), self._shared_keys)
[...]
1.16 s ± 34.8 ms per loop (mean ± std. dev. of 7 runs, 1 loop each)
The text was updated successfully, but these errors were encountered:
Thanks for reporting. Proper profiling needs to be done, but if I have to make a guess I'd say that the reason is spatialdata.join_spatialelement_table().
I have a spatialdata object with 49 Visium samples. It looks like this:
sdata
I loaded it from a zarr store
And then added a new consolidated
.table
from an anndata object (obtained from cell2location)Plotting a single static image takes >10 seconds.
For comparison, these are the timings with the demo visium dataset only takes ~1 second
The text was updated successfully, but these errors were encountered: