add stages to long_fastsurfer.sh#786
Conversation
There was a problem hiding this comment.
Pull request overview
This PR enhances the longitudinal pipeline driver long_fastsurfer.sh by adding a --stage flag to run individual pipeline stages independently (or the full pipeline by default), enabling splitting work across different compute resources (CPU/GPU) and improving restartability.
Changes:
- Added stage selection (
--stage) with a set of named pipeline stages and updated help text. - Added stage dependency checks and stage-aware input validation (e.g., only requiring
--t1sforprepare). - Wrapped each pipeline block (
prepare,template_seg,template_surf,long_seg,long_surf) behind stage gating logic.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
dkuegler
left a comment
There was a problem hiding this comment.
I think I would use should_run_stage also in the validation check function.
And at the end only print "Full" if it is actually the final stage.
Co-authored-by: David Kügler <david.kuegler@dzne.de>
Co-authored-by: David Kügler <david.kuegler@dzne.de>
Enhancement requested #780
Summary
Adds stage-based execution to
long_fastsurfer.sh, allowing users to run individual pipeline stages independently for flexible resource allocation across compute nodes with varying GPU/CPU capabilities.Changes
--stageflag to select which stages to run:prepare,template_seg,template_surf,long_seg,long_surf, orall(default)--t1swhen runningpreparestageUsage
Benefits