Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -1033,7 +1033,9 @@ functions the tests use.
(the normalization brick's `check_rgb`), else `rgb_not_possible` in a run.
- **Suggestion:** `rgb` only when every analysed image is a TIFF stored as RGB colour
(`TiffMetadata.rgb_samples`: photometric RGB, three samples per pixel, axis `S`), the
confirmed C role is on `S`, and RGB is possible. Never applied without confirmation.
confirmed C role is on `S`, and RGB is possible; in `check` and `run` also when the
published description declares every acquisition `rgb` (`declared_image_type`, v0.10.1:
OME-Zarr states no colour). Never applied without confirmation.
- **Notebook:** step 2's "Image type" card appears once the axis roles are confirmed
(also when embedded); radio buttons with the suggestion preselected, disabled at
fluorescence when RGB is impossible; `ConfirmToggle` **Yes, this is the right image
Expand Down
51 changes: 51 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,57 @@ The design is [`docs/design-v0.4.md`](docs/design-v0.4.md), imported unchanged f
are in [docs/plan.md](docs/plan.md) §12. (The v0.3 to v0.4 migration guide was removed in
v0.5.1: no run before v0.5.1 is read.)

## Unreleased (v0.10.1)

Patch release: command-line gaps a new user met before reaching the next brick (the clean
environment test of the v0.10.0 wave, 3 December 2026). No format change.

### Fixed

- **Fast `describe` with images fewer than three folder levels deep** no longer crashes
(`IndexError` in `cli_describe._unit_of`): images directly in condition folders
(`exp/condition_x/img.tif`, a documented layout) and an image in the experiment folder itself
(one OME-Zarr mosaic) take their unit from the discovered leaf folder (`single` for the missing
levels), as the draft does.
- **`check` reports an undeclared mask type** (an OME-Zarr label image, for example) as `run`
refuses it, `R_MASK_TYPE_NOT_DECLARED` with the same message and fix
(`physical_check.undeclared_mask_types`, shared); it exits with status 1, and the report it
writes records the error too. The message no
longer says "the masks folder" for label images, and its fix names the type found
(`--type cells=REPRESENTATION`, shell-quoted), never a guessed representation.
- **`declare-masks` names the right next commands:** without `--masks` it no longer prints
`run --masks MASKS`; OME-Zarr label images and masks beside the images need no masks folder,
and the experiment folder is named (`EXPERIMENT`) only when no run of the output folder
records it.
- **Fast `describe` prints "N open questions (answered by you, in the notebook)" only when
questions remain:** with `--accept-ids`, `--comparable` and `--confirmed-on` it says the
options answer them; otherwise it lists only the questions left, naming the options (an ID
with no proposal stays open: `--accept-ids` cannot answer it). Counts use `plural`.
- **The image-type suggestion of `check` and `run` follows the published description** when it
declares every acquisition `rgb` and RGB is possible (`image_type.declared_image_type`,
`review_image_type(..., declared=)`). An OME-Zarr copy written by
`convert_experiment(..., store="ome-zarr")` from RGB TIFFs cannot itself say it is RGB:
OME-NGFF 0.4 has no colour field (its `omero` colours are display only) and the conversion
record does not record it, so the suggestion cannot follow the converter; before, `run`
recorded such a run as `fluorescence` unless given `--image-type rgb`.

### Added

- **`describe --rgb-header-override [FOLDER]`** (fast mode, with `--image-type rgb`): records
`rgb_header_override = true` on every acquisition, or on the acquisition folders named
(repeatable), exactly as the notebook's Image type card does, for colour scanner TIFFs whose
header says *minisblack* (for example the Zenodo 4550300 cores). Refused with a channel list,
an unknown folder, a published description or `--strict`. Both forms
together are refused, and so is the option without `--channels` (the message says what is
missing). The fast-mode refusal of such images (`R_FAST_LAYOUT_CONTRADICTION`) names the RGB
header override once in its action (from a flag set when the issue is built, never a search
of the text), and `describe` adds a line naming the option; the shared texts that `run` also
prints name only the notebook, since a published description is changed there.
- **`convert --store ome-zarr`** writes every image that is read as an OME-Zarr copy (OME-NGFF
0.4, `<image>.ome.zarr`), as `convert_experiment(..., store="ome-zarr")` and the notebook do;
RGB TIFFs included. Default `ome-tiff`, as before. The user guide (§5) shows the H&E route:
`convert --store ome-zarr`, `describe --image-type rgb`, `run`.

## v0.10.0 (3 December 2026)

Minor release with a **breaking change of file format**: the histogram table is
Expand Down
2 changes: 1 addition & 1 deletion docs/contract.md
Original file line number Diff line number Diff line change
Expand Up @@ -911,7 +911,7 @@ plan N34); this brick suggests it, asks for it after the axis roles, and records
|---|---|
| Types | `fluorescence` (any number of channels, every pixel type) and `rgb` (exactly three channels of an integer pixel type, the rule of the normalization brick's `check_rgb`). |
| RGB samples | A TIFF image is stored as RGB colour when its first series has the photometric interpretation RGB with three samples per pixel (`tifffile` axis `S`; `TiffMetadata.rgb_samples`). RGB with an alpha sample, several grey samples and OME-Zarr images are not. |
| Suggestion | `rgb` when every analysed image is stored as RGB colour, the confirmed C role is on its samples axis, and `rgb` is possible; `fluorescence` otherwise. `review_image_type` gives the suggestion, why, and why `rgb` is not possible (from the headers and the confirmed axis roles; no pixels are read). |
| Suggestion | `rgb` when every analysed image is stored as RGB colour, the confirmed C role is on its samples axis, and `rgb` is possible; also `rgb` when the published description declares every acquisition `rgb` and `rgb` is possible (v0.10.1: OME-Zarr images, OME-Zarr copies of RGB TIFFs included, state no colour interpretation; `declared_image_type`); `fluorescence` otherwise. `review_image_type` gives the suggestion, why, and why `rgb` is not possible (from the headers and the confirmed axis roles; no pixels are read). |
| Confirmation | Never applied without the user's confirmation. The notebook proposes it at the quick scan (display only, from the headers; nothing is recorded there) and asks on the Channels step once the axis roles are confirmed (owner, 12 November 2026), pre-filled only when every header agrees and recorded only by a click (**Use for all folders**, or each folder); folders of different types are refused (`R_HETEROGENEOUS_LAYOUT_NOT_ENABLED`). Changing the axis roles or the folder asks again. The run takes the type the saved description states. The command line takes `--image-type`, or uses the suggestion and prints it. |
| Run | `run_experiment(..., image_type=...)` records the type and `channels_from_rgb_samples` in the manifest (§9). `rgb` for images that cannot be RGB is the error `rgb_not_possible`; any other value raises `ValueError`. Without a type the manifest records null. |
| Outputs | `plane_histograms.parquet` and `experiment_design.csv` do not depend on the type: a plane of an RGB image is one row with channels C0, C1 and C2, as for any image. Changing the type on a later run reads no image again. |
Expand Down
9 changes: 9 additions & 0 deletions docs/plan.md
Original file line number Diff line number Diff line change
Expand Up @@ -1819,3 +1819,12 @@ Raised during review; to be decided before the milestones that need them:
hashes is `RUN_FOLDER_CONTENT_NOT_RECORDED` (ahead of the ADR, Spec issue 84); masks stay
`fingerprint` for now (the run records no mask hash; a separate issue).

93. How should the command line close the gaps a new user met before the next brick (v0.10.1,
pull request 620)? *Decided (owner, 3 December 2026):* the image-type suggestion of `check`
and `run` follows the published description when it declares every acquisition `rgb` (no
marker is written into OME-Zarr copies: OME-NGFF 0.4 has no colour field); an image type
recorded by an earlier run still comes before the suggestion (`--image-type`, then the
recorded type, then the suggestion); `describe --rgb-header-override [FOLDER]` stays one
option, without a folder for every acquisition, with a folder (repeatable, relative to the
experiment) for that one; `check` reports an undeclared mask type as an error, as `run`
refuses it, and exits with status 1.
Loading
Loading