nibabel

Python package to access a cacophony of neuro-imaging file formats

https://github.com/nipy/nibabel

Science Score: 49.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
    Found 3 DOI reference(s) in README
  • Academic publication links
    Links to: zenodo.org
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (10.3%) to scientific vocabulary

Keywords

afni-brik-head brain-imaging cifti-2 data-formats dicom ecat gifti minc neuroimaging nifti python streamlines tck trk
Last synced: 6 months ago · JSON representation

Repository

Python package to access a cacophony of neuro-imaging file formats

Basic Info
  • Host: GitHub
  • Owner: nipy
  • License: other
  • Language: Python
  • Default Branch: master
  • Homepage: http://nipy.org/nibabel/
  • Size: 17.8 MB
Statistics
  • Stars: 725
  • Watchers: 33
  • Forks: 266
  • Open Issues: 146
  • Releases: 42
Topics
afni-brik-head brain-imaging cifti-2 data-formats dicom ecat gifti minc neuroimaging nifti python streamlines tck trk
Created over 15 years ago · Last pushed 6 months ago
Metadata Files
Readme Changelog Contributing License Code of conduct Zenodo

README.rst

.. -*- rest -*-
.. vim:syntax=rst

.. Use raw location to ensure image shows up on PyPI
.. image:: https://raw.githubusercontent.com/nipy/nibabel/master/doc/pics/logo.png
   :target: https://nipy.org/nibabel
   :alt: NiBabel logo

.. list-table::
   :widths: 20 80
   :header-rows: 0

   * - Code
     -
      .. image:: https://img.shields.io/pypi/pyversions/nibabel.svg
         :target: https://pypi.python.org/pypi/nibabel/
         :alt: PyPI - Python Version
      .. image:: https://img.shields.io/badge/code%20style-blue-blue.svg
         :target: https://blue.readthedocs.io/en/latest/
         :alt: code style: blue
      .. image:: https://img.shields.io/badge/imports-isort-1674b1
         :target: https://pycqa.github.io/isort/
         :alt: imports: isort
      .. image:: https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white
         :target: https://github.com/pre-commit/pre-commit
         :alt: pre-commit

   * - Tests
     -
      .. image:: https://github.com/nipy/NiBabel/actions/workflows/stable.yml/badge.svg
         :target: https://github.com/nipy/NiBabel/actions/workflows/stable.yml
         :alt: stable tests
      .. image:: https://codecov.io/gh/nipy/NiBabel/branch/master/graph/badge.svg
         :target: https://codecov.io/gh/nipy/NiBabel
         :alt: codecov badge

   * - PyPI
     -
      .. image:: https://img.shields.io/pypi/v/nibabel.svg
         :target: https://pypi.python.org/pypi/nibabel/
         :alt: PyPI version
      .. image:: https://img.shields.io/pypi/dm/nibabel.svg
         :target: https://pypistats.org/packages/nibabel
         :alt: PyPI - Downloads

   * - Packages
     -
      .. image:: https://img.shields.io/conda/vn/conda-forge/nibabel
         :target: https://anaconda.org/conda-forge/nibabel
         :alt: Conda package
      .. image:: https://repology.org/badge/version-for-repo/debian_unstable/nibabel.svg?header=Debian%20Unstable
         :target: https://repology.org/project/nibabel/versions
         :alt: Debian Unstable package
      .. image:: https://repology.org/badge/version-for-repo/aur/python:nibabel.svg?header=Arch%20%28%41%55%52%29
         :target: https://repology.org/project/python:nibabel/versions
         :alt: Arch (AUR)
      .. image:: https://repology.org/badge/version-for-repo/gentoo_ovl_science/nibabel.svg?header=Gentoo%20%28%3A%3Ascience%29
         :target: https://repology.org/project/nibabel/versions
         :alt: Gentoo (::science)
      .. image:: https://repology.org/badge/version-for-repo/nix_unstable/python:nibabel.svg?header=nixpkgs%20unstable
         :target: https://repology.org/project/python:nibabel/versions
         :alt: nixpkgs unstable

   * - License & DOI
     -
      .. image:: https://img.shields.io/pypi/l/nibabel.svg
         :target: https://github.com/nipy/nibabel/blob/master/COPYING
         :alt: License
      .. image:: https://zenodo.org/badge/DOI/10.5281/zenodo.591597.svg
         :target: https://doi.org/10.5281/zenodo.591597
         :alt: Zenodo DOI

.. Following contents should be copied from LONG_DESCRIPTION in nibabel/info.py


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`_.

.. _API reference: https://nipy.org/nibabel/api.html
.. _AFNI BRIK/HEAD: https://afni.nimh.nih.gov/pub/dist/src/README.attributes
.. _ANALYZE: http://www.grahamwideman.com/gw/brain/analyze/formatdoc.htm
.. _CIFTI-2: https://www.nitrc.org/projects/cifti/
.. _DICOM: http://medical.nema.org/
.. _documentation site: http://nipy.org/nibabel
.. _ECAT: http://xmedcon.sourceforge.net/Docs/Ecat
.. _Freesurfer: https://surfer.nmr.mgh.harvard.edu
.. _GIFTI: https://www.nitrc.org/projects/gifti
.. _MGH: https://surfer.nmr.mgh.harvard.edu/fswiki/FsTutorial/MghFormat
.. _MINC1:
    https://en.wikibooks.org/wiki/MINC/Reference/MINC1_File_Format_Reference
.. _MINC2:
    https://en.wikibooks.org/wiki/MINC/Reference/MINC2.0_File_Format_Reference
.. _NIfTI1: http://nifti.nimh.nih.gov/nifti-1/
.. _NIfTI2: http://nifti.nimh.nih.gov/nifti-2/

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`_.

.. _current release: https://pypi.python.org/pypi/NiBabel
.. _release archive: https://github.com/nipy/NiBabel/releases
.. _development changelog: https://nipy.org/nibabel/changelog.html

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`_.

.. _tox: https://tox.wiki
.. _pytest: https://docs.pytest.org
.. _developer guidelines: https://nipy.org/nibabel/devel/devguide.html

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.

.. _BSD license: https://opensource.org/licenses/BSD-3-Clause
.. _COPYING: https://github.com/nipy/nibabel/blob/master/COPYING

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.

.. _Digital Object Identifier: https://en.wikipedia.org/wiki/Digital_object_identifier
.. _zenodo: https://zenodo.org

Owner

  • Name: NIPY developers
  • Login: nipy
  • Kind: organization

GitHub Events

Total
  • Create event: 8
  • Issues event: 20
  • Release event: 1
  • Watch event: 69
  • Delete event: 5
  • Issue comment event: 104
  • Push event: 27
  • Pull request review comment event: 8
  • Pull request review event: 12
  • Pull request event: 49
  • Fork event: 8
Last Year
  • Create event: 8
  • Issues event: 20
  • Release event: 1
  • Watch event: 69
  • Delete event: 5
  • Issue comment event: 104
  • Push event: 27
  • Pull request review comment event: 8
  • Pull request review event: 12
  • Pull request event: 49
  • Fork event: 8

Issues and Pull Requests

Last synced: 6 months ago

All Time
  • Total issues: 17
  • Total pull requests: 38
  • Average time to close issues: 2 months
  • Average time to close pull requests: 16 days
  • Total issue authors: 15
  • Total pull request authors: 13
  • Average comments per issue: 2.94
  • Average comments per pull request: 1.68
  • Merged pull requests: 22
  • Bot issues: 0
  • Bot pull requests: 5
Past Year
  • Issues: 4
  • Pull requests: 22
  • Average time to close issues: 9 days
  • Average time to close pull requests: 25 days
  • Issue authors: 4
  • Pull request authors: 7
  • Average comments per issue: 0.75
  • Average comments per pull request: 1.05
  • Merged pull requests: 10
  • Bot issues: 0
  • Bot pull requests: 3
Top Authors
Issue Authors
  • effigies (4)
  • neurolabusc (2)
  • sanjayankur31 (2)
  • yurivict (2)
  • yarikoptic (2)
  • larsoner (1)
  • lxmedai (1)
  • SuperLuckyKris (1)
  • sara-silvaad (1)
  • skoudoro (1)
  • drew-parsons (1)
  • joshuacwnewton (1)
  • nx10 (1)
  • musicinmybrain (1)
  • bpinsard (1)
Pull Request Authors
  • effigies (28)
  • DimitriPapadopoulos (20)
  • jhlegarreta (11)
  • moloney (7)
  • dependabot[bot] (7)
  • penguinpee (3)
  • gjpcbecq (3)
  • matthew-brett (2)
  • joshuacwnewton (1)
  • pauldmccarthy (1)
  • larsoner (1)
  • jduemose (1)
  • bthyreau (1)
  • yarikoptic (1)
  • musicinmybrain (1)
Top Labels
Issue Labels
infrastructure (2) DICOM (2) good first issue (1) enhancement (1)
Pull Request Labels
dependencies (7) github_actions (2)

Packages

  • Total packages: 1
  • Total downloads:
    • pypi 870,708 last-month
  • Total docker downloads: 114,566
  • Total dependent packages: 390
  • Total dependent repositories: 3,394
  • Total versions: 45
  • Total maintainers: 2
pypi.org: nibabel

Access a multitude of neuroimaging data formats

  • Versions: 45
  • Dependent Packages: 390
  • Dependent Repositories: 3,394
  • Downloads: 870,708 Last month
  • Docker Downloads: 114,566
Rankings
Dependent packages count: 0.1%
Dependent repos count: 0.2%
Average: 0.5%
Downloads: 0.6%
Docker downloads count: 1.0%
Maintainers (2)
Last synced: 6 months ago

Dependencies

doc-requirements.txt pypi
  • matplotlib >=1.5.3
  • numpydoc *
  • sphinx *
  • texext *
  • tomli *
dev-requirements.txt pypi
  • pytest * development
min-requirements.txt pypi
  • numpy ==1.19
  • packaging ==17
  • setuptools *
pyproject.toml pypi
  • importlib_resources python_version < '3.9'
  • numpy >=1.19
  • packaging >=17
requirements.txt pypi
  • numpy >=1.19
  • packaging >=17
  • setuptools *
.github/workflows/test.yml actions
  • actions/checkout v4 composite
  • actions/download-artifact v3 composite
  • actions/setup-python v4 composite
  • actions/upload-artifact v3 composite
  • codecov/codecov-action v3 composite
  • pypa/gh-action-pypi-publish release/v1 composite