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