Skip to content

REL: 25.2.7 - #3695

Open
effigies wants to merge 4 commits into
maint/25.2.xfrom
docker/25.2.7-rc1
Open

effigies wants to merge 4 commits into
maint/25.2.xfrom
docker/25.2.7-rc1

Conversation

@effigies

@effigies effigies commented Oct 2, 2026 •

Copy link
Copy Markdown
Member

This is a small pull request to give time for some feedback on an upcoming release on the 25.2.x LTS series.

This branch can be tested from docker://nipreps/fmriprep:25.2.7-rc1

This has a change to one workflow step that has the potential to impact every dataset: nipreps/niworkflows#1064

The idea is that we have an average bold reference image resampled to MNI. We perform a simple affine registration so we can project the MNI brain mask onto our BOLD and run N4 bias field correction only within the mask. The registration happens in two stages, both affine (12-dof), with the first allowed to make larger moves while the second is refined. The problem we found in nipreps/niworkflows#1000 is that the initial affine could sometimes add large shear or scale components, resulting in a highly skewed mask that the second stage could not correct. The fix is to change the first step to rigid (6-dof), to avoid this edge case. The second affine step still has the additional degrees of freedom to account for differences in brain shape.

The mask that is generated is thrown away after this use; the only impact this has is on what voxels are in-scope to fit a bias field estimate.

cc @claraElk @HippocampusGirl Does this seem safe enough to you, or would you like to run your tests to confirm?

=== Do not change lines below ===
{
 "chain": [],
 "cmd": "bash -c '! pixi lock --check || git checkout .'",
 "exit": 0,
 "extra_inputs": [],
 "inputs": [
  "pyproject.toml",
  "pixi.lock"
 ],
 "outputs": [
  "pixi.lock"
 ],
 "pwd": "."
}
^^^ Do not change lines above ^^^
=== Do not change lines below ===
{
 "chain": [],
 "cmd": "pixi update niworkflows",
 "exit": 0,
 "extra_inputs": [],
 "inputs": [
  "pyproject.toml",
  "pixi.lock"
 ],
 "outputs": [
  "pixi.lock"
 ],
 "pwd": "."
}
^^^ Do not change lines above ^^^
@codecov

codecov Bot commented Oct 2, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 74.05%. Comparing base (ff79aa8) to head (7cf086b).

Additional details and impacted files
@@              Coverage Diff              @@
##           maint/25.2.x    #3695   +/-   ##
=============================================
  Coverage         74.05%   74.05%           
=============================================
  Files                61       61           
  Lines              4925     4925           
  Branches            532      532           
=============================================
  Hits               3647     3647           
  Misses             1146     1146           
  Partials            132      132           

☔ 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.

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