Segmentation of Anatomical Structures in Medical Images

imaging-dicom-anatomical-3d/dicom-anatomical-3d

Author(s)
Leonid Kostrykin
version Version
1
last_modification Last updated
Feb 26, 2026
license License
MIT
galaxy-tags Tags
imaging

Features
Tutorial
hands_on Segmentation of Anatomical Structures in Medical 3-D Images

Workflow Testing
Tests: ✅
Results: Not yet automated
FAIRness purl PURL
https://gxy.io/GTN:
RO-Crate logo with flask Download Workflow RO-Crate
Launch in Tutorial Mode question
galaxy-download Download
flowchart TD
  0["ℹ️ Input Parameter\nbones_threshold_huv"];
  style 0 fill:#ded,stroke:#393,stroke-width:4px;
  1["ℹ️ Input Parameter\ny_tol_bones_px"];
  style 1 fill:#ded,stroke:#393,stroke-width:4px;
  2["ℹ️ Input Collection\ndicom_series"];
  style 2 stroke:#2c3143,stroke-width:4px;
  3["Create header"];
  4["Compose text parameter value"];
  1 -->|output| 4;
  5["Convert DICOM to TIFF"];
  2 -->|output| 5;
  6["Add ”centroid_y” rule"];
  3 -->|outfile| 6;
  7["Add ”label” rule"];
  3 -->|outfile| 7;
  8["Concatenate images or channels"];
  5 -->|output| 8;
  9["Convert"];
  6 -->|outfile| 9;
  10["Convert"];
  7 -->|outfile| 10;
  11["Scale image"];
  8 -->|output| 11;
  12["Clip image intensities"];
  11 -->|output| 12;
  13["Threshold image"];
  12 -->|output| 13;
  0 -->|output| 13;
  14["Apply ridge filter"];
  12 -->|output| 14;
  15["Convert binary image to label map"];
  13 -->|output| 15;
  16["Threshold image"];
  14 -->|output| 16;
  17["Extract image features"];
  15 -->|output| 17;
  18["Convert binary image to label map"];
  16 -->|output| 18;
  19["Query Tabular"];
  17 -->|output| 19;
  20["Extract image features"];
  18 -->|output| 20;
  21["Compute"];
  19 -->|output| 21;
  4 -->|out1| 21;
  22["Query Tabular"];
  20 -->|output| 22;
  23["Parse parameter value"];
  21 -->|out_file1| 23;
  24["Parse parameter value"];
  22 -->|output| 24;
  25["Replace Text"];
  9 -->|out_file1| 25;
  23 -->|text_param| 25;
  26["Replace Text"];
  10 -->|out_file1| 26;
  24 -->|text_param| 26;
  27["Filter label map by rules"];
  17 -->|output| 27;
  15 -->|output| 27;
  25 -->|outfile| 27;
  8fa03bee-9e05-4f98-9816-20a6ab4d37cb["Output\nsegm_bones"];
  27 --> 8fa03bee-9e05-4f98-9816-20a6ab4d37cb;
  style 8fa03bee-9e05-4f98-9816-20a6ab4d37cb stroke:#2c3143,stroke-width:4px;
  28["Filter label map by rules"];
  20 -->|output| 28;
  18 -->|output| 28;
  26 -->|outfile| 28;
  9d82b7c6-8f5c-4523-aac2-21ec66030e62["Output\nsegm_aorticbif"];
  28 --> 9d82b7c6-8f5c-4523-aac2-21ec66030e62;
  style 9d82b7c6-8f5c-4523-aac2-21ec66030e62 stroke:#2c3143,stroke-width:4px;

Inputs

Input Label
Input parameter bones_threshold_huv
Input parameter y_tol_bones_px
Input dataset collection dicom_series

Outputs

From Output Label
toolshed.g2.bx.psu.edu/repos/imgteam/2d_filter_segmentation_by_features/ip_2d_filter_segmentation_by_features/0.7.3+galaxy1 Filter label map by rules
toolshed.g2.bx.psu.edu/repos/imgteam/2d_filter_segmentation_by_features/ip_2d_filter_segmentation_by_features/0.7.3+galaxy1 Filter label map by rules

Tools

Tool Links
Convert characters1
param_value_from_file
toolshed.g2.bx.psu.edu/repos/bgruening/add_line_to_file/add_line_to_file/0.1.0 View in ToolShed
toolshed.g2.bx.psu.edu/repos/bgruening/text_processing/tp_replace_in_line/9.5+galaxy2 View in ToolShed
toolshed.g2.bx.psu.edu/repos/bgruening/text_processing/tp_text_file_with_recurring_lines/9.5+galaxy2 View in ToolShed
toolshed.g2.bx.psu.edu/repos/devteam/column_maker/Add_a_column1/2.1 View in ToolShed
toolshed.g2.bx.psu.edu/repos/imgteam/2d_auto_threshold/ip_threshold/0.25.2+galaxy0 View in ToolShed
toolshed.g2.bx.psu.edu/repos/imgteam/2d_feature_extraction/ip_2d_feature_extraction/0.25.2+galaxy1 View in ToolShed
toolshed.g2.bx.psu.edu/repos/imgteam/2d_filter_segmentation_by_features/ip_2d_filter_segmentation_by_features/0.7.3+galaxy1 View in ToolShed
toolshed.g2.bx.psu.edu/repos/imgteam/binary2labelimage/ip_binary_to_labelimage/0.7.3+galaxy0 View in ToolShed
toolshed.g2.bx.psu.edu/repos/imgteam/clip_image/clip_image/0.7.3+galaxy0 View in ToolShed
toolshed.g2.bx.psu.edu/repos/imgteam/concat_channels/ip_concat_channels/0.5 View in ToolShed
toolshed.g2.bx.psu.edu/repos/imgteam/highdicom_dicom2tiff/highdicom_dicom2tiff/0.27.0+galaxy0 View in ToolShed
toolshed.g2.bx.psu.edu/repos/imgteam/ridge_filter/ridge_filter_skimage/0.22.0+galaxy2 View in ToolShed
toolshed.g2.bx.psu.edu/repos/imgteam/scale_image/ip_scale_image/0.25.2+galaxy0 View in ToolShed
toolshed.g2.bx.psu.edu/repos/iuc/compose_text_param/compose_text_param/0.1.1 View in ToolShed
toolshed.g2.bx.psu.edu/repos/iuc/query_tabular/query_tabular/3.3.2 View in ToolShed

To use these workflows in Galaxy you can either click the links to download the workflows, or you can right-click and copy the link to the workflow which can be used in the Galaxy form to import workflows.

Importing into Galaxy

Below are the instructions for importing these workflows directly into your Galaxy server of choice to start using them!
Hands On: Importing a workflow
  1. Click on galaxy-workflows-activity Workflows in the Galaxy activity bar (on the left side of the screen, or in the top menu bar of older Galaxy instances). You will see a list of all your workflows
  2. Click on galaxy-upload Import at the top-right of the screen
  3. Provide your workflow
    • Option 1: Paste the URL of the workflow into the box labelled “Archived Workflow URL”
    • Option 2: Upload the workflow file in the box labelled “Archived Workflow File”
  4. Click the Import workflow button

Below is a short video demonstrating how to import a workflow from GitHub using this procedure:

Video: Importing a workflow from URL

Version History

Version Commit Time Comments
5 478e78c17 2026-01-13 21:18:16 Update workflow creator
4 f72346c5b 2026-01-13 20:37:33 Add tests
3 2c6cdf178 2026-01-13 20:17:04 Add workflow `creator` and `tags`
2 19b3f2ece 2026-01-13 15:31:50 Add renderings
1 e3eea3e54 2026-01-12 23:33:20 Start `dicom-anatomical-3d` tutorial

For Admins

Installing the workflow tools

wget https://training.galaxyproject.org/training-material/topics/imaging/tutorials/dicom-anatomical-3d/workflows/dicom-anatomical-3d.ga -O workflow.ga
workflow-to-tools -w workflow.ga -o tools.yaml
shed-tools install -g GALAXY -a API_KEY -t tools.yaml
workflow-install -g GALAXY -a API_KEY -w workflow.ga --publish-workflows