pizzarr
pizzarr copied to clipboard
Zip store
User story As a developer or user of relatively small zarr stores, I'd rather work with zip stores than directory stores.
Preferred solution pizzarr can work with zip stores as written by https://zarr.readthedocs.io/en/stable/api/storage.html#zarr.storage.ZipStore
Possible alternatives ??
The Zarrita.js ZipStore implementation could be helpful to reference https://github.com/manzt/zarrita.js/blob/main/packages/storage/src/zip.ts - R's built-in unzip(list = TRUE) might provide equivalent functionality to what the unzipit JS package is doing there https://stat.ethz.ch/R-manual/R-patched/library/utils/html/unzip.html
FYI, here's how I'm reading from ZipStores in the interim:
open_ZipStore = function(path){
zarr_dir = tempfile()
unzip( zipfile = path, exdir = zarr_dir )
pizzarr::zarr_open(zarr_dir,mode='r')
}