Skip to content

Commit acc4116

Browse files
committed
DOC: Organized existing contents
1 parent 0c813bf commit acc4116

File tree

1 file changed

+66
-76
lines changed

1 file changed

+66
-76
lines changed

README.rst

Lines changed: 66 additions & 76 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,37 @@
11
.. -*- rest -*-
22
.. vim:syntax=rst
33
4-
.. Following contents should be from LONG_DESCRIPTION in nibabel/info.py
4+
.. Following contents should be copied from LONG_DESCRIPTION in NiBabel/info.py
55
6+
=======
7+
NiBabel
8+
=======
9+
10+
Read and write access to common neuroimaging file formats, including: ANALYZE_ (plain, SPM99, SPM2 and later),
11+
GIFTI_, NIfTI1_, NIfTI2_, `CIFTI-2`_, MINC1_, MINC2_, `AFNI BRIK/HEAD`_, ECAT_ and Philips PAR/REC
12+
In addition, NiBabel also supports FreeSurfer_'s MGH_, geometry, annotation and morphometry files,
13+
and provides some limited support for DICOM_.
14+
15+
NiBabel's API gives full or selective access to header information (metadata) and access to the image
16+
data is made available via NumPy arrays. For more information, see NiBabel's `documentation site`_
17+
and `API reference`_.
18+
19+
.. _API reference: https://nipy.org/nibabel/api.html
20+
.. _AFNI BRIK/HEAD: https://afni.nimh.nih.gov/pub/dist/src/README.attributes
21+
.. _ANALYZE: http://www.grahamwideman.com/gw/brain/analyze/formatdoc.htm
22+
.. _CIFTI-2: https://www.nitrc.org/projects/cifti/
23+
.. _DICOM: http://medical.nema.org/
24+
.. _documentation site: http://nipy.org/NiBabel
25+
.. _ECAT: http://xmedcon.sourceforge.net/Docs/Ecat
26+
.. _Freesurfer: https://surfer.nmr.mgh.harvard.edu
27+
.. _GIFTI: https://www.nitrc.org/projects/gifti
28+
.. _MGH: https://surfer.nmr.mgh.harvard.edu/fswiki/FsTutorial/MghFormat
29+
.. _MINC1:
30+
https://en.wikibooks.org/wiki/MINC/Reference/MINC1_File_Format_Reference
31+
.. _MINC2:
32+
https://en.wikibooks.org/wiki/MINC/Reference/MINC2.0_File_Format_Reference
33+
.. _NIfTI1: http://nifti.nimh.nih.gov/nifti-1/
34+
.. _NIfTI2: http://nifti.nimh.nih.gov/nifti-2/
635

736
.. list-table::
837
:widths: 20 80
@@ -19,27 +48,29 @@
1948
.. image:: https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white
2049
:target: https://github.com/pre-commit/pre-commit
2150
:alt: pre-commit
22-
.. image:: https://codecov.io/gh/nipy/nibabel/branch/master/graph/badge.svg
23-
:target: https://codecov.io/gh/nipy/nibabel
51+
.. image:: https://codecov.io/gh/nipy/NiBabel/branch/master/graph/badge.svg
52+
:target: https://codecov.io/gh/nipy/NiBabel
2453
:alt: codecov badge
25-
.. image:: https://img.shields.io/librariesio/github/nipy/nibabel
26-
:target: https://libraries.io/github/nipy/nibabel
54+
.. image:: https://img.shields.io/librariesio/github/nipy/NiBabel
55+
:target: https://libraries.io/github/nipy/NiBabel
2756
:alt: Libraries.io dependency status for GitHub repo
57+
2858
* - Status
2959
-
30-
.. image:: https://github.com/nipy/nibabel/actions/workflows/stable.yml/badge.svg
31-
:target: https://github.com/nipy/nibabel/actions/workflows/stable.yml
60+
.. image:: https://github.com/nipy/NiBabel/actions/workflows/stable.yml/badge.svg
61+
:target: https://github.com/nipy/NiBabel/actions/workflows/stable.yml
3262
:alt: stable tests
33-
.. image:: https://github.com/nipy/nibabel/actions/workflows/pages/pages-build-deployment/badge.svg
34-
:target: https://github.com/nipy/nibabel/actions/workflows/pages/pages-build-deployment
63+
.. image:: https://github.com/nipy/NiBabel/actions/workflows/pages/pages-build-deployment/badge.svg
64+
:target: https://github.com/nipy/NiBabel/actions/workflows/pages/pages-build-deployment
3565
:alt: documentation build
66+
3667
* - Packaging
3768
-
3869
.. image:: https://img.shields.io/pypi/v/nibabel.svg
3970
:target: https://pypi.python.org/pypi/nibabel/
4071
:alt: PyPI version
4172
.. image:: https://img.shields.io/pypi/format/nibabel.svg
42-
:target: https://pypi.org/project/nibabel
73+
:target: https://pypi.org/project/nibabel/
4374
:alt: PyPI Format
4475
.. image:: https://img.shields.io/pypi/pyversions/nibabel.svg
4576
:target: https://pypi.python.org/pypi/nibabel/
@@ -48,8 +79,9 @@
4879
:target: https://pypi.python.org/pypi/nibabel/
4980
:alt: PyPI - Implementation
5081
.. image:: https://img.shields.io/pypi/dm/nibabel.svg
51-
:target: https://pypistats.org/packages/nibabel
82+
:target: https://pypistats.org/packages/nibabel/
5283
:alt: PyPI - Downloads
84+
5385
* - Distribution
5486
-
5587
.. image:: https://repology.org/badge/version-for-repo/aur/python:nibabel.svg?header=Arch%20%28%41%55%52%29
@@ -73,86 +105,44 @@
73105
:target: https://doi.org/10.5281/zenodo.591597
74106
:alt: Zenodo DOI
75107

108+
Installation
109+
============
76110

77-
=======
78-
NiBabel
79-
=======
111+
To install NiBabel's `current release`_ with ``pip``, run::
80112

81-
Read / write access to some common neuroimaging file formats
113+
pip install nibabel
82114

83-
This package provides read +/- write access to some common medical and
84-
neuroimaging file formats, including: ANALYZE_ (plain, SPM99, SPM2 and later),
85-
GIFTI_, NIfTI1_, NIfTI2_, `CIFTI-2`_, MINC1_, MINC2_, `AFNI BRIK/HEAD`_, MGH_ and
86-
ECAT_ as well as Philips PAR/REC. We can read and write FreeSurfer_ geometry,
87-
annotation and morphometry files. There is some very limited support for
88-
DICOM_. NiBabel is the successor of PyNIfTI_.
115+
To install the latest development version, run::
89116

90-
.. _ANALYZE: http://www.grahamwideman.com/gw/brain/analyze/formatdoc.htm
91-
.. _AFNI BRIK/HEAD: https://afni.nimh.nih.gov/pub/dist/src/README.attributes
92-
.. _NIfTI1: http://nifti.nimh.nih.gov/nifti-1/
93-
.. _NIfTI2: http://nifti.nimh.nih.gov/nifti-2/
94-
.. _CIFTI-2: https://www.nitrc.org/projects/cifti/
95-
.. _MINC1:
96-
https://en.wikibooks.org/wiki/MINC/Reference/MINC1_File_Format_Reference
97-
.. _MINC2:
98-
https://en.wikibooks.org/wiki/MINC/Reference/MINC2.0_File_Format_Reference
99-
.. _PyNIfTI: http://niftilib.sourceforge.net/pynifti/
100-
.. _GIFTI: https://www.nitrc.org/projects/gifti
101-
.. _MGH: https://surfer.nmr.mgh.harvard.edu/fswiki/FsTutorial/MghFormat
102-
.. _ECAT: http://xmedcon.sourceforge.net/Docs/Ecat
103-
.. _Freesurfer: https://surfer.nmr.mgh.harvard.edu
104-
.. _DICOM: http://medical.nema.org/
105-
106-
The various image format classes give full or selective access to header
107-
(meta) information and access to the image data is made available via NumPy
108-
arrays.
117+
pip install git+https://github.com/nipy/nibabel
109118

110-
Website
111-
=======
119+
For more information on previous releases, see the `release archive`_.
112120

113-
Current documentation on nibabel can always be found at the `NIPY nibabel
114-
website <http://nipy.org/nibabel>`_.
121+
.. _current release: https://pypi.python.org/pypi/NiBabel
122+
.. _release archive: https://github.com/nipy/NiBabel/releases
115123

116-
Mailing Lists
117-
=============
124+
Mailing List
125+
============
118126

119127
Please send any questions or suggestions to the `neuroimaging mailing list
120128
<https://mail.python.org/mailman/listinfo/neuroimaging>`_.
121129

122-
Code
123-
====
124-
125-
Install nibabel with::
126-
127-
pip install nibabel
128-
129-
You may also be interested in:
130-
131-
* the `nibabel code repository`_ on Github;
132-
* documentation_ for all releases and current development tree;
133-
* download the `current release`_ from pypi;
134-
* download `current development version`_ as a zip file;
135-
* downloads of all `available releases`_.
136-
137-
.. _nibabel code repository: https://github.com/nipy/nibabel
138-
.. _Documentation: http://nipy.org/nibabel
139-
.. _current release: https://pypi.python.org/pypi/nibabel
140-
.. _current development version: https://github.com/nipy/nibabel/archive/master.zip
141-
.. _available releases: https://github.com/nipy/nibabel/releases
142-
143130
License
144131
=======
145132

146-
Nibabel is licensed under the terms of the MIT license. Some code included
147-
with nibabel is licensed under the BSD license. Please see the COPYING file
148-
in the nibabel distribution.
133+
NiBabel is licensed under the terms of the `MIT license`_. Some code included
134+
with NiBabel is licensed under the `BSD license`_. For more information,
135+
please see the COPYING_ file.
149136

150-
Citing nibabel
151-
==============
137+
.. _BSD license: https://opensource.org/licenses/BSD-3-Clause
138+
.. _COPYING: https://github.com/nipy/nibabel/blob/master/COPYING
139+
.. _MIT license: https://github.com/nipy/nibabel/blob/master/COPYING#nibabel
152140

153-
Please see the `available releases`_ for the release of nibabel that you are
154-
using. Recent releases have a Zenodo_ `Digital Object Identifier`_ badge at
155-
the top of the release notes. Click on the badge for more information.
141+
Citation
142+
========
143+
144+
Recent NiBabel releases have a Zenodo_ `Digital Object Identifier`_ (DOI) badge at
145+
the top of the release notes. Click on the badge for more information.
156146

157-
.. _zenodo: https://zenodo.org
158147
.. _Digital Object Identifier: https://en.wikipedia.org/wiki/Digital_object_identifier
148+
.. _zenodo: https://zenodo.org

0 commit comments

Comments
 (0)