Access a multitude of neuroimaging data formats
Project description
Code |
|
Tests |
|
PyPI |
|
Packages |
|
License & 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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file nibabel-5.3.0.tar.gz
.
File metadata
- Download URL: nibabel-5.3.0.tar.gz
- Upload date:
- Size: 4.5 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6162184e0249b317bca42b2f43c02734a51e82ebd4ca9ee6200e25648493438e |
|
MD5 | 7c196f27bfdce70b5b52c2429207b1e4 |
|
BLAKE2b-256 | dfcbe26d2259bbbffe9bbfb4c9fa0cab67159cd60d2d966c68e2edf625f97719 |
File details
Details for the file nibabel-5.3.0-py3-none-any.whl
.
File metadata
- Download URL: nibabel-5.3.0-py3-none-any.whl
- Upload date:
- Size: 3.3 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c2232fa8422c501d84e7af76304df5d2d16e3855ab328ca2d5185defccbf8506 |
|
MD5 | 78571ef402322a35cfcd9065718bdb6e |
|
BLAKE2b-256 | c75e15fab499d8cb617e2ce62df9a6f071cd3efc6d8c14736f123c61ca3dd315 |