-
Notifications
You must be signed in to change notification settings - Fork 262
DOC: README update #1195
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
DOC: README update #1195
Changes from all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
0c813bf
DOC: Added badges and organized in table format
ZviBaratz acc4116
DOC: Organized existing contents
ZviBaratz 69df8a5
DOC: Replaced title with documentation site logo
ZviBaratz af1849b
Update README.rst
ZviBaratz b1a053d
Update README.rst
ZviBaratz 0595cc7
Update README.rst
ZviBaratz e5ad94d
Update README.rst
ZviBaratz 8ed90a9
Update README.rst
ZviBaratz 4298ccb
Update README.rst
ZviBaratz b0edd1a
Update README.rst
ZviBaratz 9ff1b7f
Update README.rst
ZviBaratz e21a923
Update README.rst
ZviBaratz 9e2780a
Update README.rst
ZviBaratz 59ea1a8
Update README.rst
ZviBaratz 19f9a44
Added missing blank line
ZviBaratz d95ef9c
Removed "Status" and "Packaging" sections
ZviBaratz 065dca5
Merge branch 'doc/readme' of https://github.com/ZviBaratz/nibabel int…
ZviBaratz bdf5667
Revised badge table sectioning
ZviBaratz b840699
Update README.rst
ZviBaratz 95c41b3
Update README.rst
ZviBaratz 08187d5
Added missing space
ZviBaratz 625c75b
Copied README content to long_description
ZviBaratz 358e575
DOC: Move logo and badges out of long description into README
effigies 6d1fd30
DOC: Update nibabel.info docstring, add line breaks for nicer pydoc e…
effigies File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,110 +1,149 @@ | ||
.. -*- rest -*- | ||
.. vim:syntax=rst | ||
|
||
.. image:: https://codecov.io/gh/nipy/nibabel/branch/master/graph/badge.svg | ||
:target: https://codecov.io/gh/nipy/nibabel | ||
|
||
.. image:: https://zenodo.org/badge/DOI/10.5281/zenodo.591597.svg | ||
:target: https://doi.org/10.5281/zenodo.591597 | ||
|
||
.. 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/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/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 | ||
|
||
.. Following contents should be from LONG_DESCRIPTION in nibabel/info.py | ||
|
||
|
||
======= | ||
NiBabel | ||
======= | ||
|
||
Read / write access to some common neuroimaging file formats | ||
|
||
This package provides read +/- write access to some common medical and | ||
neuroimaging file formats, including: ANALYZE_ (plain, SPM99, SPM2 and later), | ||
GIFTI_, NIfTI1_, NIfTI2_, `CIFTI-2`_, MINC1_, MINC2_, `AFNI BRIK/HEAD`_, MGH_ and | ||
ECAT_ as well as Philips PAR/REC. We can read and write FreeSurfer_ geometry, | ||
annotation and morphometry files. There is some very limited support for | ||
DICOM_. NiBabel is the successor of PyNIfTI_. | ||
|
||
.. _ANALYZE: http://www.grahamwideman.com/gw/brain/analyze/formatdoc.htm | ||
.. image:: 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 | ||
.. _NIfTI1: http://nifti.nimh.nih.gov/nifti-1/ | ||
.. _NIfTI2: http://nifti.nimh.nih.gov/nifti-2/ | ||
.. _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 | ||
.. _PyNIfTI: http://niftilib.sourceforge.net/pynifti/ | ||
.. _GIFTI: https://www.nitrc.org/projects/gifti | ||
.. _MGH: https://surfer.nmr.mgh.harvard.edu/fswiki/FsTutorial/MghFormat | ||
.. _ECAT: http://xmedcon.sourceforge.net/Docs/Ecat | ||
.. _Freesurfer: https://surfer.nmr.mgh.harvard.edu | ||
.. _DICOM: http://medical.nema.org/ | ||
.. _NIfTI1: http://nifti.nimh.nih.gov/nifti-1/ | ||
.. _NIfTI2: http://nifti.nimh.nih.gov/nifti-2/ | ||
|
||
The various image format classes give full or selective access to header | ||
(meta) information and access to the image data is made available via NumPy | ||
arrays. | ||
Installation | ||
============ | ||
|
||
Website | ||
======= | ||
To install NiBabel's `current release`_ with ``pip``, run:: | ||
|
||
Current documentation on nibabel can always be found at the `NIPY nibabel | ||
website <http://nipy.org/nibabel>`_. | ||
pip install nibabel | ||
|
||
Mailing Lists | ||
============= | ||
To install the latest development version, run:: | ||
|
||
Please send any questions or suggestions to the `neuroimaging mailing list | ||
<https://mail.python.org/mailman/listinfo/neuroimaging>`_. | ||
pip install git+https://github.com/nipy/nibabel | ||
|
||
Code | ||
==== | ||
When working on NiBabel itself, it may be useful to install in "editable" mode:: | ||
|
||
Install nibabel with:: | ||
git clone https://github.com/nipy/nibabel.git | ||
pip install -e ./nibabel | ||
|
||
pip install nibabel | ||
For more information on previous releases, see the `release archive`_ or | ||
`development changelog`_. | ||
|
||
You may also be interested in: | ||
.. _current release: https://pypi.python.org/pypi/NiBabel | ||
.. _release archive: https://github.com/nipy/NiBabel/releases | ||
.. _development changelog: https://nipy.org/nibabel/changelog.html | ||
|
||
* the `nibabel code repository`_ on Github; | ||
* documentation_ for all releases and current development tree; | ||
* download the `current release`_ from pypi; | ||
* download `current development version`_ as a zip file; | ||
* downloads of all `available releases`_. | ||
Mailing List | ||
============ | ||
|
||
.. _nibabel code repository: https://github.com/nipy/nibabel | ||
.. _Documentation: http://nipy.org/nibabel | ||
.. _current release: https://pypi.python.org/pypi/nibabel | ||
.. _current development version: https://github.com/nipy/nibabel/archive/master.zip | ||
.. _available releases: https://github.com/nipy/nibabel/releases | ||
Please send any questions or suggestions to the `neuroimaging mailing list | ||
<https://mail.python.org/mailman/listinfo/neuroimaging>`_. | ||
|
||
License | ||
======= | ||
|
||
Nibabel is licensed under the terms of the MIT license. Some code included | ||
with nibabel is licensed under the BSD license. Please see the COPYING file | ||
in the nibabel distribution. | ||
NiBabel is licensed under the terms of the `MIT license | ||
<https://github.com/nipy/nibabel/blob/master/COPYING#nibabel>`__. | ||
Some code included with NiBabel is licensed under the `BSD license`_. | ||
For more information, please see the COPYING_ file. | ||
|
||
Citing nibabel | ||
============== | ||
.. _BSD license: https://opensource.org/licenses/BSD-3-Clause | ||
.. _COPYING: https://github.com/nipy/nibabel/blob/master/COPYING | ||
|
||
Please see the `available releases`_ for the release of nibabel that you are | ||
using. Recent releases have a Zenodo_ `Digital Object Identifier`_ badge at | ||
the top of the release notes. Click on the badge for more information. | ||
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. | ||
|
||
.. _zenodo: https://zenodo.org | ||
.. _Digital Object Identifier: https://en.wikipedia.org/wiki/Digital_object_identifier | ||
.. _zenodo: https://zenodo.org |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.