Skip to content

nipy/nibabel

This branch is 2 commits ahead of, 82 commits behind master.

Folders and files

NameName
Last commit message
Last commit date
Oct 8, 2024
Jan 1, 2023
Oct 8, 2024
Feb 23, 2024
Oct 25, 2024
Oct 8, 2024
Jul 8, 2024
Jan 1, 2023
Jan 3, 2023
Jan 3, 2023
Oct 10, 2023
Feb 23, 2024
Oct 8, 2024
Sep 7, 2024
Mar 3, 2022
Oct 8, 2024
Aug 9, 2016
Aug 15, 2019
Oct 23, 2024
Dec 26, 2023
Jan 1, 2023
Dec 11, 2023
Jul 31, 2014
Jun 19, 2019
Feb 18, 2020
Dec 11, 2023
Sep 8, 2021
Oct 6, 2023
Oct 8, 2024
Oct 6, 2023
Oct 8, 2024

Repository files navigation

NiBabel logo
Code PyPI - Python Version code style: blue imports: isort pre-commit
Tests stable tests codecov badge
PyPI PyPI version PyPI - Downloads
Packages Conda package Debian Unstable package Arch (AUR) Gentoo (::science) nixpkgs unstable
License & DOI License Zenodo DOI

Read and write access to common neuroimaging file formats, including: ANALYZE (plain, SPM99, SPM2 and later), GIFTI, NIfTI1, NIfTI2, CIFTI-2, MINC1, MINC2, AFNI BRIK/HEAD, ECAT and Philips PAR/REC. In addition, NiBabel also supports FreeSurfer's MGH, geometry, annotation and morphometry files, and provides some limited support for DICOM.

NiBabel's API gives full or selective access to header information (metadata), and image data is made available via NumPy arrays. For more information, see NiBabel's documentation site and API reference.

Installation

To install NiBabel's current release with pip, run:

pip install nibabel

To install the latest development version, run:

pip install git+https://github.com/nipy/nibabel

When working on NiBabel itself, it may be useful to install in "editable" mode:

git clone https://github.com/nipy/nibabel.git
pip install -e ./nibabel

For more information on previous releases, see the release archive or development changelog.

Testing

During development, we recommend using tox to run nibabel tests:

git clone https://github.com/nipy/nibabel.git
cd nibabel
tox

To test an installed version of nibabel, install the test dependencies and run pytest:

pip install nibabel[test]
pytest --pyargs nibabel

For more information, consult the developer guidelines.

Mailing List

Please send any questions or suggestions to the neuroimaging mailing list.

License

NiBabel is licensed under the terms of the MIT license. Some code included with NiBabel is licensed under the BSD license. For more information, please see the COPYING file.

Citation

NiBabel releases have a Zenodo Digital Object Identifier (DOI) badge at the top of the release notes. Click on the badge for more information.