Skip to main content

Convert any bioimage file to OME-Zarr v0.5, preserving metadata.

Project description

zarrmony

Convert any bioimage file to OME-Zarr v0.5, preserving metadata.

Zarrmony reads proprietary microscopy formats (CZI, LIF, ND2, OME-TIFF, ...) via bioio and writes them as OME-Zarr v0.5, with a configurable user-metadata gate, mean-pool pyramid generation, and a full audit trail of the conversion.

By default each scene becomes its own self-describing <scene>.ome.zarr store under the output directory. The legacy bundled bioformats2raw.layout shape is opt-in via --layout bf2raw (CLI) or layout="bf2raw" (library).

Status: v0.1 in active development. API and metadata schema are not yet stable.

Install

pip install zarrmony

Optional extras:

Extra Adds When you need it
gcs gcsfs Writing output to gs:// URIs
s3 s3fs Writing output to s3:// URIs
ome-tiff bioio-ome-tiff Reading OME-TIFF input
all All of the above
dev pytest, ruff, pre-commit Contributing

CZI, LIF, and ND2 reader plugins are included by default.

Usage

CLI

# Per-scene (default): writes one <scene>.ome.zarr store per scene under OUTPUT.
zarrmony convert input.czi output_dir/ --metadata-file metadata.json

# Bundled bioformats2raw.layout (opt-in): writes a single store at OUTPUT.
zarrmony convert input.czi output.ome.zarr --layout bf2raw --metadata-file metadata.json

zarrmony inspect input.czi
zarrmony schema dump > zarrmony-metadata.schema.json

Library

from zarrmony import convert, UserMetadata

# Per-scene (default): returns {"input": ..., "stores": [<per-store audit>, ...]}.
result = convert(
    "input.lif",
    "output_dir/",
    metadata=UserMetadata(...),
)

# Bundled: returns the single bundle's audit dict.
audit = convert(
    "input.lif",
    "output.ome.zarr",
    layout="bf2raw",
    metadata=UserMetadata(...),
)

License

Apache-2.0. See LICENSE.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

zarrmony-0.1.4.tar.gz (227.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

zarrmony-0.1.4-py3-none-any.whl (30.9 kB view details)

Uploaded Python 3

File details

Details for the file zarrmony-0.1.4.tar.gz.

File metadata

  • Download URL: zarrmony-0.1.4.tar.gz
  • Upload date:
  • Size: 227.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for zarrmony-0.1.4.tar.gz
Algorithm Hash digest
SHA256 cca8b840323801b8cdbce5c6fbe86df2ce44fe107fa799184f4b2853c96e4782
MD5 636c8d49db9f30abea0caa209ff93f51
BLAKE2b-256 2c8f9b930a733d29a9d1f40bd8b555b84b4ec404038e0afa981ed037b1d9cafd

See more details on using hashes here.

Provenance

The following attestation bundles were made for zarrmony-0.1.4.tar.gz:

Publisher: release.yml on ferrinm/zarrmony

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file zarrmony-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: zarrmony-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 30.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for zarrmony-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 4c5d5373960991b041a60fc0869ea9b4305e3c57328648c8ebd6d36db6ec3d32
MD5 ac7ef9ae22c07a8086979075f4806570
BLAKE2b-256 5a867eccb0a6e11ca097cd4d9c8b694c15bc29efdd8425775e54e69ef2ec0b9b

See more details on using hashes here.

Provenance

The following attestation bundles were made for zarrmony-0.1.4-py3-none-any.whl:

Publisher: release.yml on ferrinm/zarrmony

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page