Skip to content

Commit 124d9ac

Browse files
jo-muellerdstansby
andauthored
Unify input output (ome#117)
* schemas: introduced central InputOutput object definition * tests: use correct InputOutput everywhere * docs: update examples for correct InputOutput syntax * chore: Updated version to 0.6.dev4 everywhere * specification: Unifiy input/output of transformations to object with name/path * chore: update version history * specification: improve clarity * chore: fix typos * Update index.md Co-authored-by: David Stansby <dstansby@gmail.com> * Update index.md Co-authored-by: David Stansby <dstansby@gmail.com> * specification: Clarify constraintsfor input/output in additional transforms * Update index.md Co-authored-by: David Stansby <dstansby@gmail.com> * Update index.md Co-authored-by: David Stansby <dstansby@gmail.com> * Update index.md Co-authored-by: David Stansby <dstansby@gmail.com> * Update index.md Co-authored-by: David Stansby <dstansby@gmail.com> * chore: Clearer on language * chore: Improve readability on multiscale transform input/output constraints * specification: allow sequence in labels transforms * doc: update and expand examples * enh: Add table with metadata fields * enh: avoid instances of "intrinsic before definition * enh: improve formatting of multiscales section * enh: combine labels examples into single example * chore: Update example title * specification: Weaken requirements regarding linkage of labels and image * enh: improve formatting * chore: typo * chore: clearer language * chore: language clarification * specification: Clarify omission of path * chore: update examples --------- Co-authored-by: David Stansby <dstansby@gmail.com>
1 parent 4fc7355 commit 124d9ac

272 files changed

Lines changed: 1053 additions & 773 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '0.6.dev3'
1+
__version__ = '0.6.dev4'

examples/bf2raw/image.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"node_type": "group",
44
"attributes": {
55
"ome": {
6-
"version": "0.6.dev3",
6+
"version": "0.6.dev4",
77
"bioformats2raw.layout": 3
88
}
99
}

examples/bf2raw/plate.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"node_type": "group",
44
"attributes": {
55
"ome": {
6-
"version": "0.6.dev3",
6+
"version": "0.6.dev4",
77
"bioformats2raw.layout": 3,
88
"plate": {
99
"columns": [

examples/label_strict/colors_properties.json

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,34 @@
33
"node_type": "group",
44
"attributes": {
55
"ome": {
6-
"version": "0.6.dev3",
6+
"version": "0.6.dev4",
7+
"multiscales": [
8+
{
9+
"coordinateSystems": [
10+
{
11+
"name": "physical",
12+
"axes": [
13+
{"name": "z", "unit": "micrometer"},
14+
{"name": "y", "unit": "micrometer"},
15+
{"name": "x", "unit": "micrometer"}
16+
]
17+
}
18+
],
19+
"datasets": [
20+
{
21+
"path": "s0",
22+
"coordinateTransformations": [
23+
{
24+
"type": "scale",
25+
"scale": [0.5, 0.5, 1],
26+
"input": {"path": "s0"},
27+
"output": {"name": "physical"}
28+
}
29+
]
30+
}
31+
]
32+
}
33+
],
734
"image-label": {
835
"colors": [
936
{

examples/multiscales_strict/multiscales_example.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"node_type": "group",
44
"attributes": {
55
"ome": {
6-
"version": "0.6.dev3",
6+
"version": "0.6.dev4",
77
"multiscales": [
88
{
99
"name": "example",
@@ -28,8 +28,8 @@
2828
// and the time unit (0.1 milliseconds), which is the same for each scale level
2929
"type": "scale",
3030
"scale": [0.1, 1.0, 0.5, 0.5, 0.5],
31-
"input": "s0",
32-
"output": "intrinsic"
31+
"input": {"path": "s0"},
32+
"output": {"name": "intrinsic"}
3333
}
3434
]
3535
},
@@ -41,8 +41,8 @@
4141
// and the time unit (0.1 milliseconds), which is the same for each scale level
4242
"type": "scale",
4343
"scale": [0.1, 1.0, 1.0, 1.0, 1.0],
44-
"input": "s1",
45-
"output": "intrinsic"
44+
"input": {"path": "s1"},
45+
"output": {"name": "intrinsic"}
4646
}
4747
]
4848
},
@@ -54,8 +54,8 @@
5454
// and the time unit (0.1 milliseconds), which is the same for each scale level
5555
"type": "scale",
5656
"scale": [0.1, 1.0, 2.0, 2.0, 2.0],
57-
"input": "s2",
58-
"output": "intrinsic"
57+
"input": {"path": "s2"},
58+
"output": {"name": "intrinsic"}
5959
}
6060
]
6161
}

examples/multiscales_strict/multiscales_example_relative.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"multiscales": [
33
{
4-
"version": "0.6.dev3",
4+
"version": "0.6.dev4",
55
"name": "example",
66
"coordinateSystems" : [
77
{
@@ -33,8 +33,8 @@
3333
"coordinateTransformations": [{
3434
"type": "scale",
3535
"scale": [1, 1, 1, 1, 1],
36-
"input": "s0",
37-
"output": "intrinsic"
36+
"input": {"path": "s0"},
37+
"output": {"name": "intrinsic"}
3838
}]
3939
},
4040
{
@@ -43,8 +43,8 @@
4343
// the second scale level (downscaled by a factor of 2 relative to "s0" in zyx)
4444
"type": "scale",
4545
"scale": [1, 1, 2, 2, 2],
46-
"input" : "s1",
47-
"output" : "intrinsic"
46+
"input" : {"path": "s1"},
47+
"output" : {"name": "intrinsic"}
4848
}]
4949
},
5050
{
@@ -53,8 +53,8 @@
5353
// the third scale level (downscaled by a factor of 4 relative to "s0" in zyx)
5454
"type": "scale",
5555
"scale": [1, 1, 4, 4, 4],
56-
"input" : "s2",
57-
"output" : "intrinsic"
56+
"input" : {"path": "s2"},
57+
"output" : {"name": "intrinsic"}
5858
}]
5959
}
6060
],
@@ -63,8 +63,8 @@
6363
"name": "additional_translation",
6464
"type": "translation",
6565
"translation": [0, 0, 10, 20, 30],
66-
"input": "intrinsic",
67-
"output": "world"
66+
"input": {"name": "intrinsic"},
67+
"output": {"name": "world"}
6868
}
6969
]
7070
}
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
{
2+
"ome": {
3+
"version": "0.6.dev4",
4+
"multiscales": [
5+
{
6+
"name": "Image",
7+
"datasets": [
8+
{
9+
"path": "s0",
10+
"coordinateTransformations": [
11+
{
12+
"type": "scale",
13+
"scale": [0.5, 0.5, 1],
14+
"input": {"path": "s0"},
15+
"output": {"name": "physical"}
16+
}
17+
]
18+
}
19+
],
20+
"coordinateSystems": [
21+
{
22+
"name": "physical",
23+
"axes": [
24+
{"name": "z", "unit": "micrometer"},
25+
{"name": "y", "unit": "micrometer"},
26+
{"name": "x", "unit": "micrometer"}
27+
]
28+
}
29+
],
30+
"coordinateTransformations": [
31+
{
32+
"type": "identity",
33+
"input": {"path": "labels/cell_segmentation","name": "physical"},
34+
"output": {"name": "physical"}
35+
}
36+
]
37+
}
38+
]
39+
}
40+
}

examples/multiscales_strict/multiscales_transformations.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"node_type": "group",
44
"attributes": {
55
"ome": {
6-
"version": "0.6.dev3",
6+
"version": "0.6.dev4",
77
"multiscales": [
88
{
99
"coordinateSystems": [
@@ -45,8 +45,8 @@
4545
{
4646
"scale": [1, 1],
4747
"type": "scale",
48-
"input": "s0",
49-
"output": "intrinsic"
48+
"input": {"path": "s0"},
49+
"output": {"name": "intrinsic"}
5050
}
5151
]
5252
}
@@ -55,8 +55,8 @@
5555
{
5656
"scale": [10, 10],
5757
"type": "scale",
58-
"input": "intrinsic",
59-
"output": "physical"
58+
"input": {"name": "intrinsic"},
59+
"output": {"name": "physical"}
6060
}
6161
],
6262
"name": "image_with_coordinateTransformations",

examples/ome/series-2.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"node_type": "group",
44
"attributes": {
55
"ome": {
6-
"version": "0.6.dev3",
6+
"version": "0.6.dev4",
77
"series": ["0", "1"]
88
}
99
}

examples/plate_strict/plate_2wells.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"node_type": "group",
44
"attributes": {
55
"ome": {
6-
"version": "0.6.dev3",
6+
"version": "0.6.dev4",
77
"plate": {
88
"acquisitions": [
99
{

0 commit comments

Comments
 (0)