alterlab-omero
Installation
SKILL.md
OMERO Integration
Overview
OMERO is an open-source platform for managing, visualizing, and analyzing microscopy images and metadata. This skill's core job needs no credentials: it writes and checks the BlitzGateway integration code, analyses microscopy pixels/ROIs/channels from local files, and reads public OMERO data over HTTP. Only reaching the user's own private server uses their login.
Keyless Path (default — no OMERO account)
- Write and check the BlitzGateway integration. Author the code against omero-py's documented API (hierarchy
Project -> Dataset -> Image, screeningScreen -> Plate -> Well -> WellSample -> Image;conn.getObject,image.getPrimaryPixels().getPlane(z, c, t)-> NumPy, ROI shapes,omero.gateway.BlitzGatewayas a context manager). omero-py pinszeroc-ice>=3.6.5,<3.7, whose wheels are scarce, so verify method names from the docs rather than assuming an import works. - Analyse microscopy images locally. OME-TIFF and most vendor formats read with
tifffile(or Bio-Formats viabioio/python-bioformats) into a NumPy array with no server — compute per-channel intensity statistics, extract an ROI by coordinates and measure it, inspect dimensions and channel names. This is the same pixel analysis the BlitzGateway code will do on the server, proven on a local file first:
import numpy as np, tifffile
arr = tifffile.imread("field.ome.tif") # e.g. (c, y, x)
roi = arr[:, 20:40, 30:50] # a rectangular ROI by coordinates
for c in range(arr.shape[0]):
print(f"channel {c}: whole mean {arr[c].mean():.1f}, ROI mean {roi[c].mean():.1f}")