Skip to content

Add Elastix (registration) algroithm - #196

Open
helia77 wants to merge 2 commits into
mainfrom
feature/elastix_registration
Open

helia77 wants to merge 2 commits into
mainfrom
feature/elastix_registration

Conversation

@helia77

@helia77 helia77 commented Jul 30, 2026

Copy link
Copy Markdown
Collaborator

What

Adds the Bilayers spec for Elastix algorithm: a toolbox for rigid and nonrigid registration of images.

Two Docker images exist: one provided by the authors and one from Biocontainers. The author image has a more recent version, so we used that one.

⚠️ Depends on three bilayers-targets PRs

This algorithm does not work until all of these land:

PR Why it's required
feature/filelist-input Elastix marks a file-list input with an empty folder_name. Before this PR, a spec with no folder_name was treated as broken. It also stops Streamlit crashing when it tried to make a directory named "".
fix/python-env The elastix image ships Ubuntu 20.04 with Python 3.8, but our code needs Python >=3.9 for its modern type hints. An intermediate Dockerfile that pulls a standalone Python build was added, This PR has required changes to work with this middle Dockerfile.
fix/jupyter-output Elastix needs its output folder to exist before it runs, or the command dies with exit code 254. Jupyter did not. This PR makes the Jupyter template create output dirs before running.

Suggested merge order: fix/python-env → feature/filelist-input → fix/jupyter-output → this PR.

helia77 added 2 commits July 30, 2026 11:10
The current Dockerfile follows a symlink to python3.9 by apt-get installing it since the base image doesn't ship any Python and the Ubuntu20.04 pulls Python3.8 by default that fails on our modern type hints (3.9+). A future alternative is to wget python standalone distribution as a genenric type for future base images with no python
@helia77 helia77 added this to the 1.0.0-core milestone Jul 30, 2026
@helia77
helia77 requested a review from gnodar01 July 30, 2026 21:57
@helia77 helia77 added 1.0.0 and removed 1.0.0 labels Jul 30, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant