Skip to content

Commit 38fb3fd

Browse files
committed
Merge remote-tracking branch 'upstream/docker/24.0.0rc0'
2 parents 056a0f2 + 03098fe commit 38fb3fd

File tree

3 files changed

+42
-5
lines changed

3 files changed

+42
-5
lines changed

CHANGES.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,37 @@
11
24.0.0 (TBD)
22
============
3+
This major release includes a substantial refactoring of the pipeline.
4+
5+
One key addition is the addition of the `--level` flag, which can take the arguments minimal, resampling or full. The default is full, which should produce nearly the same results as previous versions. minimal will produce only the minimum necessary to deterministically generate the remaining derivatives. resampling will produce some additional derivatives, intended to simplify resampling with other tools.
6+
7+
The `--derivatives` flag was altered to take arguments in the form `name=/path/to/dir`.
8+
For each directory provided, if a derivative is found - it will be used instead of computing it from scratch. If a derivative is not found, NiBabies will compute it and proceed as usual.
9+
10+
Taken together, these features can allow a dataset provider to run a minimal NiBabies run, targeting many output spaces, while a user can then run a --derivatives run to generate additional derivatives in only the output spaces they need. Another use case is to provide an precomputed derivative to override the default NiBabies behavior, enabling easier workarounds for bugs or experimentation with alternatives.
11+
12+
Another new feature is a dynamic anatomical reference, which is set based on surface reconstruction method or through the `--reference-anatomical` flag. Previously, T1w was the default output space.
13+
14+
Additionally, minor adjustments have been made to MCRIBS surface reconstruction to address failure rates. This is still an on-going investigation, but preliminary results look promising.
15+
16+
This release resolves a number of issues with fieldmaps inducing distortions during correction. Phase difference and direct fieldmaps are now masked correctly, preventing the overestimation of distortions outside the brain. Additionally, we now implement Jacobian weighting during unwarping, which corrects for compression and expansion effects on signal intensity. To disable Jacobian weighting, add `fmap-jacobian` to the `--ignore` argument.
17+
18+
Finally, a new resampling method has been added, to better account for susceptibility distortion and motion in a single shot resampling to a volumetric target space. We anticipate extending this to surface targets in the future.
19+
20+
## 24.0.0rc0 (August 01, 2024)
21+
* RF: Move to fit/apply workflow (#360)
22+
* FIX: nest pathlib import in fix_multi_source_name (#365)
23+
* FIX: Avoid retrieving multiple templates from latest TF (#353)
24+
* ENH: better repr for Derivatives class (#351)
25+
* FIX: Raise informative error if no t1w or t2w found (#347)
26+
* Replace `resource_filename` with `load_data` (#345)
27+
* FIX: Easier pyenv usage (#342)
28+
* Build(deps): Bump urllib3 from 2.0.3 to 2.0.7 (#319)
29+
* Build(deps): Bump pillow from 9.5.0 to 10.0.1 (#317)
30+
* DOC: Use correct argument flag (#338)
31+
* MAINT: Raise minimum to 3.10, bump actions (#337)
32+
* FIX: Catch nonexistent derivatives, clean up subworkflow logic (#336)
33+
* Use fsLR reg sphere for MCRIBS morphometrics resampling (#334)
34+
* FIX: Multiple T2ws, coerce reference to string (#333)
335

436
## 24.0.0a1
537
* MAINT: Update to latest migas API (#326)

nibabies/workflows/bold/resampling.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -571,11 +571,11 @@ def init_bold_fsLR_resampling_wf(
571571
Path to BOLD series resampled as functional GIFTI files in fsLR space
572572
573573
"""
574+
import smriprep
574575
import templateflow.api as tf
575576
from niworkflows.engine.workflows import LiterateWorkflow as Workflow
576577
from niworkflows.interfaces.utility import KeySelect
577578
from niworkflows.interfaces.workbench import VolumeToSurfaceMapping
578-
from smriprep import data as smriprep_data
579579

580580
fslr_density = '32k' if grayord_density == '91k' else '59k'
581581

@@ -647,7 +647,7 @@ def init_bold_fsLR_resampling_wf(
647647
extension='.surf.gii',
648648
)
649649
]
650-
atlases = smriprep_data.load_resource('atlases')
650+
atlases = smriprep.load_data('atlases')
651651
select_surfaces.inputs.template_roi = [
652652
str(atlases / f'L.atlasroi.{fslr_density}_fs_LR.shape.gii'),
653653
str(atlases / f'R.atlasroi.{fslr_density}_fs_LR.shape.gii'),

requirements.txt

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@
44
#
55
# pip-compile --extra=container --output-file=requirements.txt --strip-extras pyproject.toml
66
#
7+
acres==0.1.0
8+
# via
9+
# nibabies (pyproject.toml)
10+
# niworkflows
11+
# smriprep
712
annexremote==1.6.5
813
# via
914
# datalad
@@ -212,7 +217,7 @@ nitransforms==23.0.1
212217
# nibabies (pyproject.toml)
213218
# niworkflows
214219
# sdcflows
215-
niworkflows @ git+https://github.com/nipreps/niworkflows.git@master
220+
niworkflows==1.11.0
216221
# via
217222
# nibabies (pyproject.toml)
218223
# sdcflows
@@ -368,7 +373,7 @@ scipy==1.13.0
368373
# scikit-learn
369374
# sdcflows
370375
# tedana
371-
sdcflows @ git+https://github.com/nipreps/sdcflows.git@master
376+
sdcflows==2.10.0
372377
# via nibabies (pyproject.toml)
373378
seaborn==0.13.2
374379
# via
@@ -384,7 +389,7 @@ six==1.16.0
384389
# osfclient
385390
# pybtex
386391
# python-dateutil
387-
smriprep @ git+https://github.com/nipreps/smriprep.git@master
392+
smriprep==0.16.0
388393
# via nibabies (pyproject.toml)
389394
sqlalchemy==2.0.31
390395
# via pybids

0 commit comments

Comments
 (0)