You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
5. If you add a new task, you should also add a new item to the `task_list`
46
-
property in `src/fractal_helper_tasks/__FRACTAL_MANIFEST__.json`. A minimal example
47
-
may look like
48
-
```json
49
-
{
50
-
"name": "My Second Task",
51
-
"executable": "my_second_task.py",
52
-
"input_type": "zarr",
53
-
"output_type": "zarr",
54
-
"meta": {
55
-
"some-property": "some-value"
56
-
},
57
-
}
58
-
```
59
-
Notes:
60
-
61
-
* After adding a task, you should also update the manifest (see point 4 above).
62
-
* The minimal example above also includes the `meta` task property; this is optional, and you can remove it if it is not needed.
63
-
64
-
6. Run the test suite (with somewhat verbose logging) through
65
-
```console
66
-
python -m pytest --log-cli-level info -s
67
-
```
68
-
7. Build the package through
69
-
```console
70
-
python -m build
71
-
```
72
-
This command will create the release distribution files in the `dist` folder.
73
-
The wheel one (ending with `.whl`) is the one you can use to collect your tasks
74
-
within Fractal.
17
+
Refer to the developers-guide in the [Fractal template repo](https://github.com/fractal-analytics-platform/fractal-tasks-template/blob/main/DEVELOPERS_GUIDE.md) for more detailed instructions.
Copy file name to clipboardExpand all lines: src/fractal_helper_tasks/__FRACTAL_MANIFEST__.json
+7-10Lines changed: 7 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,6 @@
10
10
"Singleton time dimension"
11
11
],
12
12
"docs_info": "### Purpose\n- Removes a **singleton time (T) dimension** from an OME-Zarr image. \n- Creates a new OME-Zarr image with updated metadata and dimensions.\n- Optionally overwrites the input image if `overwrite_input` is set to True.\n\n### Outputs\n- A **new Zarr image** without the singleton T-dimension, stored with a configurable suffix. \n\n### Limitations\n- Only processes OME-Zarr images where the **T-axis is the first axis**. \n- Assumes the T-dimension is **singleton**; does not process non-singleton time axes. \n- Does not copy associated **label images** or **ROI tables** to the new Zarr structure. ",
13
-
"type": "parallel",
14
13
"executable_parallel": "drop_t_dimension.py",
15
14
"meta_parallel": {
16
15
"cpus_per_task": 2,
@@ -58,7 +57,6 @@
58
57
"2D to 3D workflows"
59
58
],
60
59
"docs_info": "### Purpose\n- Converts a **2D segmentation** image into a **3D segmentation** by replicating the 2D segmentation across Z-slices. \n- Supports OME-Zarr datasets where **2D and 3D images** share the same base name but differ by suffixes. \n- Optionally copies associated ROI tables and adjusts them to align with the replicated Z-dimensions. \n\n### Outputs\n- A **3D segmentation label image** saved with a new name. \n- Updated **ROI tables** adjusted for Z-dimensions (optional). \n\n### Limitations\n- Only supports **same-base 2D and 3D Zarr names**; full flexibility in file names is not yet implemented. \n- Assumes **2D OME-Zarr images** and corresponding 3D images are stored in the same base folder and just differ with a suffix before the .zarr. \n",
"description": "Name of the label to copy from 2D OME-Zarr to 3D OME-Zarr"
79
77
},
80
78
"level": {
81
-
"default": 0,
79
+
"default": "0",
82
80
"title": "Level",
83
-
"type": "integer",
84
-
"description": "Level of the 2D OME-Zarr label to copy from"
81
+
"type": "string",
82
+
"description": "Level of the 2D OME-Zarr label to copy from. Valid choices are \"0\", \"1\", etc. (depending on which levels are available in the OME-Zarr label)."
85
83
},
86
-
"ROI_tables_to_copy": {
84
+
"tables_to_copy": {
87
85
"items": {
88
86
"type": "string"
89
87
},
90
-
"title": "Roi Tables To Copy",
88
+
"title": "Tables To Copy",
91
89
"type": "array",
92
-
"description": "List of ROI table names to copy from 2D OME-Zarr to 3D OME-Zarr"
90
+
"description": "List of tables to copy from 2D OME-Zarr to 3D OME-Zarr"
93
91
},
94
92
"new_label_name": {
95
93
"title": "New Label Name",
@@ -100,7 +98,7 @@
100
98
"items": {},
101
99
"title": "New Table Names",
102
100
"type": "array",
103
-
"description": "Optionally overwriting the names of the ROI tables in the 3D OME-Zarr"
101
+
"description": "Optionally overwriting the names of the tables in the 3D OME-Zarr"
104
102
},
105
103
"plate_suffix": {
106
104
"default": "_mip",
@@ -146,7 +144,6 @@
146
144
"Many files"
147
145
],
148
146
"docs_info": "### Purpose\n- Rechunks OME-Zarr to new chunking parameters: Changes whether the array is stored as many small files or few larger files.\n- Optionally applies the same rechunking to label images.\n\n### Outputs\n- A **new Zarr image** that is rechunked.\n",
0 commit comments