plate-overview
Whole-plate overview images for multiwell fluorescence microscopy: one thumbnail per well, laid out in plate geometry, with each channel's contrast normalized across the whole plate so wells are comparable to each other by eye.
Vendor-neutral. This package knows nothing about acquisition formats — you hand it pixels through a small typed port and it draws.
Status: pre-alpha. The renderer landed in #2. The API can still change.
Why this exists as its own package
There is exactly one renderer. Every acquisition format reaches it
through an adapter, so overviews from different instruments stay
comparable. pyphenix (Opera Phenix) is the first consumer. A Leica
Thunder .lif adapter is the second.
Install
pip install plate-overview
Use it
Write an adapter with one method, describe the plate in one dict, and call the renderer.
from plate_overview import render_plate_overview
class MySource:
"""Adapter over one acquisition format."""
def read_well(
self,
*,
row,
column,
field,
stitch_fields,
timepoint,
channels,
z_slices,
apply_ffc,
):
# Read the well from your format. Return a (C, Z, Y, X) array at
# acquisition resolution, with C in the order of *channels*.
# Do not project it and do not resample it.
return my_format.read(row, column, field, ...)
plate = {
"plate_id": "PLATE-001",
"plate_rows": 8,
"plate_columns": 12,
"channel_ids": [1, 2],
"channel_names": {1: "Nuclei", 2: "Marker"},
"timepoints": [0],
"fields": [1, 2, 3, 4],
"well_field_map": {(1, 1): [1, 2, 3, 4], (1, 2): [1, 2, 3, 4]},
"image_size": (1080, 1080),
"pixel_size_m": (2.97e-07, 2.97e-07),
}
written = render_plate_overview(MySource(), plate, "overviews/")
render_plate_overview writes one PNG per non-empty channel combo
(2**N - 1 PNGs for N channels) plus one JSON sidecar, and returns
every path it wrote. Every PNG shares one set of plate-wide per-channel
contrast limits, so the wells are comparable by eye.
Three rules bind an adapter:
- Return full-resolution pixels. The package projects and downsamples once, and an adapter that resamples first shifts the plate contrast.
- Read on demand. The package discards each well before it reads the next one, so a plate never has to fit in memory.
- Keep paths out of
source_name. The package records a basename.
help(plate_overview.PlateFacts) documents every key, required and
optional.
Design notes
CONTEXT.md covers the render port, the gathering loop, and the resampling rule. docs/adr/ records the decisions behind them.
Contributing
Two house rules beyond the usual:
- No real acquisition data, anywhere. No fixture, example, sidecar or docstring may derive from a real acquisition. No plate identifiers, no operator-bearing paths, no source filenames. Test fixtures are synthetic. This repository is public and the upstream acquisitions are not.
- Output paths are basenames. The JSON sidecar records a filename, never an absolute path, so a sidecar pasted into an issue does not leak a filesystem layout.
License
BSD 3-Clause. See LICENSE.
Metadata
Release files for plate-overview 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| plate_overview-0.2.0.tar.gz | 144.0 kB | With provenance | Details for plate_overview-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| plate_overview-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for plate_overview-0.2.0-py3-none-any.whl |
Total release size: 168.7 kB
Release files / plate_overview-0.2.0.tar.gz
| Download URL | plate_overview-0.2.0.tar.gz |
|---|---|
| Size | 144.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c6dadb4877e9048b038fd9b5de7cbb3b7aaf85720ec551d5fee507d22a92d98f
|
|
BLAKE2b-256 checksum How to use checksums |
deb2cbf5dc49bebf440e3bbb6187c5bc4009aae021775afaaac7dc61c97e05e3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.
Transparency logRelease files / plate_overview-0.2.0-py3-none-any.whl
| Download URL | plate_overview-0.2.0-py3-none-any.whl |
|---|---|
| Size | 24.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6bcaff6a93d6393d4937d21a67476ddd92feb57ad2078f1dbf69db45feffcc8b
|
|
BLAKE2b-256 checksum How to use checksums |
7b0320d035ca5179484c024f315116325ad1bde18759b30acda965dd82784057
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.
Transparency logSecurity for plate-overview 0.2.0
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for plate_overview-0.2.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.
Transparency logA 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.