Skip to main content

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.

License Latest Version Citation Testing Examples Prediction gallery Documentation Python package Contribution checks Code coverage Benchmarks Code format

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.

The nifreeze flowchart

Metadata

Release files for nifreeze 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nifreeze 0.2.0
File Size Uploaded Provenance Actions
nifreeze-0.2.0.tar.gz 237.5 kB With provenance Details for nifreeze-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for nifreeze 0.2.0
File Interpreter ABI Platform Actions
nifreeze-0.2.0-py3-none-any.whl Python 3 none any Details for nifreeze-0.2.0-py3-none-any.whl

Total release size: 399.8 kB

Release files / nifreeze-0.2.0.tar.gz

Download URL nifreeze-0.2.0.tar.gz
Size 237.5 kB
Tags Source
SHA-256 checksum
How to use checksums
d672be38514f414e175b4de5b1ba65d75636c91730e78433bab5a222a4a22cf7
BLAKE2b-256 checksum
How to use checksums
ec86aa705c933969d43b22c5cae732148f340a5810f5c70ae9d7d68a8d87849a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 29, 2026.

Transparency log

Release files / nifreeze-0.2.0-py3-none-any.whl

Download URL nifreeze-0.2.0-py3-none-any.whl
Size 162.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a99fe72c464102e62979eb28854a7fad82551326a03c6182c3a4463ef549d56e
BLAKE2b-256 checksum
How to use checksums
5adbbee8978da9aa17d9353b1269d07b4da4a7a3e707418c1c7b152730ad4026
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 29, 2026.

Transparency log

Security for nifreeze 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for nifreeze-0.2.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 29, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page