Skip to content

Commit e7a037e

Browse files
committed
Add docs_info to tasks
1 parent 02b4347 commit e7a037e

File tree

6 files changed

+30
-4
lines changed

6 files changed

+30
-4
lines changed

.copier-answers.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Do not edit - changes here will be overwritten by Copier
2-
_commit: v0.4.4
2+
_commit: v0.4.5
33
_src_path: gh:fractal-analytics-platform/fractal-tasks-template
44
author_email: [email protected]
55
author_name: Joel Luethi

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ authors = [
2727
# Required Python version and dependencies
2828
requires-python = ">=3.9"
2929
dependencies = [
30-
"fractal-tasks-core==1.3.3"
30+
"fractal-tasks-core==1.3.4"
3131
]
3232

3333
# Optional dependencies (e.g. for `pip install -e ".[dev]"`, see

src/fractal_helper_tasks/__FRACTAL_MANIFEST__.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"tags": [
1010
"Singleton time dimension"
1111
],
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. ",
1213
"executable_non_parallel": "drop_t_dimension.py",
1314
"meta_non_parallel": {
1415
"cpus_per_task": 2,
@@ -41,7 +42,6 @@
4142
"type": "object",
4243
"title": "DropTDimension"
4344
},
44-
"docs_info": "## drop_t_dimension\nDrops singleton t dimension.\n",
4545
"docs_link": "https://github.com/jluethi/fractal-helper-tasks"
4646
},
4747
{
@@ -53,6 +53,7 @@
5353
"Mixed modality",
5454
"2D to 3D workflows"
5555
],
56+
"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",
5657
"executable_parallel": "convert_2D_segmentation_to_3D.py",
5758
"meta_parallel": {
5859
"cpus_per_task": 2,
@@ -126,7 +127,6 @@
126127
"type": "object",
127128
"title": "Convert2dSegmentationTo3d"
128129
},
129-
"docs_info": "## convert_2D_segmentation_to_3D\nConvert 2D segmentation to 3D segmentation.\n\nThis task loads the 2D segmentation, replicates it along the Z slice and\nstores it back into the 3D OME-Zarr image.\n\nThis is a temporary workaround task, as long as we store 2D data in\na separate OME-Zarr file from the 3D data. If the 2D & 3D OME-Zarr images\nhave different suffixes in their name, use `image_suffix_2D_to_remove` &\n`image_suffix_3D_to_add`. If their base names are different, this task\ndoes not support processing them at the moment.\n\nIt makes the assumption that the 3D OME-Zarrs are stored in the same place\nas the 2D OME-Zarrs (same based folder).\n",
130130
"docs_link": "https://github.com/jluethi/fractal-helper-tasks"
131131
}
132132
],
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
### Purpose
2+
- Converts a **2D segmentation** image into a **3D segmentation** by replicating the 2D segmentation across Z-slices.
3+
- Supports OME-Zarr datasets where **2D and 3D images** share the same base name but differ by suffixes.
4+
- Optionally copies associated ROI tables and adjusts them to align with the replicated Z-dimensions.
5+
6+
### Outputs
7+
- A **3D segmentation label image** saved with a new name.
8+
- Updated **ROI tables** adjusted for Z-dimensions (optional).
9+
10+
### Limitations
11+
- Only supports **same-base 2D and 3D Zarr names**; full flexibility in file names is not yet implemented.
12+
- 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.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
### Purpose
2+
- Removes a **singleton time (T) dimension** from an OME-Zarr image.
3+
- Creates a new OME-Zarr image with updated metadata and dimensions.
4+
- Optionally overwrites the input image if `overwrite_input` is set to True.
5+
6+
### Outputs
7+
- A **new Zarr image** without the singleton T-dimension, stored with a configurable suffix.
8+
9+
### Limitations
10+
- Only processes OME-Zarr images where the **T-axis is the first axis**.
11+
- Assumes the T-dimension is **singleton**; does not process non-singleton time axes.
12+
- Does not copy associated **label images** or **ROI tables** to the new Zarr structure.

src/fractal_helper_tasks/dev/task_list.py

+2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
meta={"cpus_per_task": 2, "mem": 8000},
1010
output_types=dict(has_t=False),
1111
tags=["Singleton time dimension"],
12+
docs_info="file:docs_info/drop_t_dimension.md",
1213
),
1314
ParallelTask(
1415
input_types=dict(is_3D=False),
@@ -19,5 +20,6 @@
1920
"Mixed modality",
2021
"2D to 3D workflows",
2122
],
23+
docs_info="file:docs_info/2d_to_3d.md",
2224
),
2325
]

0 commit comments

Comments
 (0)