Nibabies

Latest version: v25.0.1

Safety actively analyzes 722491 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 4

25.0.1

-------------------------
A bug-fix release to address an issue when using a precomputed mask for MCRIBS surface reconstruction without an anatomical template.

* FIX: Match mask header prior to n4 correction (443)

25.0.0

=========================
A new minor release with improvements to anatomical to template spatial normalization.

Registration will now prioritize the same modality as the anatomical template, if available.

A new flag `--norm-csf` performs CSF normalization on the anatomical template prior to template registration.

A new flag `--multi-step-reg` adds an intermediate step when registering to MNI152NLin6Asym, first performing anatomical -> MNIInfant:cohort-X (age matched by default), and then concatenates the transform with an already computed MNIInfant -> MNI152NLin6Asym.

Both of the new flags above are disabled by default, but have shown promise and may become defaults in the next release. Please experiment with your data, and any feedback on the results would be greatly appreciated!


Enhancements
* ENH: Output anatomical coregistration transform + report (437)
* ENH: Minimize clipping prior to surface reconstruction with MCRIBS (436)
* ENH: Output fsLR meshes on subject surfaces (427)
* ENH: Add flag for multi-step registration to adult templates (415) (425) (430) (433)
* ENH: Option to normalize CSF prior to template registration (419)
* ENH: Expand template registration to use either anatomical modality (418)

Bug Fixes
* FIX: Reduce range that --surface-recon-method auto recommends MCRIBS (438)
* FIX: Allow T2 only without the use of --derivatives
* FIX: New styling catches (417)
* FIX: Default surface recon method should be None (416)

Internals / Maintenance
* TST: Build workflow across different conditions (409)
* MAINT: Remove deprecated parser arguments (407)

24.1.0

=========================
This new minor release includes a few bug fixes, such as excluding MCRIBS from surface reconstruction without a precomputed segmentation and ensuring generated derivatives are not masked, as well as improvements to reporting.

Enhancements
* ENH: Add boilerplate, errors to report (403)
* ENH: Add age to session report (402)
* ENH: Improvements to age parsing (395, 398)

Bug Fixes
* FIX: MCRIBS auto surface reconstruction logic (399)
* FIX: Do not force masking of anatomicals when using `--derivatives` (400)

Internals / Maintenance
* MAINT: Revisit warnings filter (396)
* MAINT: Automate testing with tox (404)
* MAINT: Port over parser arguments and tests from fmriprep (401)

24.0.1

========================
A patch release with a fix for the BOLD T2\* workflow. The command line argument `--me-t2s-fit-method` was added for finer control when processing multi-echo datasets.

* FIX: Add missing me-t2s-fit-method option (385)
* DOC: Reformat abbreviations (386)

24.0.0

========================
This major release includes a substantial refactoring of the pipeline.

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.

The `--derivatives` flag was altered to take arguments in the form `name=/path/to/dir`.
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.

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.

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. Now, the reference anatomical is determined based on the surface reconstruction method.

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.

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.

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: nest pathlib import in fix_multi_source_name (365)
* FIX: Avoid retrieving multiple templates from latest TF (353)
* FIX: Raise informative error if no t1w or t2w found (347)
* FIX: Easier pyenv usage (342)
* FIX: Catch nonexistent derivatives, clean up subworkflow logic (336)
* FIX: Use fsLR reg sphere for MCRIBS morphometrics resampling (334)
* FIX: T2star map MNI scaling (320)

* ENH: Alter outputs when MCRIBS reconstruction is used (329)
* ENH: Use nireports for Report generation + add reportlet per reconstruction (328)
* ENH: better repr for Derivatives class (351)

* RF: Move to fit/apply workflow (360)
* RF: Replace `resource_filename` with `load_data` (345)

* MAINT: Bump urllib3 from 2.0.3 to 2.0.7 (319)
* MAINT: Raise minimum to 3.10, bump actions (337)
* MAINT: Bump pillow from 9.5.0 to 10.0.1 (317)
* MAINT: Update to latest migas API (326)

* DOC: Use correct argument flag (338)
* DOC: Move to new theme, add outputs description (383)

23.1.0

============
The next minor release of *NiBabies*, this release includes a number of new goodies, including:

New surface reconstruction option
M-CRIB-S (Adamson et al., https://www.nature.com/articles/s41598-020-61326-2), has shown to improve performance in participants under 9 months. If you would like to try this method, add the following to your command: `--surface-recon-method mcribs`.

Note: Currently, a T2w image and pre-computed segmentation derivative must be provided to run mcribs.

Improved batch processing
*NiBabies* now automatically parses the BIDS directory for participant ages, first searching in the
participant's `session.tsv`, and falling back to `participants.tsv`. This simplifies batch submissions including multiple subjects & sessions. As a result, the `--age-months` flag has been deprecated, and will be removed in a later release.

Goodvoxels projection
An option to determine and exclude high-variance voxels from being projected to the surface when creating CIFTI files. To enable this, add `--project-goodvoxels` to your command.

Single anatomical processing
Running *NiBabies* is now less restrictive, and will still process data missing either a T1w / T2w image. However, for best results, it is recommended to collect and include both for processing.

Anat-specific derivatives inputs
Previous, *NiBabies* expected input from the `--derivatives` flag to be in T1w space, using the entity `space-orig`. This has now been changed to support derivatives in either T1w or T2w space. For more information, please see https://nibabies.readthedocs.io/en/23.1.0/faqs.html#leveraging-precomputed-results


Full Changelog
* CI: Purge codecov python package (282)
* DKR: Upgrade Docker base, c3d (275)
* DKR: Add M-CRIB-S to Docker container (283)
* DKR: Update dependencies, split into multi-stage build
* ENH: Add option to exclude projecting high variance voxels to surface (278)
* ENH: Resample morphometrics to fsLR CIFTI-2 files when outputting CIFTIs (279)
* ENH: Add MCRIBReconAll as alternative surface reconstruction method (283)
* ENH: Reorder anatomical processing, run ANTs DenoiseImage on anatomicals (286)
* ENH: Extract participant ages from BIDS sources, deprecate `--age-months` (287)
* ENH: Dilate BOLD mask by 2 voxels to prevent over-aggressive masking degrading T2star map estimation (296)
* ENH: Allow precomputed derivatives in T1w or T2w space (305)
* ENH: Add separate workflow for single anatomical processing (316)
* FIX: Improve free memory estimation (284)
* FIX: Ensure age is extracted from sessions file (291)
* FIX: Restore CIFTI medial wall masking, subcortical volume LAS reorientation (298)
* FIX: Recify "goodvoxels" surface projection (301)
* FIX: Connect derivatives mask to mcribs recon (323)
* MAINT: Drop TemplateFlowSelect patches (290)

Page 1 of 4

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.