Skip to content

Add MNI152NLin2009cAsym to default output spaces - #1217

Open
tsalo wants to merge 2 commits into
mainfrom
default-mni-output-space
Open

tsalo wants to merge 2 commits into
mainfrom
default-mni-output-space

Conversation

@tsalo

@tsalo tsalo commented Nov 30, 2026 •

Copy link
Copy Markdown
Member

Changes proposed in this pull request

Without --output-spaces, QSIPrep 26.2 writes only acpc:res-nativemin, so it writes no template transforms (#1127, #1205). QSIRecon needs the MNI152NLin2009cAsym transforms: on default QSIPrep outputs it stops the build for --atlases and for every template_map node (the built-in abcd_recon, hbcd_scalar_maps, ss3t_fod_autotrack and test_scalar_maps specs), and silently leaves the ODF figures out of its reports. PennLINC/qsirecon#439 makes QSIRecon's error say so.

  • New default: --output-spaces acpc:res-nativemin MNI152NLin2009cAsym (DEFAULT_OUTPUT_SPACES in qsiprep/utils/spaces.py). The template is listed without a resolution, so its anatomicals are written on the template's field of view at the anatomical's own voxel size, with no res- entity, and the from-ACPC_to-MNI152NLin2009cAsym / from-MNI152NLin2009cAsym_to-ACPC transforms are written. This brings back the anatomical nonlinear normalization that default runs skipped in 26.2.
  • --infant is unchanged: it adds MNIInfant:cohort-auto when no infant template is listed, so an infant run without --output-spaces now writes both the adult and the infant transforms, and MNIInfant still anchors AC-PC alignment.
  • An explicit --output-spaces replaces the whole default, as before. --output-spaces acpc:res-2mm still writes no template and skips the normalization (unless fieldmap-less SDC needs it).
  • DEFAULT_ANCHOR now refers to the same DEFAULT_TEMPLATE constant.

Testing

  • qsiprep/tests/test_utils_spaces.py: the default, --infant without --output-spaces, an explicit list without a template, and config.workflow.parsed_output_spaces().
  • Full unit suite locally: 1873 passed. The 7 failures and errors are local-environment only (no ANTs on PATH, test data directory unset) and do not touch output spaces.
  • Not run: the integration tests. Default runs in CI will now include the MNI152NLin2009cAsym normalization.

Documentation that should be reviewed

  • docs/running.rst, "Output spaces and resolutions": the new default, how --infant adds to it, and that an explicit list replaces it.
  • docs/upgrading.rst: the --output-spaces entry and the "Output resolution" behavior change.

Use of LLM tools

Required: check exactly one option. A CI check fails until exactly one box is checked.

  • No LLM tools were used in this pull request.
  • LLM tools were used to generate at least part of the content of this pull request.
  • This pull request was generated entirely by an LLM.

Required: check the below if and only if you are a human. Contributions from bot accounts will not be accepted.
A CI check fails if this box is not checked.

  • I am a human being and I both understand and support the changes I propose in this pull request.

🤖 Generated with Claude Code

Without --output-spaces, QSIPrep 26.2 wrote only acpc:res-nativemin, so no
template transforms were written. QSIRecon needs the MNI152NLin2009cAsym
transforms for atlases, template_map nodes and its ODF report figures, and
stopped or dropped them on default outputs. The default is now
"acpc:res-nativemin MNI152NLin2009cAsym", with the template on its own field of
view at the anatomical's voxel size and no res- entity. --infant still adds
MNIInfant:cohort-auto, beside the adult template. An explicit --output-spaces
still replaces the whole default.
@codecov-commenter

codecov-commenter commented Nov 30, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 74.08%. Comparing base (22135e7) to head (914b4c2).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1217   +/-   ##
=======================================
  Coverage   74.08%   74.08%           
=======================================
  Files          90       90           
  Lines       15970    15972    +2     
  Branches     1990     1990           
=======================================
+ Hits        11831    11833    +2     
  Misses       3779     3779           
  Partials      360      360           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@tsalo tsalo changed the title Write the MNI152NLin2009cAsym transforms by default Add MNI152NLin2009cAsym to default output spaces Dec 1, 2026
@tsalo
tsalo requested a review from mattcieslak December 1, 2026 16:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants