Skip to main content

Access a multitude of neuroimaging data formats

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nibabel-5.2.1.tar.gz (4.5 MB view details)

Uploaded Source

Built Distribution

nibabel-5.2.1-py3-none-any.whl (3.3 MB view details)

Uploaded Python 3

File details

Details for the file nibabel-5.2.1.tar.gz.

File metadata

  • Download URL: nibabel-5.2.1.tar.gz
  • Upload date:
  • Size: 4.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.8

File hashes

Hashes for nibabel-5.2.1.tar.gz
Algorithm Hash digest
SHA256 b6c80b2e728e4bc2b65f1142d9b8d2287a9102a8bf8477e115ef0d8334559975
MD5 e2c23b89e4bbe497c95687a29999d55f
BLAKE2b-256 9dd2da723207ba389c9d6b6d55f21dbbba8d24c08f846c42832a69d8fdbb97da

See more details on using hashes here.

File details

Details for the file nibabel-5.2.1-py3-none-any.whl.

File metadata

  • Download URL: nibabel-5.2.1-py3-none-any.whl
  • Upload date:
  • Size: 3.3 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.8

File hashes

Hashes for nibabel-5.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2cbbc22985f7f9d39d050df47249771dfb8d48447f5e7a993177e4cabfe047f0
MD5 0d0cdf169b69069ce383359ee2813ad7
BLAKE2b-256 773fce43b8c2ccc4a7913a87c4d425aaf0080ea3abf947587e47dc2025981a17

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page