|
1 | 1 | .. -*- rest -*-
|
2 | 2 | .. vim:syntax=rst
|
3 | 3 |
|
4 |
| -.. image:: https://codecov.io/gh/nipy/nibabel/branch/master/graph/badge.svg |
5 |
| - :target: https://codecov.io/gh/nipy/nibabel |
6 |
| - |
7 |
| -.. image:: https://zenodo.org/badge/DOI/10.5281/zenodo.591597.svg |
8 |
| - :target: https://doi.org/10.5281/zenodo.591597 |
9 |
| - |
10 |
| -.. image:: https://repology.org/badge/version-for-repo/aur/python:nibabel.svg?header=Arch%20%28%41%55%52%29 |
11 |
| - :target: https://repology.org/project/python:nibabel/versions |
12 |
| - :alt: Arch (AUR) |
13 |
| - |
14 |
| -.. image:: https://repology.org/badge/version-for-repo/debian_unstable/nibabel.svg?header=Debian%20Unstable |
15 |
| - :target: https://repology.org/project/nibabel/versions |
16 |
| - :alt: Debian Unstable package |
17 |
| - |
18 |
| -.. image:: https://repology.org/badge/version-for-repo/gentoo_ovl_science/nibabel.svg?header=Gentoo%20%28%3A%3Ascience%29 |
19 |
| - :target: https://repology.org/project/nibabel/versions |
20 |
| - :alt: Gentoo (::science) |
21 |
| - |
22 |
| -.. image:: https://repology.org/badge/version-for-repo/nix_unstable/python:nibabel.svg?header=nixpkgs%20unstable |
23 |
| - :target: https://repology.org/project/python:nibabel/versions |
24 |
| - :alt: nixpkgs unstable |
25 |
| - |
26 |
| -.. Following contents should be from LONG_DESCRIPTION in nibabel/info.py |
27 |
| -
|
28 |
| -
|
29 |
| -======= |
30 |
| -NiBabel |
31 |
| -======= |
32 |
| - |
33 |
| -Read / write access to some common neuroimaging file formats |
34 |
| - |
35 |
| -This package provides read +/- write access to some common medical and |
36 |
| -neuroimaging file formats, including: ANALYZE_ (plain, SPM99, SPM2 and later), |
37 |
| -GIFTI_, NIfTI1_, NIfTI2_, `CIFTI-2`_, MINC1_, MINC2_, `AFNI BRIK/HEAD`_, MGH_ and |
38 |
| -ECAT_ as well as Philips PAR/REC. We can read and write FreeSurfer_ geometry, |
39 |
| -annotation and morphometry files. There is some very limited support for |
40 |
| -DICOM_. NiBabel is the successor of PyNIfTI_. |
41 |
| - |
42 |
| -.. _ANALYZE: http://www.grahamwideman.com/gw/brain/analyze/formatdoc.htm |
| 4 | +.. image:: doc/pics/logo.png |
| 5 | + :target: https://nipy.org/nibabel |
| 6 | + :alt: NiBabel logo |
| 7 | + |
| 8 | +.. list-table:: |
| 9 | + :widths: 20 80 |
| 10 | + :header-rows: 0 |
| 11 | + |
| 12 | + * - Code |
| 13 | + - |
| 14 | + .. image:: https://img.shields.io/pypi/pyversions/nibabel.svg |
| 15 | + :target: https://pypi.python.org/pypi/nibabel/ |
| 16 | + :alt: PyPI - Python Version |
| 17 | + .. image:: https://img.shields.io/badge/code%20style-blue-blue.svg |
| 18 | + :target: https://blue.readthedocs.io/en/latest/ |
| 19 | + :alt: code style: blue |
| 20 | + .. image:: https://img.shields.io/badge/imports-isort-1674b1 |
| 21 | + :target: https://pycqa.github.io/isort/ |
| 22 | + :alt: imports: isort |
| 23 | + .. image:: https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white |
| 24 | + :target: https://github.com/pre-commit/pre-commit |
| 25 | + :alt: pre-commit |
| 26 | + |
| 27 | + * - Tests |
| 28 | + - |
| 29 | + .. image:: https://github.com/nipy/NiBabel/actions/workflows/stable.yml/badge.svg |
| 30 | + :target: https://github.com/nipy/NiBabel/actions/workflows/stable.yml |
| 31 | + :alt: stable tests |
| 32 | + .. image:: https://codecov.io/gh/nipy/NiBabel/branch/master/graph/badge.svg |
| 33 | + :target: https://codecov.io/gh/nipy/NiBabel |
| 34 | + :alt: codecov badge |
| 35 | + |
| 36 | + * - PyPI |
| 37 | + - |
| 38 | + .. image:: https://img.shields.io/pypi/v/nibabel.svg |
| 39 | + :target: https://pypi.python.org/pypi/nibabel/ |
| 40 | + :alt: PyPI version |
| 41 | + .. image:: https://img.shields.io/pypi/dm/nibabel.svg |
| 42 | + :target: https://pypistats.org/packages/nibabel |
| 43 | + :alt: PyPI - Downloads |
| 44 | + |
| 45 | + * - Packages |
| 46 | + - |
| 47 | + .. image:: https://img.shields.io/conda/vn/conda-forge/nibabel |
| 48 | + :target: https://anaconda.org/conda-forge/nibabel |
| 49 | + :alt: Conda package |
| 50 | + .. image:: https://repology.org/badge/version-for-repo/debian_unstable/nibabel.svg?header=Debian%20Unstable |
| 51 | + :target: https://repology.org/project/nibabel/versions |
| 52 | + :alt: Debian Unstable package |
| 53 | + .. image:: https://repology.org/badge/version-for-repo/aur/python:nibabel.svg?header=Arch%20%28%41%55%52%29 |
| 54 | + :target: https://repology.org/project/python:nibabel/versions |
| 55 | + :alt: Arch (AUR) |
| 56 | + .. image:: https://repology.org/badge/version-for-repo/gentoo_ovl_science/nibabel.svg?header=Gentoo%20%28%3A%3Ascience%29 |
| 57 | + :target: https://repology.org/project/nibabel/versions |
| 58 | + :alt: Gentoo (::science) |
| 59 | + .. image:: https://repology.org/badge/version-for-repo/nix_unstable/python:nibabel.svg?header=nixpkgs%20unstable |
| 60 | + :target: https://repology.org/project/python:nibabel/versions |
| 61 | + :alt: nixpkgs unstable |
| 62 | + |
| 63 | + * - License & DOI |
| 64 | + - |
| 65 | + .. image:: https://img.shields.io/pypi/l/nibabel.svg |
| 66 | + :target: https://github.com/nipy/nibabel/blob/master/COPYING |
| 67 | + :alt: License |
| 68 | + .. image:: https://zenodo.org/badge/DOI/10.5281/zenodo.591597.svg |
| 69 | + :target: https://doi.org/10.5281/zenodo.591597 |
| 70 | + :alt: Zenodo DOI |
| 71 | + |
| 72 | +.. Following contents should be copied from LONG_DESCRIPTION in nibabel/info.py |
| 73 | +
|
| 74 | +
|
| 75 | +Read and write access to common neuroimaging file formats, including: |
| 76 | +ANALYZE_ (plain, SPM99, SPM2 and later), GIFTI_, NIfTI1_, NIfTI2_, `CIFTI-2`_, |
| 77 | +MINC1_, MINC2_, `AFNI BRIK/HEAD`_, ECAT_ and Philips PAR/REC. |
| 78 | +In addition, NiBabel also supports FreeSurfer_'s MGH_, geometry, annotation and |
| 79 | +morphometry files, and provides some limited support for DICOM_. |
| 80 | + |
| 81 | +NiBabel's API gives full or selective access to header information (metadata), |
| 82 | +and image data is made available via NumPy arrays. For more information, see |
| 83 | +NiBabel's `documentation site`_ and `API reference`_. |
| 84 | + |
| 85 | +.. _API reference: https://nipy.org/nibabel/api.html |
43 | 86 | .. _AFNI BRIK/HEAD: https://afni.nimh.nih.gov/pub/dist/src/README.attributes
|
44 |
| -.. _NIfTI1: http://nifti.nimh.nih.gov/nifti-1/ |
45 |
| -.. _NIfTI2: http://nifti.nimh.nih.gov/nifti-2/ |
| 87 | +.. _ANALYZE: http://www.grahamwideman.com/gw/brain/analyze/formatdoc.htm |
46 | 88 | .. _CIFTI-2: https://www.nitrc.org/projects/cifti/
|
| 89 | +.. _DICOM: http://medical.nema.org/ |
| 90 | +.. _documentation site: http://nipy.org/nibabel |
| 91 | +.. _ECAT: http://xmedcon.sourceforge.net/Docs/Ecat |
| 92 | +.. _Freesurfer: https://surfer.nmr.mgh.harvard.edu |
| 93 | +.. _GIFTI: https://www.nitrc.org/projects/gifti |
| 94 | +.. _MGH: https://surfer.nmr.mgh.harvard.edu/fswiki/FsTutorial/MghFormat |
47 | 95 | .. _MINC1:
|
48 | 96 | https://en.wikibooks.org/wiki/MINC/Reference/MINC1_File_Format_Reference
|
49 | 97 | .. _MINC2:
|
50 | 98 | https://en.wikibooks.org/wiki/MINC/Reference/MINC2.0_File_Format_Reference
|
51 |
| -.. _PyNIfTI: http://niftilib.sourceforge.net/pynifti/ |
52 |
| -.. _GIFTI: https://www.nitrc.org/projects/gifti |
53 |
| -.. _MGH: https://surfer.nmr.mgh.harvard.edu/fswiki/FsTutorial/MghFormat |
54 |
| -.. _ECAT: http://xmedcon.sourceforge.net/Docs/Ecat |
55 |
| -.. _Freesurfer: https://surfer.nmr.mgh.harvard.edu |
56 |
| -.. _DICOM: http://medical.nema.org/ |
| 99 | +.. _NIfTI1: http://nifti.nimh.nih.gov/nifti-1/ |
| 100 | +.. _NIfTI2: http://nifti.nimh.nih.gov/nifti-2/ |
57 | 101 |
|
58 |
| -The various image format classes give full or selective access to header |
59 |
| -(meta) information and access to the image data is made available via NumPy |
60 |
| -arrays. |
| 102 | +Installation |
| 103 | +============ |
61 | 104 |
|
62 |
| -Website |
63 |
| -======= |
| 105 | +To install NiBabel's `current release`_ with ``pip``, run:: |
64 | 106 |
|
65 |
| -Current documentation on nibabel can always be found at the `NIPY nibabel |
66 |
| -website <http://nipy.org/nibabel>`_. |
| 107 | + pip install nibabel |
67 | 108 |
|
68 |
| -Mailing Lists |
69 |
| -============= |
| 109 | +To install the latest development version, run:: |
70 | 110 |
|
71 |
| -Please send any questions or suggestions to the `neuroimaging mailing list |
72 |
| -<https://mail.python.org/mailman/listinfo/neuroimaging>`_. |
| 111 | + pip install git+https://github.com/nipy/nibabel |
73 | 112 |
|
74 |
| -Code |
75 |
| -==== |
| 113 | +When working on NiBabel itself, it may be useful to install in "editable" mode:: |
76 | 114 |
|
77 |
| -Install nibabel with:: |
| 115 | + git clone https://github.com/nipy/nibabel.git |
| 116 | + pip install -e ./nibabel |
78 | 117 |
|
79 |
| - pip install nibabel |
| 118 | +For more information on previous releases, see the `release archive`_ or |
| 119 | +`development changelog`_. |
80 | 120 |
|
81 |
| -You may also be interested in: |
| 121 | +.. _current release: https://pypi.python.org/pypi/NiBabel |
| 122 | +.. _release archive: https://github.com/nipy/NiBabel/releases |
| 123 | +.. _development changelog: https://nipy.org/nibabel/changelog.html |
82 | 124 |
|
83 |
| -* the `nibabel code repository`_ on Github; |
84 |
| -* documentation_ for all releases and current development tree; |
85 |
| -* download the `current release`_ from pypi; |
86 |
| -* download `current development version`_ as a zip file; |
87 |
| -* downloads of all `available releases`_. |
| 125 | +Mailing List |
| 126 | +============ |
88 | 127 |
|
89 |
| -.. _nibabel code repository: https://github.com/nipy/nibabel |
90 |
| -.. _Documentation: http://nipy.org/nibabel |
91 |
| -.. _current release: https://pypi.python.org/pypi/nibabel |
92 |
| -.. _current development version: https://github.com/nipy/nibabel/archive/master.zip |
93 |
| -.. _available releases: https://github.com/nipy/nibabel/releases |
| 128 | +Please send any questions or suggestions to the `neuroimaging mailing list |
| 129 | +<https://mail.python.org/mailman/listinfo/neuroimaging>`_. |
94 | 130 |
|
95 | 131 | License
|
96 | 132 | =======
|
97 | 133 |
|
98 |
| -Nibabel is licensed under the terms of the MIT license. Some code included |
99 |
| -with nibabel is licensed under the BSD license. Please see the COPYING file |
100 |
| -in the nibabel distribution. |
| 134 | +NiBabel is licensed under the terms of the `MIT license |
| 135 | +<https://github.com/nipy/nibabel/blob/master/COPYING#nibabel>`__. |
| 136 | +Some code included with NiBabel is licensed under the `BSD license`_. |
| 137 | +For more information, please see the COPYING_ file. |
101 | 138 |
|
102 |
| -Citing nibabel |
103 |
| -============== |
| 139 | +.. _BSD license: https://opensource.org/licenses/BSD-3-Clause |
| 140 | +.. _COPYING: https://github.com/nipy/nibabel/blob/master/COPYING |
104 | 141 |
|
105 |
| -Please see the `available releases`_ for the release of nibabel that you are |
106 |
| -using. Recent releases have a Zenodo_ `Digital Object Identifier`_ badge at |
107 |
| -the top of the release notes. Click on the badge for more information. |
| 142 | +Citation |
| 143 | +======== |
| 144 | + |
| 145 | +NiBabel releases have a Zenodo_ `Digital Object Identifier`_ (DOI) badge at |
| 146 | +the top of the release notes. Click on the badge for more information. |
108 | 147 |
|
109 |
| -.. _zenodo: https://zenodo.org |
110 | 148 | .. _Digital Object Identifier: https://en.wikipedia.org/wiki/Digital_object_identifier
|
| 149 | +.. _zenodo: https://zenodo.org |
0 commit comments