Convert scientific image formats (TIFF, MRC, N5) to OME-Zarr
Reason this release was yanked:
metadata is being written as ome-ngff 0.4 in zarr 3, must be 0.5.
Project description
Zarrify
Convert TIFF, TIFF stacks, MRC, N5, and zarr v2 files to OME-Zarr v3.
Install
Requires Pixi.
git clone <repo>
cd zarrify
pixi run dev-install
Run
pixi run zarrify --config config.yaml
Copy a config template from config_examples/ and edit for your data.
Config
src: "/path/to/input" # tiff, tiff stack dir, .mrc, .n5, or zarr v2 .zarr
dest: "/path/to/output.zarr"
cluster: lsf # local | lsf
workers: 100
log_dir: "/path/to/lsf/logs"
extra_directives: ["-P myproject"]
zarr_chunks: [32, 32, 32] # inner chunk shape
shard_shape: [1024, 1024, 1024] # outer shard — null to disable
codec: zstd # zstd | gzip | blosc
codec_level: 3 # null = per-codec default (zstd:3, gzip:6, blosc:5)
axes: [z, y, x]
scale: [8.0, 8.0, 8.0]
translation: [0.0, 0.0, 0.0]
units: [nanometer, nanometer, nanometer]
optimize_reads: false # chunk-aligned TIFF reads (single TIFF only)
multiscale: false # build a multiscale pyramid
ms_workers: 100
data_origin: raw # raw | labels
antialiasing: false
normalize_voxel_size: false
custom_scale_factors: null # e.g. [[1,1,1],[2,2,2],[4,4,4]]
CLI flags override config values:
pixi run zarrify --config config.yaml --workers 200 --scale 1.0 1.0 0.058 0.058
LSF example
bsub -n 4 -P myproject -o out.log -e err.log \
"pixi run zarrify --config config.yaml"
Python API
from zarrify.to_zarr import to_zarr
from zarrify.utils.dask_utils import initialize_dask_client
client = initialize_dask_client("local")
to_zarr("input.mrc", "output.zarr", client)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file zarrify-0.1.1.tar.gz.
File metadata
- Download URL: zarrify-0.1.1.tar.gz
- Upload date:
- Size: 22.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4416174a0043aae11f8a6af0f696d38f30e16b64e90cfd8d79ec4fd079711ee3
|
|
| MD5 |
7ce36de44e769a03756eb7e76055adde
|
|
| BLAKE2b-256 |
59c87745de64d98581546e8c22d1e585dffcb19073645ae7dbc36394a0e387e8
|
File details
Details for the file zarrify-0.1.1-py3-none-any.whl.
File metadata
- Download URL: zarrify-0.1.1-py3-none-any.whl
- Upload date:
- Size: 31.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eb2792760f670dee2441d32436b434982af2d54fdc2ebc3c69c9168c7d13ed22
|
|
| MD5 |
41eafd346254e0d21caa87626dac278c
|
|
| BLAKE2b-256 |
0377afd9e7c1c6d4f8fdbd30d0cf87293e03cc61f4f26ef2c72a0d47f243a7e9
|