Skip to main content

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)

Metadata

Release files for zarrify 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for zarrify 0.1.3
File Size Uploaded Provenance
zarrify-0.1.3.tar.gz 22.9 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for zarrify 0.1.3
File Interpreter ABI Platform
zarrify-0.1.3-py3-none-any.whl Python 3 none any Details

Total release size: 55.0 kB

Release files / zarrify-0.1.3.tar.gz

Download URL zarrify-0.1.3.tar.gz
Size 22.9 kB
Tags Source
SHA-256 checksum
How to use checksums
ada8c9b8a624728bb8dab2f93717a45a3a7733fde4a229bbc27138b38ff624ff
BLAKE2b-256 checksum
How to use checksums
f0cfdfd127b06675a91ff38f069ce73e89d13033e58a39ca65ead819f2b1afdb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.7.2

Release files / zarrify-0.1.3-py3-none-any.whl

Download URL zarrify-0.1.3-py3-none-any.whl
Size 32.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
33c606e3e58fe061e3d29070ccc4a722689c1cab120fd474bea3290bf0c136e4
BLAKE2b-256 checksum
How to use checksums
b8e256603142747ce36fe9868c7ae680ea4792b140d89c0c8ac57b636448486b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.7.2

Security for zarrify 0.1.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page