Metadata-Version: 2.5
Name: nifreeze
Version: 26.0.0rc1
Summary: A flexible framework for volume-to-volume artifact estimation and correction across multiple 4D neuroimaging modalities (diffusion MRI, functional MRI, and PET).
Project-URL: Documentation, https://www.nipreps.org/nifreeze
Project-URL: Home, https://github.com/nipreps/nifreeze
Project-URL: NiPreps, https://www.nipreps.org/
Author-email: The NiPreps Developers <nipreps@gmail.com>
License-Expression: Apache-2.0
License-File: LICENSE
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Science/Research
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Topic :: Scientific/Engineering :: Image Recognition
Requires-Python: >=3.13
Requires-Dist: attrs>=24.3.0
Requires-Dist: dipy>=1.12.1
Requires-Dist: h5py>=3.13.0
Requires-Dist: joblib>=1.5.0
Requires-Dist: matplotlib>=3.11
Requires-Dist: nibabel>=5.3.3
Requires-Dist: nipype<2.0,>=1.11.0
Requires-Dist: nireports>=24.0.3
Requires-Dist: nitransforms>=25.0.0
Requires-Dist: numpy>=2.3.0
Requires-Dist: pandas>=2.3.0
Requires-Dist: pyyaml>=6.0.3
Requires-Dist: scikit-image>=0.26.0
Requires-Dist: scikit-learn>=1.7.0
Requires-Dist: scipy>=1.15.0
Requires-Dist: tqdm>=4.67.1
Requires-Dist: typing-extensions>=4.13.0
Provides-Extra: all
Requires-Dist: asv==0.6.6; extra == 'all'
Requires-Dist: configspace>=1.2.1; extra == 'all'
Requires-Dist: coverage>=7.6.6; extra == 'all'
Requires-Dist: datalad-next>=1.6.0; extra == 'all'
Requires-Dist: datalad>=1.1.4; extra == 'all'
Requires-Dist: furo>=2025.7.19; extra == 'all'
Requires-Dist: ipykernel>=6.30.0; extra == 'all'
Requires-Dist: itk-elastix>=0.25.4; extra == 'all'
Requires-Dist: jupyter; extra == 'all'
Requires-Dist: mriqc-learn; extra == 'all'
Requires-Dist: nbclient>=0.10.1; extra == 'all'
Requires-Dist: nbmake>=1.5.5; extra == 'all'
Requires-Dist: nbsphinx>=0.9.6; extra == 'all'
Requires-Dist: nest-asyncio>=1.5.1; extra == 'all'
Requires-Dist: nilearn>=0.11.0; extra == 'all'
Requires-Dist: nipreps; extra == 'all'
Requires-Dist: nipreps-synthstrip; extra == 'all'
Requires-Dist: packaging>=25.0; extra == 'all'
Requires-Dist: pandas-stubs>=2.2.3.241126; extra == 'all'
Requires-Dist: pre-commit-hooks>=6.0.0; extra == 'all'
Requires-Dist: pre-commit>=4.1.0; extra == 'all'
Requires-Dist: psutil>=6.1.1; extra == 'all'
Requires-Dist: pytest-cov>=6.1.0; extra == 'all'
Requires-Dist: pytest-env>=1.2.0; extra == 'all'
Requires-Dist: pytest-xdist>=3.7.0; extra == 'all'
Requires-Dist: pytest>=8.3.4; extra == 'all'
Requires-Dist: ruff>=0.7.4; extra == 'all'
Requires-Dist: scikit-image>=0.26.0; extra == 'all'
Requires-Dist: scipy-stubs>=1.14.1.4; extra == 'all'
Requires-Dist: smac>=2.3.0; extra == 'all'
Requires-Dist: sphinx-argparse>=0.6.0; extra == 'all'
Requires-Dist: sphinx>=7.4; extra == 'all'
Requires-Dist: sphinxcontrib-apidoc>=0.6.0; extra == 'all'
Requires-Dist: sphinxcontrib-bibtex>=2.6.4; extra == 'all'
Requires-Dist: threadpoolctl>=3.6.0; extra == 'all'
Requires-Dist: types-attrs; extra == 'all'
Requires-Dist: types-pyyaml>=6.0.12.20241221; extra == 'all'
Requires-Dist: types-setuptools>=75.5.0.20241116; extra == 'all'
Requires-Dist: types-tqdm>=4.67.0.20241119; extra == 'all'
Requires-Dist: virtualenv==20.38.0; extra == 'all'
Provides-Extra: antsopt
Requires-Dist: configspace>=1.2.1; extra == 'antsopt'
Requires-Dist: nipreps; extra == 'antsopt'
Requires-Dist: scikit-image>=0.26.0; extra == 'antsopt'
Requires-Dist: smac>=2.3.0; extra == 'antsopt'
Provides-Extra: benchmark
Requires-Dist: asv==0.6.6; extra == 'benchmark'
Requires-Dist: psutil>=6.1.1; extra == 'benchmark'
Requires-Dist: threadpoolctl>=3.6.0; extra == 'benchmark'
Requires-Dist: virtualenv==20.38.0; extra == 'benchmark'
Provides-Extra: dev
Requires-Dist: pre-commit-hooks>=6.0.0; extra == 'dev'
Requires-Dist: pre-commit>=4.1.0; extra == 'dev'
Requires-Dist: ruff>=0.7.4; extra == 'dev'
Provides-Extra: doc
Requires-Dist: furo>=2025.7.19; extra == 'doc'
Requires-Dist: nbsphinx>=0.9.6; extra == 'doc'
Requires-Dist: packaging>=25.0; extra == 'doc'
Requires-Dist: sphinx-argparse>=0.6.0; extra == 'doc'
Requires-Dist: sphinx>=7.4; extra == 'doc'
Requires-Dist: sphinxcontrib-apidoc>=0.6.0; extra == 'doc'
Requires-Dist: sphinxcontrib-bibtex>=2.6.4; extra == 'doc'
Provides-Extra: docs
Requires-Dist: furo>=2025.7.19; extra == 'docs'
Requires-Dist: nbsphinx>=0.9.6; extra == 'docs'
Requires-Dist: packaging>=25.0; extra == 'docs'
Requires-Dist: sphinx-argparse>=0.6.0; extra == 'docs'
Requires-Dist: sphinx>=7.4; extra == 'docs'
Requires-Dist: sphinxcontrib-apidoc>=0.6.0; extra == 'docs'
Requires-Dist: sphinxcontrib-bibtex>=2.6.4; extra == 'docs'
Provides-Extra: elastix
Requires-Dist: itk-elastix>=0.25.4; extra == 'elastix'
Provides-Extra: gallery
Requires-Dist: coverage>=7.6.6; extra == 'gallery'
Requires-Dist: datalad-next>=1.6.0; extra == 'gallery'
Requires-Dist: datalad>=1.1.4; extra == 'gallery'
Requires-Dist: nilearn>=0.11.0; extra == 'gallery'
Provides-Extra: notebooks
Requires-Dist: jupyter; extra == 'notebooks'
Requires-Dist: mriqc-learn; extra == 'notebooks'
Requires-Dist: nbclient>=0.10.1; extra == 'notebooks'
Requires-Dist: nbmake>=1.5.5; extra == 'notebooks'
Requires-Dist: nest-asyncio>=1.5.1; extra == 'notebooks'
Requires-Dist: nipreps-synthstrip; extra == 'notebooks'
Provides-Extra: plotting
Requires-Dist: nilearn>=0.11.0; extra == 'plotting'
Provides-Extra: resmon
Requires-Dist: psutil>=6.1.1; extra == 'resmon'
Provides-Extra: test
Requires-Dist: coverage>=7.6.6; extra == 'test'
Requires-Dist: ipykernel>=6.30.0; extra == 'test'
Requires-Dist: mriqc-learn; extra == 'test'
Requires-Dist: pytest-cov>=6.1.0; extra == 'test'
Requires-Dist: pytest-env>=1.2.0; extra == 'test'
Requires-Dist: pytest-xdist>=3.7.0; extra == 'test'
Requires-Dist: pytest>=8.3.4; extra == 'test'
Provides-Extra: tests
Requires-Dist: coverage>=7.6.6; extra == 'tests'
Requires-Dist: ipykernel>=6.30.0; extra == 'tests'
Requires-Dist: mriqc-learn; extra == 'tests'
Requires-Dist: pytest-cov>=6.1.0; extra == 'tests'
Requires-Dist: pytest-env>=1.2.0; extra == 'tests'
Requires-Dist: pytest-xdist>=3.7.0; extra == 'tests'
Requires-Dist: pytest>=8.3.4; extra == 'tests'
Provides-Extra: types
Requires-Dist: pandas-stubs>=2.2.3.241126; extra == 'types'
Requires-Dist: pytest>=8.3.4; extra == 'types'
Requires-Dist: scipy-stubs>=1.14.1.4; extra == 'types'
Requires-Dist: types-attrs; extra == 'types'
Requires-Dist: types-pyyaml>=6.0.12.20241221; extra == 'types'
Requires-Dist: types-setuptools>=75.5.0.20241116; extra == 'types'
Requires-Dist: types-tqdm>=4.67.0.20241119; extra == 'types'
Description-Content-Type: text/x-rst

*NiFreeze*
==========

**Model-based estimation and correction of head motion and eddy current distortions in 4D neuroimaging**.

*NiFreeze* is a flexible framework for volume-to-volume motion estimation and correction in d/fMRI and PET,
and eddy-current-derived distortion estimation in dMRI.

.. BEGIN NOTICE AND BADGES (left out of the documentation's home page)

.. important:: *NiFreeze* is a major evolution and generalized successor of *eddymotion*

   In November 2024, the *NiPreps Steering Committee* brought to the *Bi-monthly Roundup*
   the discussion about re-branding *eddymotion* to better reflect its aspirations to
   perform on diverse modalities.

   The `repository of the project <https://github.com/nipreps/eddymotion>`__
   has been archived, and development will continue under the *NiFreeze* project.

   The contributor list of *eddymotion* is found under the credit file
   ``.maint/EDDYMOTION.md`` in this repository.

.. image:: https://img.shields.io/badge/License-Apache_2.0-blue.svg
   :target: https://github.com/nipreps/nifreeze/blob/main/LICENSE
   :alt: License

.. image:: https://img.shields.io/pypi/v/nifreeze.svg
   :target: https://pypi.python.org/pypi/nifreeze/
   :alt: Latest Version

.. image:: https://img.shields.io/badge/SPEC-0-green?labelColor=%23004811&color=%235CA038
   :target: https://scientific-python.org/specs/spec-0000/
   :alt: SPEC 0: Minimum Supported Dependencies

.. image:: https://github.com/nipreps/nifreeze/actions/workflows/citation.yml/badge.svg
   :target: https://github.com/nipreps/nifreeze/actions/workflows/citation.yml
   :alt: Citation

.. image:: https://github.com/nipreps/nifreeze/actions/workflows/test.yml/badge.svg
   :target: https://github.com/nipreps/nifreeze/actions/workflows/test.yml
   :alt: Testing

.. image:: https://github.com/nipreps/nifreeze/actions/workflows/notebooks.yml/badge.svg
   :target: https://github.com/nipreps/nifreeze/actions/workflows/notebooks.yml
   :alt: Examples

.. image:: https://github.com/nipreps/nifreeze/actions/workflows/gallery.yml/badge.svg
   :target: https://github.com/nipreps/nifreeze/actions/workflows/gallery.yml
   :alt: Prediction gallery

.. image:: https://github.com/nipreps/nifreeze/actions/workflows/pages/pages-build-deployment/badge.svg
   :target: https://www.nipreps.org/nifreeze/main/index.html
   :alt: Documentation

.. image:: https://github.com/nipreps/nifreeze/actions/workflows/pythonpackage.yml/badge.svg
   :target: https://github.com/nipreps/nifreeze/actions/workflows/pythonpackage.yml
   :alt: Python package

.. image:: https://github.com/nipreps/nifreeze/actions/workflows/contrib.yml/badge.svg
   :target: https://github.com/nipreps/nifreeze/actions/workflows/contrib.yml
   :alt: Contribution checks

.. image:: https://codecov.io/gh/nipreps/nifreeze/branch/main/graph/badge.svg
   :target: https://app.codecov.io/gh/nipreps/nifreeze
   :alt: Code coverage

.. image:: https://img.shields.io/badge/benchmarked%20by-asv-blue.svg
   :target: https://github.com/nipreps/nifreeze/actions/workflows/benchmark.yml
   :alt: Benchmarks

.. image:: https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json
   :target: https://github.com/astral-sh/ruff
   :alt: Code format

.. END NOTICE AND BADGES

Diffusion and functional MRI (d/fMRI) generally employ echo-planar imaging (EPI) for fast
whole-brain acquisition.
Despite the rapid collection of volumes, typical repetition times are long enough for head motion
to occur, which has been proven detrimental to both diffusion [1]_ and functional [2]_ MRI.
In the case of dMRI, additional volume-wise, low-order spatial distortions are caused by
eddy currents (EC), which appear as a result of quickly switching diffusion gradients.
Unaccounted for EC distortion can result in incorrect local model fitting and poor downstream
tractography results [3]_, [4]_.
*FSL*'s ``eddy`` [5]_ is the most popular tool for EC distortion correction, and
implements a leave-one-volume-out approach to estimate EC distortions.
However, *FSL* has commercial restrictions that hinder application within open-source initiatives
such as *NiPreps* [6]_.
In addition, *FSL*'s development model discourages the implementation of alternative data-modeling
approaches to broaden the scope of application (e.g., modalities beyond dMRI).
*NiFreeze* is an open-source implementation of ``eddy``'s approach to estimate artifacts
that permits alternative models that apply to, for instance, head motion estimation in fMRI
and positron-emission tomography (PET) data.
Like ``eddy``, *NiFreeze* estimates each volume's motion and distortion with a
leave-one-volume-out scheme: a signal model fit on all the *other* volumes
synthesizes an independent, same-contrast registration target for the held-out
volume, sidestepping the ill-posed volume-to-volume registration of
direction-varying dMRI contrast.

.. BEGIN FLOWCHART

.. image:: https://raw.githubusercontent.com/nipreps/nifreeze/main/docs/_static/nifreeze-flowchart.png
   :alt: The nifreeze flowchart

.. END FLOWCHART

.. [1] Yendiki et al. (2014) *Spurious group differences due to head motion in a diffusion MRI study*.
    NeuroImage **88**:79-90.

.. [2] Power et al. (2012) *Spurious but systematic correlations in functional connectivity MRI
    networks arise from subject motion*. NeuroImage **59**:2142-2154.

.. [3] Zhuang et al. (2006) *Correction of eddy-current distortions in diffusion tensor images using
    the known directions and strengths of diffusion gradients*. J Magn Reson Imaging **24**:1188-1193.

.. [4] Andersson et al. (2012) *A comprehensive Gaussian Process framework for correcting distortions
    and movements in diffusion images*. In: 20th SMRT & 21st ISMRM, Melbourne, Australia.

.. [5] Andersson & Sotiropoulos (2015) *Non-parametric representation and prediction of single- and
    multi-shell diffusion-weighted MRI data using Gaussian processes*. NeuroImage **122**:166-176.

.. [6] Esteban (2025) *Standardized preprocessing in neuroimaging: enhancing reliability and reproducibility*.
    In: Whelan, R., & Lemaître, H. (eds.) *Methods for Analyzing Large Neuroimaging Datasets. Neuromethods*,
    vol. **218**, pp. 153-179. Humana, New York, NY.
    doi:`10.1007/978-1-0716-4260-3_8 <https://doi.org/10.1007/978-1-0716-4260-3_8>`__.
