Skip to content

Commit a027989

Browse files
committed
sty+enh: try new style, add more content
1 parent 3598e6d commit a027989

File tree

6 files changed

+86
-49
lines changed

6 files changed

+86
-49
lines changed

docs/changes.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.. include:: ../CHANGELOG.md

docs/heuristics.rst

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ heuristic file, and some useful functions available when making one.
1515
Components
1616
==========
1717

18-
---------------------
19-
`infotodict(seqinfos)`
20-
---------------------
18+
------------------------
19+
``infotodict(seqinfos)``
20+
------------------------
2121

2222
The only required function for a heuristic, `infotodict` is used to both define
2323
the conversion outputs and specify the criteria for scan to output association.
@@ -26,46 +26,46 @@ used for the basis of outputs, as well as a `tuple` of output types. Valid types
2626
include `nii`, `nii.gz`, and `dicom`.
2727

2828
.. note::
29-
30-
An example conversion key:
31-
('sub-{subject}/func/sub-{subject}_task-test_run-{item}_bold', ('nii.gz', 'dicom'))
29+
An example conversion key
30+
31+
``('sub-{subject}/func/sub-{subject}_task-test_run-{item}_bold', ('nii.gz', 'dicom'))``
3232

3333

34-
The `seqinfos` parameter is a list of namedtuples which serves as a grouped and
34+
The ``seqinfos`` parameter is a list of namedtuples which serves as a grouped and
3535
stacked record of the DICOMs passed in. Each item in `seqinfo` contains DICOM
3636
metadata that can be used to isolate the series, and assign it to a conversion
3737
key.
3838

39-
A dictionary of {conversion key: seqinfo} is returned.
39+
A dictionary of {``conversion key``: ``seqinfo``} is returned.
4040

41-
-------------------------------
42-
`create_key(template, outtype)`
43-
-------------------------------
41+
---------------------------------
42+
``create_key(template, outtype)``
43+
---------------------------------
4444

45-
A common helper function used to create the conversion key in `infotodict`.
45+
A common helper function used to create the conversion key in ``infotodict``.
4646

47-
------------------
48-
`filter_files(fl)`
49-
------------------
47+
--------------------
48+
``filter_files(fl)``
49+
--------------------
5050

5151
A utility function used to filter any input files.
5252

5353
If this function is included, every file found will go through this filter. Any
54-
files where this function returns `True` will be filtered out.
54+
files where this function returns ``True`` will be filtered out.
5555

56-
------------------------
57-
`filter_dicom(dcm_data)`
58-
------------------------
56+
--------------------------
57+
``filter_dicom(dcm_data)``
58+
--------------------------
5959

6060
A utility function used to filter any DICOMs.
6161

6262
If this function is included, every DICOM found will go through this filter. Any
63-
DICOMs where this function returns `True` will be filtered out.
63+
DICOMs where this function returns ``True`` will be filtered out.
6464

65-
----------------------------
66-
`infotoids(seqinfos, outdir)`
67-
----------------------------
65+
-------------------------------
66+
``infotoids(seqinfos, outdir)``
67+
-------------------------------
6868

69-
Further processing on `seqinfos` to deduce/customize subject, session, and locator.
69+
Further processing on ``seqinfos`` to deduce/customize subject, session, and locator.
7070

7171
A dictionary of {"locator": locator, "session": session, "subject": subject} is returned.

docs/index.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ Contents
1212
:maxdepth: 2
1313

1414
installation
15-
../CHANGELOG
15+
changes
1616
usage
1717
heuristics
1818
tutorials
19-
API
19+
api

docs/installation.rst

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,32 +7,32 @@ Installation
77

88
Local
99
=====
10-
Released versions of HeuDiConv are available on `PyPI <https://pypi.org/project/heudiconv/>`_
11-
and `conda <https://github.com/conda-forge/heudiconv-feedstock#installing-heudiconv>`_.
12-
If installing through ``PyPI``, eg::
10+
Released versions of HeuDiConv are available on `PyPI <https://pypi.org/project/heudiconv/>`_
11+
and `conda <https://github.com/conda-forge/heudiconv-feedstock#installing-heudiconv>`_.
12+
If installing through ``PyPI``, eg::
1313

1414
pip install heudiconv[all]
1515

16-
Manual installation of `dcm2niix <https://github.com/rordenlab/dcm2niix#install>`_
17-
is required.
16+
Manual installation of `dcm2niix <https://github.com/rordenlab/dcm2niix#install>`_
17+
is required.
1818

19-
On Debian-based systems we recommend using `NeuroDebian <http://neuro.debian.net>`_
20-
which provides the `heudiconv package <http://neuro.debian.net/pkgs/heudiconv.html>`_.
19+
On Debian-based systems we recommend using `NeuroDebian <http://neuro.debian.net>`_
20+
which provides the `heudiconv package <http://neuro.debian.net/pkgs/heudiconv.html>`_.
2121

2222

2323
Docker
2424
======
25-
If `Docker <https://docs.docker.com/install/>`_ is available on your system, you
26-
can visit `our page on Docker Hub <https://hub.docker.com/r/nipy/heudiconv/tags>`_
27-
to view available releases. To pull the latest release, run::
25+
If `Docker <https://docs.docker.com/install/>`_ is available on your system, you
26+
can visit `our page on Docker Hub <https://hub.docker.com/r/nipy/heudiconv/tags>`_
27+
to view available releases. To pull the latest release, run::
2828

2929
$ docker pull nipy/heudiconv:0.5.4
3030

3131

3232
Singularity
3333
===========
34-
If `Singularity <https://www.sylabs.io/singularity/>`_ is available on your system,
35-
you can use it to pull and convert our Docker images! For example, to pull and
36-
build the latest release, you can run::
34+
If `Singularity <https://www.sylabs.io/singularity/>`_ is available on your system,
35+
you can use it to pull and convert our Docker images! For example, to pull and
36+
build the latest release, you can run::
3737

3838
$ singularity pull docker://nipy/heudiconv:0.5.4

docs/tutorials.rst

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,14 @@ User Tutorials
55
Luckily(?), we live in an era of plentiful information. Below are some links to
66
other users' tutorials covering their experience with ``heudiconv``.
77

8-
- `YouTube tutorial <https://www.youtube.com/watch?v=O1kZAuR7E00>`_ by
9-
`James Kent <https://github.com/jdkent>`_.
8+
- `YouTube tutorial <https://www.youtube.com/watch?v=O1kZAuR7E00>`_ by `James Kent <https://github.com/jdkent>`_.
109

11-
- `Walkthrough <http://reproducibility.stanford.edu/bids-tutorial-series-part-2a/>`_
12-
by the `Standard Center for Reproducible Neuroscience <http://reproducibility.stanford.edu/>`_.
10+
- `Walkthrough <http://reproducibility.stanford.edu/bids-tutorial-series-part-2a/>`_ by the `Standard Center for Reproducible Neuroscience <http://reproducibility.stanford.edu/>`_.
1311

14-
- `U of A Neuroimaging Core <https://neuroimaging-core-docs.readthedocs.io/en/latest/pages/heudiconv.html>`_
15-
by `Dianne Patterson <https://github.com/dkp>`_.
12+
- `U of A Neuroimaging Core <https://neuroimaging-core-docs.readthedocs.io/en/latest/pages/heudiconv.html>`_ by `Dianne Patterson <https://github.com/dkp>`_.
1613

1714
- `Sample Conversion: Coastal Coding 2019 <http://www.repronim.org/coco2019-training/presentations/heudiconv/#1>`_.
1815

19-
.. note::
20-
21-
Keep in mind, some of these tutorials may not be 100% up to date with
16+
.. caution::
17+
Some of these tutorials may not be up to date with
2218
the latest releases of ``heudiconv``.

docs/usage.rst

Lines changed: 41 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,44 @@
1-
## How it works (in some more detail)
1+
=====
2+
Usage
3+
=====
4+
5+
``heudiconv`` processes DICOM files and converts the output into user defined
6+
paths.
7+
8+
CommandLine Arguments
9+
======================
10+
11+
.. argparse::
12+
:ref: heudiconv.cli.run.get_parser
13+
:prog: heudiconv
14+
:nodefault:
15+
:nodefaultconst:
16+
17+
18+
Support
19+
=======
20+
21+
All bugs, concerns and enhancement requests for this software can be submitted here:
22+
https://github.com/nipy/heudiconv/issues.
23+
24+
If you have a problem or would like to ask a question about how to use ``heudiconv``,
25+
please submit a question to `NeuroStars.org <http://neurostars.org/tags/heudiconv>`_ with a ``heudiconv`` tag.
26+
NeuroStars.org is a platform similar to StackOverflow but dedicated to neuroinformatics.
27+
28+
All previous ``heudiconv`` questions are available here:
29+
http://neurostars.org/tags/heudiconv/
30+
31+
32+
Batch example
33+
=============
34+
35+
``heudiconv`` can greatly facilitate large scale conversions
36+
37+
38+
*******************************************************************************************
39+
*******************************************************************************************
40+
*******************************************************************************************
41+
*******************************************************************************************
242

343
Call `heudiconv` like this:
444

0 commit comments

Comments
 (0)