Skip to main content

omero-label

Python library and OMERO CLI plugin to manage OME-Zarr labels in OMERO.

OME-Zarr groups containing label images can be linked to individual OMERO images as ROIs containing a single Mask shape as defined in the omero-zarr-pixel-buffer extension.

Requirements

  • Python 3.10 or later

Installation

omero-label is distributed via PyPI and can be installed using the standard Python packaging managers like pip:

pip install omero-label

Usage

To register an OME-Zarr label, run the omero label register using the absolute path to the label group and the ID of the image to link the label to:

omero label register /path/to/image.zarr/0/labels/my_label <image_id>

A successful registration will return the ID of the new object as Roi:<roi_id>.

To register an OME-Zarr label hosted on object storage, pass the S3 URL as defined in omero-zarr-pixel-buffer to the omero label register command:

omero label register s3://<endpoint>/<bucket>/path/to/image.zarr/0/labels/my_label <image_id>

The path of the S3 URL must be percent-encoded as defined in RFC 3986. S3 paths containing literal percent-encoded octets are not supported.

The properties of a label image can be retrieved by calling the omero label get command using the ID of the ROI:

omero label get <roi_id>

The command will return the properties as a list of key/value pairs:

x=0.0
y=0.0
width=1584.0
height=788.0
fillColor=-65436
uri=/data/image.zarr/0/labels/cells

Properties can also be retrieved individually by specifying their name as an argument:

omero label get <roi_id> x
omero label get <roi_id> width
omero label get <roi_id> fillColor

To update the location of an OME-Zarr label, run omero label update:

omero label update <roi_id> /new/path/to/image.zarr/0/labels/my_label

Development

Clone the repository:

git clone https://github.com/glencoesoftware/omero-label

Build the project using the build module:

pip intall build
python -m build

License

omero-label is licensed under the terms of the GNU General Public License (GPL) v2.

Metadata

Release files for omero-label 0.1.1

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

Source distribution (sdist)

Source distribution for omero-label 0.1.1
File Size Uploaded Provenance Actions
omero_label-0.1.1.tar.gz 21.7 kB Without provenance Details for omero_label-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for omero-label 0.1.1
File Interpreter ABI Platform Actions
omero_label-0.1.1-py3-none-any.whl Python 3 none any Details for omero_label-0.1.1-py3-none-any.whl

Total release size: 40.7 kB

Release files / omero_label-0.1.1.tar.gz

Download URL omero_label-0.1.1.tar.gz
Size 21.7 kB
Tags Source
SHA-256 checksum
How to use checksums
0445c501f9e68296dff9b7953d5350d302b3ee10568141b7fb85e4e6619ed127
BLAKE2b-256 checksum
How to use checksums
91b2e240240dbca170f0f68edcbfca995f3c81594944abd3b2824fbd70c45b8d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / omero_label-0.1.1-py3-none-any.whl

Download URL omero_label-0.1.1-py3-none-any.whl
Size 18.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8c62d7864c7430c31505e5749031f167cbc8a6012c9d7c351c1c91dd90bf7d76
BLAKE2b-256 checksum
How to use checksums
5a41e193744fab78ad1c2680c0530db43667da47f9e04f3e861ed0403bd8556b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Security for omero-label 0.1.1

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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 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