spatialrefinery.segmentation.to_spatialdata.default_zarr_path

spatialrefinery.segmentation.to_spatialdata.default_zarr_path#

spatialrefinery.segmentation.to_spatialdata.default_zarr_path(wsi_path, zarr_outdir)#

Return <zarr_outdir>/<slide stem>.zarr, the store name one slide converts to.

The stem is the prefix before the slide’s extension, so slide.ome.tif gives slide.zarr rather than slide.ome.tif.zarr or slide.ome.zarr. Note this differs from the segmentation stage, whose per-slide directory keeps the full filename (see segmentation.instanseg.segment_wsi).

Return type:

Path