Skip to content
Merged
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
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,17 @@ Release notes and migration notes of `morphobricks-normalization`. Numbers are p
issues of [CellMigrationLab/morphobricks-normalization](https://github.com/CellMigrationLab/morphobricks-normalization).
The decisions are in [docs/plan.md](docs/plan.md) §12.

## Unreleased

- Tests: the vendored Spec test material (`tests/spec_fixtures`) is re-pinned from `cc9820f` to
MorphoBricks-Spec main `1167108`, regenerated with the Spec's `tools/vendor.py`. New fixtures
i136–i141, t14–t15, v39–v40; i111 is now the valid fixture v38 (`parent_labels`, owner
decision PL1); `docs/experiment-v1.md` (amendments PL1, RH1 `rgb_header_override`, BM11) and
`tools/audit/refval.py` changed. The copy equals the Spec at `bf68d30`, the pin of
morphobricks-preprocessing v0.7.0. Test material only: no library code, output, API, message or
`schema_version` changes (the library reads no experiment description; `tools/dump_outputs.py`
digests are unchanged).

## v0.7.1 (2026-11-17)

Patch release (#104, #105, #108): the per-bin work of integer planes is 1.3–1.5× faster, signed
Expand Down
8 changes: 4 additions & 4 deletions tests/spec_fixtures/PIN.toml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# The MorphoBricks-Spec commit these files are copied from (conformance plan section 1).
# Updating the pin is a reviewed change: see README.md in this folder.
repository = "https://github.com/CellMigrationLab/MorphoBricks-Spec"
commit = "cc9820f5b84f01bbbb5c8e3f54e70ee13cb5e9eb"
commit = "1167108ffb5b71f5d8f4fb9ef685988e328a78ba"

# `git rev-parse <commit>:fixtures`, the git tree-object ID of the fixtures/ folder. The
# vendored folder must hash to it, so one changed, added or missing byte fails a test.
fixtures_tree = "40fe48c6d735266ca7608fab0c3a564affc68171"
fixtures_tree = "c9e27f763789ad30d3b5d04bead2a82d84125250"

# `git rev-parse <commit>:<path>`, the git blob ID of each other vendored file.
[files]
"docs/experiment-v1.md" = "d21388ad9e48608ce42adb0f7b0a4c600cb2c9a7"
"tools/audit/refval.py" = "0ea83094cfa8c1bcb6ea596e17b3f0c948ad5dfb"
"docs/experiment-v1.md" = "caf74376265b8abbed7357baacd26f5516485a94"
"tools/audit/refval.py" = "8fcb429ae95dd0d2c1819685b3eeec720b1c712c"
"tools/audit/refrecords.py" = "ef06a1ea59a93c695dbba21d2ee792667ad8e8eb"
118 changes: 102 additions & 16 deletions tests/spec_fixtures/docs/experiment-v1.md

Large diffs are not rendered by default.

44 changes: 33 additions & 11 deletions tests/spec_fixtures/fixtures/README.md

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# Fixture i136_representation_grouped
# Expected: E_ENUM
# Source: Owner decision PL1
# `representation = "grouped"`: `grouped` is the mask step's suggested kind (evidence), not a representation; the value is `parent_labels`.
schema = "morphobricks-experiment"
schema_version = 1

[conditions.CTRL]
source_folder = "CTRL"

[channels.DNA]
display_name = "DAPI"

[channels.RNA]
display_name = "SYTO 14"

[repeats.rep1]
confirmed = true
confirmed_on = "2026-11-11"

[repeats.rep1.members.CTRL]
source_repeat = "rep1"
image_count = 9

[repeats.rep1.members.CTRL.technical_repeats.single]
source_folder = "single"
channels = ["DNA", "RNA"]

[masks.Nucleoli]
source_type = "nucleoli"
representation = "grouped"
source_channels = ["RNA"]

[used_ids]
conditions = ["CTRL"]
channels = ["DNA", "RNA"]
repeats = ["rep1"]
technical_repeats = ["single"]
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Fixture i137_representation_parent_labels_case
# Expected: E_ENUM
# Source: Owner decision PL1
# `representation = "Parent_Labels"`: the enumeration is exact and lower case, never case-folded.
schema = "morphobricks-experiment"
schema_version = 1

[conditions.CTRL]
source_folder = "CTRL"

[channels.DNA]
display_name = "DAPI"

[channels.RNA]
display_name = "SYTO 14"

[repeats.rep1]
confirmed = true
confirmed_on = "2026-11-11"

[repeats.rep1.members.CTRL]
source_repeat = "rep1"
image_count = 9

[repeats.rep1.members.CTRL.technical_repeats.single]
source_folder = "single"
channels = ["DNA", "RNA"]

[masks.Nucleoli]
source_type = "nucleoli"
representation = "Parent_Labels"

[used_ids]
conditions = ["CTRL"]
channels = ["DNA", "RNA"]
repeats = ["rep1"]
technical_repeats = ["single"]
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# Fixture i138_mask_grouped_by_field
# Expected: E_UNKNOWN_FIELD
# Source: Owner decision PL1
# A `parent_labels` mask naming its grouping mask (`grouped_by = "Nuclei"`): v1 has no relationship field; the parent is named by the consumer's request (experiment-v1 4.5b).
schema = "morphobricks-experiment"
schema_version = 1

[conditions.CTRL]
source_folder = "CTRL"

[channels.DNA]
display_name = "DAPI"

[channels.RNA]
display_name = "SYTO 14"

[repeats.rep1]
confirmed = true
confirmed_on = "2026-11-11"

[repeats.rep1.members.CTRL]
source_repeat = "rep1"
image_count = 9

[repeats.rep1.members.CTRL.technical_repeats.single]
source_folder = "single"
channels = ["DNA", "RNA"]

[masks.Nuclei]
source_type = "nuclei"
representation = "instances"
source_channels = ["DNA"]

[masks.Nucleoli]
source_type = "nucleoli"
representation = "parent_labels"
grouped_by = "Nuclei"

[used_ids]
conditions = ["CTRL"]
channels = ["DNA", "RNA"]
repeats = ["rep1"]
technical_repeats = ["single"]
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# Fixture i139_parent_labels_support_in_file
# Expected: E_UNKNOWN_FIELD
# Source: Owner decision PL1
# `parent_labels_support = true` at the top level: support is a capability the receiving brick declares (experiment-v1 4.5b), never a statement of the description.
schema = "morphobricks-experiment"
schema_version = 1
parent_labels_support = true

[conditions.CTRL]
source_folder = "CTRL"

[channels.DNA]
display_name = "DAPI"

[channels.RNA]
display_name = "SYTO 14"

[repeats.rep1]
confirmed = true
confirmed_on = "2026-11-11"

[repeats.rep1.members.CTRL]
source_repeat = "rep1"
image_count = 9

[repeats.rep1.members.CTRL.technical_repeats.single]
source_folder = "single"
channels = ["DNA", "RNA"]

[masks.Nucleoli]
source_type = "nucleoli"
representation = "parent_labels"

[used_ids]
conditions = ["CTRL"]
channels = ["DNA", "RNA"]
repeats = ["rep1"]
technical_repeats = ["single"]
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
# Fixture i140_rgb_override_without_rgb
# Expected: E_RGB_OVERRIDE_WITHOUT_RGB
# Source: Owner decision RH1
# A unit of an ordinary channel image (no `image_type`) declares `rgb_header_override = true`: the override exists only for units declared `rgb`.
schema = "morphobricks-experiment"
schema_version = 1

[conditions.CTRL]
source_folder = "CTRL"
display_name = "Control"

[conditions.DrugA]
source_folder = "DrugA"
display_name = "Drug A"
reference = "CTRL"

[channels.DAPI]
display_name = "DAPI"

[repeats.rep1]
confirmed = true
confirmed_on = "2026-11-06"

[repeats.rep1.members.CTRL]
source_repeat = "rep1"
image_count = 8

[repeats.rep1.members.CTRL.technical_repeats.single]
source_folder = "single"
channels = ["DAPI"]
rgb_header_override = true

[repeats.rep1.members.DrugA]
source_repeat = "rep1"
image_count = 8

[repeats.rep1.members.DrugA.technical_repeats.single]
source_folder = "single"
channels = ["DAPI"]

[repeats.rep2]
confirmed = true
confirmed_on = "2026-11-06"

[repeats.rep2.members.CTRL]
source_repeat = "rep2"
image_count = 8

[repeats.rep2.members.CTRL.technical_repeats.single]
source_folder = "single"
channels = ["DAPI"]

[repeats.rep2.members.DrugA]
source_repeat = "rep2"
image_count = 8

[repeats.rep2.members.DrugA.technical_repeats.single]
source_folder = "single"
channels = ["DAPI"]

[masks.Nuclei]
source_type = "nuclei"
representation = "instances"

[used_ids]
conditions = ["CTRL", "DrugA"]
channels = ["DAPI"]
repeats = ["rep1", "rep2"]
technical_repeats = ["single"]
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
# Fixture i141_rgb_override_not_boolean
# Expected: E_TYPE
# Source: Owner decision RH1
# `rgb_header_override = "true"`: a string is never read as a boolean (no conversion).
schema = "morphobricks-experiment"
schema_version = 1

[conditions.CTRL]
source_folder = "CTRL"
display_name = "Control"

[conditions.DrugA]
source_folder = "DrugA"
display_name = "Drug A"
reference = "CTRL"

[channels.R]
display_name = "Red"

[channels.G]
display_name = "Green"

[channels.B]
display_name = "Blue"

[repeats.rep1]
confirmed = true
confirmed_on = "2026-11-06"

[repeats.rep1.members.CTRL]
source_repeat = "rep1"
image_count = 8

[repeats.rep1.members.CTRL.technical_repeats.single]
source_folder = "single"
channels = ["R", "G", "B"]
image_type = "rgb"
rgb_header_override = "true"

[repeats.rep1.members.DrugA]
source_repeat = "rep1"
image_count = 8

[repeats.rep1.members.DrugA.technical_repeats.single]
source_folder = "single"
channels = ["R", "G", "B"]
image_type = "rgb"

[repeats.rep2]
confirmed = true
confirmed_on = "2026-11-06"

[repeats.rep2.members.CTRL]
source_repeat = "rep2"
image_count = 8

[repeats.rep2.members.CTRL.technical_repeats.single]
source_folder = "single"
channels = ["R", "G", "B"]
image_type = "rgb"

[repeats.rep2.members.DrugA]
source_repeat = "rep2"
image_count = 8

[repeats.rep2.members.DrugA.technical_repeats.single]
source_folder = "single"
channels = ["R", "G", "B"]
image_type = "rgb"

[masks.Nuclei]
source_type = "nuclei"
representation = "instances"

[used_ids]
conditions = ["CTRL", "DrugA"]
channels = ["B", "G", "R"]
repeats = ["rep1", "rep2"]
technical_repeats = ["single"]
Loading
Loading