Skip to content

Commit

Permalink
Merge tag '23.2.0'
Browse files Browse the repository at this point in the history
23.2.0 (January 10, 2024)

New feature release in the 23.2.x series.

This release wraps up a significant refactor of fMRIPrep. The main new features
can be used with the ``--level`` and ``--derivatives`` flags.

The ``--level`` flag 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.

The ``--derivatives`` flag takes arguments of the form ``name=/path/to/dir``,
for example ``--derivatives anat=$SMRIPREP_DIR``.  If provided, fMRIPrep will
read the specified directories for pre-computed derivatives. If a derivative is
found, it will be used instead of computing it from scratch. If a derivative is
not found, fMRIPrep will compute it and proceed as usual.

Taken together, these features can allow a dataset provider to run a minimal
fMRIPrep 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 fMRIPrep behavior, enabling easier workarounds for
bugs or experimentation with alternatives.

Additionally, this release includes a number of bug fixes and improvements.
This release adds support for MSM-Sulc, improving the alignment of subject
surfaces to the fsLR template. This process is enabled by default, but may
be disabled with the ``--no-msm`` flag.

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, use
``--ignore fmap-jacobian``.

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.

* FIX: Restore --ignore sbref functionality (#3180)
* FIX: Retrieve atlas ROIs at requested density (#3179)
* FIX: Keep minctracc executable in FreeSurfer installation (#3175)
* FIX: Exclude echo entity from optimally combined derivatives (#3166)
* FIX: Disable boldref-space outputs unless requested (#3159)
* FIX: Tag memory estimates in resamplers (#3150)
* FIX: Final revisions for next branch (#3134)
* FIX: Minor fixes to work with MSMSulc-enabled smriprep-next (#3098)
* FIX: Connect EPI-to-fieldmap transform (#3099)
* FIX: Use Py2-compatible version file template for fmriprep-docker (#3101)
* FIX: Update connections to unwarp_wf, convert ITK transforms to text (#3077)
* ENH: Allow --ignore fmap-jacobian to disable Jacobian determinant modulation during fieldmap correction (#3186)
* ENH: Exclude non-steady-state volumes from confound correlation plot (#3171)
* ENH: Pass FLAIR images to anatomical workflow builder to include in boilerplate (#3146)
* ENH: Restore carpetplot and other final adjustments (#3131)
* ENH: Restore CIFTI-2 generation (#3129)
* ENH: Restore resampling to surface GIFTIs (#3126)
* ENH: Restore confound generation (#3120)
* ENH: Restore resampling BOLD to volumetric templates (#3121)
* ENH: Restore resampling to T1w target (#3116)
* ENH: Add MSMSulc (#3085)
* ENH: Add reporting workflow for BOLD fit (#3082)
* ENH: Generate anatomical derivatives useful for resampling (#3081)
* RF: Load reportlets interfaces from nireports rather than niworkflows (#3176, #3184)
* RF: Separate goodvoxels mask creation from fsLR resampling (#3170)
* RF: Write out anatomical template derivatives (#3136)
* RF: Update primary bold workflow to incorporate single shot resampling (#3114)
* RF: Update derivative cache spec, calculate per-BOLD, reuse boldref2fmap (#3078)
* RF: Split fMRIPrep into fit and derivatives workflows (#2913)
* RPT: Rename CSF/WM confounds in fMRIPlot (#3172)
* TST: Add smoke tests for full workflow and most branching flags (#3155)
* TST: Add smoke-tests for bold_fit_wf (#3152)
* DOC: Fix documentation and description for init_bold_grayords_wf (#3051)
* DOC: Minor updates in outputs.rst (#3148)
* STY: Apply a couple refurb suggestions (#3151)
* STY: Fix flake8 warnings (#3044)
* STY: Apply pyupgrade suggestions (#3043)
* MNT: Restore mritotal subcommands to Dockerfile (#3149)
* MNT: Update smriprep to 0.13.1 (#3153)
* MNT: optimise size of PNG files (#3145)
* MNT: update vendored docs script ``github_link.py`` (#3144)
* MNT: Update tedana pin, test on Python 3.12 (#3141)
* MNT: Bump environment (#3132)
* MNT: Bump version requirements (#3107)
* MNT: http:// → https:// (#3097)
* MNT: Remove mritotal and dependencies from FreeSurfer ignore file (#3090)
* MNT: Update environment (#3073)
* MNT: Depend on newer sphinx (#3067)
* MNT: Install ANTs from conda-forge (#3061)
* MNT: Drop Python 3.8 and numpy 1.21 support (NEP29) (#3052)
* MNT: update update_zenodo.py script (#3042)
* MNT: Fix welcome message formatting and instructions (#3039)
* MNT: Python 3.11 should be supported (#3038)
* CI: Bump actions/setup-python from 4 to 5 (#3181)
* CI: Stop testing legacy layout (#3079)
* CI: Improve tag detection for docker builds (#3066)
* CI: Clean up pre-release builds (#3040)
  • Loading branch information
effigies committed Jan 10, 2024
2 parents 24002ef + 8b3a957 commit de72651
Show file tree
Hide file tree
Showing 5 changed files with 83 additions and 47 deletions.
1 change: 1 addition & 0 deletions .maint/CONTRIBUTORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ Before every release, unlisted contributors will be invited again to add their n
| Liem | Franz | | 0000-0003-0646-4810 | URPP Dynamics of Healthy Aging, University of Zurich |
| Lurie | Daniel J. | | 0000-0001-8012-6399 | Department of Psychology, University of California, Berkeley |
| Ma | Feilong | | 0000-0002-6838-3971 | Dartmouth College: Hanover, NH, United States |
| Madison | Thomas | | 0000-0003-3030-6580 | Department of Pediatrics, University of Minnesota, MN, USA |
| Mentch | Jeff | | 0000-0002-7762-8678 | Speech & Hearing Bioscience & Technology Program, Harvard University |
| Moodie | Craig A. | | 0000-0003-0867-1469 | Department of Psychology, Stanford University |
| Naveau | Mikaël | | 0000-0001-6948-9068 | Cyceron, UMS 3408 (CNRS - UCBN), France |
Expand Down
89 changes: 51 additions & 38 deletions .zenodo.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,24 @@
"orcid": "0000-0002-1668-9629",
"type": "Researcher"
},
{
"affiliation": "Department of Pediatrics, University of Minnesota, MN, USA",
"name": "Madison, Thomas",
"orcid": "0000-0003-3030-6580",
"type": "Researcher"
},
{
"affiliation": "Florey Institute of Neuroscience and Mental Health",
"name": "Smith, Robert E.",
"orcid": "0000-0003-3636-4642",
"type": "Researcher"
},
{
"affiliation": "Neurospin, CEA",
"name": "Papadopoulos, Dimitri",
"orcid": "0000-0002-1242-8990",
"type": "Researcher"
},
{
"affiliation": "Centre for Modern Interdisciplinary Technologies, Nicolaus Copernicus University in Toruń",
"name": "Finc, Karolina",
Expand All @@ -26,18 +38,6 @@
"orcid": "0000-0002-6533-2909",
"type": "Researcher"
},
{
"affiliation": "Neurospin, CEA",
"name": "Papadopoulos, Dimitri",
"orcid": "0000-0002-1242-8990",
"type": "Researcher"
},
{
"affiliation": "Dartmouth College: Hanover, NH, United States",
"name": "Halchenko, Yaroslav O.",
"orcid": "0000-0003-3456-2493",
"type": "Researcher"
},
{
"affiliation": "Department of Neuroscience, University of Pennsylvania, PA, USA",
"name": "Tooley, Ursula A.",
Expand All @@ -51,9 +51,9 @@
"type": "Researcher"
},
{
"affiliation": "University of Texas at Austin",
"name": "de la Vega, Alejandro",
"orcid": "0000-0001-9062-3778",
"affiliation": "Dartmouth College: Hanover, NH, United States",
"name": "Halchenko, Yaroslav O.",
"orcid": "0000-0003-3456-2493",
"type": "Researcher"
},
{
Expand All @@ -63,9 +63,9 @@
"type": "Researcher"
},
{
"affiliation": "Montreal Neurological Institute, McGill University",
"name": "Urchs, Sebastian",
"orcid": "0000-0001-5504-8579",
"affiliation": "University of Texas at Austin",
"name": "de la Vega, Alejandro",
"orcid": "0000-0001-9062-3778",
"type": "Researcher"
},
{
Expand All @@ -75,9 +75,15 @@
"type": "Researcher"
},
{
"affiliation": "Charite Universitatsmedizin Berlin, Germany",
"name": "Waller, Lea",
"orcid": "0000-0002-3239-6957",
"affiliation": "Montreal Neurological Institute, McGill University",
"name": "Urchs, Sebastian",
"orcid": "0000-0001-5504-8579",
"type": "Researcher"
},
{
"affiliation": "Machine Learning Team, National Institute of Mental Health, USA",
"name": "Nielson, Dylan M.",
"orcid": "0000-0003-4613-6643",
"type": "Researcher"
},
{
Expand All @@ -86,6 +92,12 @@
"orcid": "0000-0002-2050-0614",
"type": "Researcher"
},
{
"affiliation": "Charite Universitatsmedizin Berlin, Germany",
"name": "Waller, Lea",
"orcid": "0000-0002-3239-6957",
"type": "Researcher"
},
{
"affiliation": "Speech & Hearing Bioscience & Technology Program, Harvard University",
"name": "Mentch, Jeff",
Expand All @@ -98,12 +110,6 @@
"orcid": "0000-0001-8012-6399",
"type": "Researcher"
},
{
"affiliation": "Department of Psychology, Columbia University",
"name": "Jacoby, Nir",
"orcid": "0000-0001-7936-9991",
"type": "Researcher"
},
{
"affiliation": "Computational Neuroimaging Lab, BioCruces Health Research Institute",
"name": "Erramuzpe, Asier",
Expand Down Expand Up @@ -194,6 +200,18 @@
"orcid": "0000-0002-1652-9297",
"type": "Researcher"
},
{
"affiliation": "Department of Psychology, Columbia University",
"name": "Jacoby, Nir",
"orcid": "0000-0001-7936-9991",
"type": "Researcher"
},
{
"affiliation": "Department of Psychology, University of Washington",
"name": "Kruper, John",
"orcid": "0000-0003-0081-391X",
"type": "Researcher"
},
{
"affiliation": "URPP Dynamics of Healthy Aging, University of Zurich",
"name": "Liem, Franz",
Expand Down Expand Up @@ -301,19 +319,19 @@
"orcid": "0000-0002-1668-9629"
},
{
"affiliation": "Montreal Neurological Institute, McGill University",
"name": "DuPre, Elizabeth",
"orcid": "0000-0003-1358-196X"
"affiliation": "Department of Psychology, Florida International University",
"name": "Salo, Taylor",
"orcid": "0000-0001-9813-3167"
},
{
"affiliation": "Neuroscience Program, University of Iowa",
"name": "Kent, James D.",
"orcid": "0000-0002-4892-2659"
},
{
"affiliation": "Department of Psychology, Florida International University",
"name": "Salo, Taylor",
"orcid": "0000-0001-9813-3167"
"affiliation": "Montreal Neurological Institute, McGill University",
"name": "DuPre, Elizabeth",
"orcid": "0000-0003-1358-196X"
},
{
"affiliation": "Department of Psychology, Stanford University",
Expand All @@ -330,11 +348,6 @@
"name": "Blair, Ross W.",
"orcid": "0000-0003-3007-1056"
},
{
"affiliation": "Machine Learning Team, National Institute of Mental Health",
"name": "Nielson, Dylan M.",
"orcid": "0000-0003-4613-6643"
},
{
"affiliation": "Department of Psychology, Stanford University",
"name": "Poldrack, Russell A.",
Expand Down
27 changes: 25 additions & 2 deletions CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
23.2.0 (To be determined)
23.2.0 (January 10, 2024)
=========================
New feature release in the 23.2.x series.

Expand Down Expand Up @@ -33,17 +33,27 @@ 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.
and expansion effects on signal intensity. To disable Jacobian weighting, use
``--ignore fmap-jacobian``.

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.

* FIX: Restore --ignore sbref functionality (#3180)
* FIX: Retrieve atlas ROIs at requested density (#3179)
* FIX: Keep minctracc executable in FreeSurfer installation (#3175)
* FIX: Exclude echo entity from optimally combined derivatives (#3166)
* FIX: Disable boldref-space outputs unless requested (#3159)
* FIX: Tag memory estimates in resamplers (#3150)
* FIX: Final revisions for next branch (#3134)
* FIX: Minor fixes to work with MSMSulc-enabled smriprep-next (#3098)
* FIX: Connect EPI-to-fieldmap transform (#3099)
* FIX: Use Py2-compatible version file template for fmriprep-docker (#3101)
* FIX: Update connections to unwarp_wf, convert ITK transforms to text (#3077)
* ENH: Allow --ignore fmap-jacobian to disable Jacobian determinant modulation during fieldmap correction (#3186)
* ENH: Exclude non-steady-state volumes from confound correlation plot (#3171)
* ENH: Pass FLAIR images to anatomical workflow builder to include in boilerplate (#3146)
* ENH: Restore carpetplot and other final adjustments (#3131)
* ENH: Restore CIFTI-2 generation (#3129)
* ENH: Restore resampling to surface GIFTIs (#3126)
Expand All @@ -53,13 +63,25 @@ target space. We anticipate extending this to surface targets in the future.
* ENH: Add MSMSulc (#3085)
* ENH: Add reporting workflow for BOLD fit (#3082)
* ENH: Generate anatomical derivatives useful for resampling (#3081)
* RF: Load reportlets interfaces from nireports rather than niworkflows (#3176, #3184)
* RF: Separate goodvoxels mask creation from fsLR resampling (#3170)
* RF: Write out anatomical template derivatives (#3136)
* RF: Update primary bold workflow to incorporate single shot resampling (#3114)
* RF: Update derivative cache spec, calculate per-BOLD, reuse boldref2fmap (#3078)
* RF: Split fMRIPrep into fit and derivatives workflows (#2913)
* RPT: Rename CSF/WM confounds in fMRIPlot (#3172)
* TST: Add smoke tests for full workflow and most branching flags (#3155)
* TST: Add smoke-tests for bold_fit_wf (#3152)
* DOC: Fix documentation and description for init_bold_grayords_wf (#3051)
* DOC: Minor updates in outputs.rst (#3148)
* STY: Apply a couple refurb suggestions (#3151)
* STY: Fix flake8 warnings (#3044)
* STY: Apply pyupgrade suggestions (#3043)
* MNT: Restore mritotal subcommands to Dockerfile (#3149)
* MNT: Update smriprep to 0.13.1 (#3153)
* MNT: optimise size of PNG files (#3145)
* MNT: update vendored docs script ``github_link.py`` (#3144)
* MNT: Update tedana pin, test on Python 3.12 (#3141)
* MNT: Bump environment (#3132)
* MNT: Bump version requirements (#3107)
* MNT: http:// → https:// (#3097)
Expand All @@ -71,6 +93,7 @@ target space. We anticipate extending this to surface targets in the future.
* MNT: update update_zenodo.py script (#3042)
* MNT: Fix welcome message formatting and instructions (#3039)
* MNT: Python 3.11 should be supported (#3038)
* CI: Bump actions/setup-python from 4 to 5 (#3181)
* CI: Stop testing legacy layout (#3079)
* CI: Improve tag detection for docker builds (#3066)
* CI: Clean up pre-release builds (#3040)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ dependencies = [
"pybids >= 0.15.2",
"requests",
"sdcflows @ git+https://github.com/nipreps/sdcflows.git@master",
"smriprep >= 0.13.1",
"smriprep @ git+https://github.com/nipreps/smriprep.git@master",
"tedana >= 23.0.2",
"templateflow >= 23.0.0",
"toml",
Expand Down
11 changes: 5 additions & 6 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@ importlib-resources==6.1.1
# via
# nireports
# niworkflows
# sdcflows
# templateflow
indexed-gzip==1.8.7
# via smriprep
Expand Down Expand Up @@ -165,6 +164,7 @@ matplotlib==3.8.2
migas==0.4.0
# via
# fmriprep
# sdcflows
more-itertools==10.1.0
# via jaraco-classes
msgpack==1.0.7
Expand Down Expand Up @@ -302,7 +302,7 @@ psutil==5.9.6
# fmriprep (pyproject.toml)
py-cpuinfo==9.0.0
# via codecarbon
pybids==0.16.3
pybids==0.16.4
# via
# fmriprep
# fmriprep (pyproject.toml)
Expand Down Expand Up @@ -382,7 +382,7 @@ scipy==1.11.4
# scikit-learn
# sdcflows
# tedana
sdcflows==2.6.0
sdcflows==2.8.0
# via
# fmriprep
# fmriprep (pyproject.toml)
Expand All @@ -393,8 +393,7 @@ seaborn==0.13.0
secretstorage==3.3.3
# via keyring
sentry-sdk==1.39.0
# via
# fmriprep
# via fmriprep
simplejson==3.19.2
# via nipype
six==1.16.0
Expand Down Expand Up @@ -434,7 +433,7 @@ tifffile==2023.9.26
toml==0.10.2
# via
# fmriprep
# fmriprep (pyproject.toml)
# sdcflows
tornado==6.3.3
# via bokeh
tqdm==4.66.1
Expand Down

0 comments on commit de72651

Please sign in to comment.