Skip to content

Commit

Permalink
Merge pull request #550 from MRtrix3/doctest
Browse files Browse the repository at this point in the history
updates to user docs
  • Loading branch information
jdtournier committed Apr 15, 2016
2 parents e18d748 + ea11f19 commit e7783ef
Show file tree
Hide file tree
Showing 88 changed files with 323 additions and 69 deletions.
4 changes: 2 additions & 2 deletions docs/generate_user_docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ List of MRtrix3 commands
filepath='getting_started/commands'
filename=`basename $n`
$n __print_usage_rst__ > $filepath/$filename.rst
sed -ie "1i$filename\n===========\n" $filepath/$filename.rst
sed -ie "1i.. _$filename:\n\n$filename\n===========\n" $filepath/$filename.rst
echo "
.. include:: commands/$filename.rst
.......
Expand All @@ -36,7 +36,7 @@ Scripts for external libraries
################" > getting_started/scripts_list.rst

mkdir -p getting_started/scripts
for n in `find ../scripts/ -type f -print0 | xargs -0 grep -l "lib.app.initParser"`; do
for n in `find ../scripts/ -type f -print0 | xargs -0 grep -l "lib.app.initParser" | sort`; do
filepath='getting_started/scripts'
filename=`basename $n`
$n __print_usage_rst__ > $filepath/$filename.rst
Expand Down
2 changes: 2 additions & 0 deletions docs/getting_started/commands/5tt2gmwmi.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.. _5tt2gmwmi:

5tt2gmwmi
===========

Expand Down
2 changes: 2 additions & 0 deletions docs/getting_started/commands/5tt2vis.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.. _5tt2vis:

5tt2vis
===========

Expand Down
2 changes: 2 additions & 0 deletions docs/getting_started/commands/5ttedit.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.. _5ttedit:

5ttedit
===========

Expand Down
2 changes: 2 additions & 0 deletions docs/getting_started/commands/afdconnectivity.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.. _afdconnectivity:

afdconnectivity
===========

Expand Down
2 changes: 2 additions & 0 deletions docs/getting_started/commands/amp2sh.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.. _amp2sh:

amp2sh
===========

Expand Down
2 changes: 2 additions & 0 deletions docs/getting_started/commands/connectome2tck.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.. _connectome2tck:

connectome2tck
===========

Expand Down
2 changes: 2 additions & 0 deletions docs/getting_started/commands/dcmedit.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.. _dcmedit:

dcmedit
===========

Expand Down
2 changes: 2 additions & 0 deletions docs/getting_started/commands/dcminfo.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.. _dcminfo:

dcminfo
===========

Expand Down
2 changes: 2 additions & 0 deletions docs/getting_started/commands/dirflip.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.. _dirflip:

dirflip
===========

Expand Down
2 changes: 2 additions & 0 deletions docs/getting_started/commands/dirgen.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.. _dirgen:

dirgen
===========

Expand Down
2 changes: 2 additions & 0 deletions docs/getting_started/commands/dirmerge.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.. _dirmerge:

dirmerge
===========

Expand Down
2 changes: 2 additions & 0 deletions docs/getting_started/commands/dirorder.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.. _dirorder:

dirorder
===========

Expand Down
2 changes: 2 additions & 0 deletions docs/getting_started/commands/dirsplit.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.. _dirsplit:

dirsplit
===========

Expand Down
2 changes: 2 additions & 0 deletions docs/getting_started/commands/dirstat.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.. _dirstat:

dirstat
===========

Expand Down
2 changes: 2 additions & 0 deletions docs/getting_started/commands/dwi2adc.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.. _dwi2adc:

dwi2adc
===========

Expand Down
4 changes: 3 additions & 1 deletion docs/getting_started/commands/dwi2fod.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.. _dwi2fod:

dwi2fod
===========

Expand Down Expand Up @@ -57,7 +59,7 @@ Spherical deconvolution options

- **-threshold value** the threshold below which the amplitude of the FOD is assumed to be zero, expressed as an absolute amplitude (default = 0).

- **-niter number** the maximum number of iterations to perform for each voxel (default = 0). Use '-niter 0' for a linear unconstrained spherical deconvolution.
- **-niter number** the maximum number of iterations to perform for each voxel (default = 50). Use '-niter 0' for a linear unconstrained spherical deconvolution.

Stride options
^^^^^^^^^^^^^^
Expand Down
2 changes: 2 additions & 0 deletions docs/getting_started/commands/dwi2mask.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.. _dwi2mask:

dwi2mask
===========

Expand Down
2 changes: 2 additions & 0 deletions docs/getting_started/commands/dwi2noise.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.. _dwi2noise:

dwi2noise
===========

Expand Down
2 changes: 2 additions & 0 deletions docs/getting_started/commands/dwi2tensor.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.. _dwi2tensor:

dwi2tensor
===========

Expand Down
2 changes: 2 additions & 0 deletions docs/getting_started/commands/dwiextract.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.. _dwiextract:

dwiextract
===========

Expand Down
2 changes: 2 additions & 0 deletions docs/getting_started/commands/dwinormalise.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.. _dwinormalise:

dwinormalise
===========

Expand Down
2 changes: 2 additions & 0 deletions docs/getting_started/commands/fixel2sh.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.. _fixel2sh:

fixel2sh
===========

Expand Down
2 changes: 2 additions & 0 deletions docs/getting_started/commands/fixel2tsf.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.. _fixel2tsf:

fixel2tsf
===========

Expand Down
2 changes: 2 additions & 0 deletions docs/getting_started/commands/fixel2voxel.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.. _fixel2voxel:

fixel2voxel
===========

Expand Down
2 changes: 2 additions & 0 deletions docs/getting_started/commands/fixelcfestats.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.. _fixelcfestats:

fixelcfestats
===========

Expand Down
2 changes: 2 additions & 0 deletions docs/getting_started/commands/fixelcorrespondence.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.. _fixelcorrespondence:

fixelcorrespondence
===========

Expand Down
2 changes: 2 additions & 0 deletions docs/getting_started/commands/fixeldivide.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.. _fixeldivide:

fixeldivide
===========

Expand Down
2 changes: 2 additions & 0 deletions docs/getting_started/commands/fixelmult.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.. _fixelmult:

fixelmult
===========

Expand Down
2 changes: 2 additions & 0 deletions docs/getting_started/commands/fixelstats.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.. _fixelstats:

fixelstats
===========

Expand Down
2 changes: 2 additions & 0 deletions docs/getting_started/commands/fixelthreshold.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.. _fixelthreshold:

fixelthreshold
===========

Expand Down
2 changes: 2 additions & 0 deletions docs/getting_started/commands/fod2dec.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.. _fod2dec:

fod2dec
===========

Expand Down
2 changes: 2 additions & 0 deletions docs/getting_started/commands/fod2fixel.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.. _fod2fixel:

fod2fixel
===========

Expand Down
2 changes: 2 additions & 0 deletions docs/getting_started/commands/label2colour.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.. _label2colour:

label2colour
===========

Expand Down
2 changes: 2 additions & 0 deletions docs/getting_started/commands/label2mesh.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.. _label2mesh:

label2mesh
===========

Expand Down
2 changes: 2 additions & 0 deletions docs/getting_started/commands/labelconfig.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.. _labelconfig:

labelconfig
===========

Expand Down
2 changes: 2 additions & 0 deletions docs/getting_started/commands/maskfilter.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.. _maskfilter:

maskfilter
===========

Expand Down
2 changes: 2 additions & 0 deletions docs/getting_started/commands/mesh2pve.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.. _mesh2pve:

mesh2pve
===========

Expand Down
2 changes: 2 additions & 0 deletions docs/getting_started/commands/meshconvert.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.. _meshconvert:

meshconvert
===========

Expand Down
2 changes: 2 additions & 0 deletions docs/getting_started/commands/meshfilter.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.. _meshfilter:

meshfilter
===========

Expand Down
2 changes: 2 additions & 0 deletions docs/getting_started/commands/mrcalc.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.. _mrcalc:

mrcalc
===========

Expand Down
2 changes: 2 additions & 0 deletions docs/getting_started/commands/mrcat.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.. _mrcat:

mrcat
===========

Expand Down
2 changes: 2 additions & 0 deletions docs/getting_started/commands/mrclusterstats.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.. _mrclusterstats:

mrclusterstats
===========

Expand Down
2 changes: 2 additions & 0 deletions docs/getting_started/commands/mrconvert.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.. _mrconvert:

mrconvert
===========

Expand Down
2 changes: 2 additions & 0 deletions docs/getting_started/commands/mrcrop.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.. _mrcrop:

mrcrop
===========

Expand Down
2 changes: 2 additions & 0 deletions docs/getting_started/commands/mrfilter.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.. _mrfilter:

mrfilter
===========

Expand Down
2 changes: 2 additions & 0 deletions docs/getting_started/commands/mrinfo.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.. _mrinfo:

mrinfo
===========

Expand Down
2 changes: 2 additions & 0 deletions docs/getting_started/commands/mrmath.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.. _mrmath:

mrmath
===========

Expand Down
2 changes: 2 additions & 0 deletions docs/getting_started/commands/mrmesh.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.. _mrmesh:

mrmesh
===========

Expand Down
2 changes: 2 additions & 0 deletions docs/getting_started/commands/mrpad.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.. _mrpad:

mrpad
===========

Expand Down
2 changes: 2 additions & 0 deletions docs/getting_started/commands/mrresize.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.. _mrresize:

mrresize
===========

Expand Down
2 changes: 2 additions & 0 deletions docs/getting_started/commands/mrstats.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.. _mrstats:

mrstats
===========

Expand Down
2 changes: 2 additions & 0 deletions docs/getting_started/commands/mrthreshold.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.. _mrthreshold:

mrthreshold
===========

Expand Down
2 changes: 2 additions & 0 deletions docs/getting_started/commands/mrtransform.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.. _mrtransform:

mrtransform
===========

Expand Down
2 changes: 2 additions & 0 deletions docs/getting_started/commands/mrview.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.. _mrview:

mrview
===========

Expand Down
2 changes: 2 additions & 0 deletions docs/getting_started/commands/msdwi2fod.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.. _msdwi2fod:

msdwi2fod
===========

Expand Down
2 changes: 2 additions & 0 deletions docs/getting_started/commands/peaks2amp.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.. _peaks2amp:

peaks2amp
===========

Expand Down
2 changes: 2 additions & 0 deletions docs/getting_started/commands/sh2amp.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.. _sh2amp:

sh2amp
===========

Expand Down
2 changes: 2 additions & 0 deletions docs/getting_started/commands/sh2peaks.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.. _sh2peaks:

sh2peaks
===========

Expand Down
8 changes: 7 additions & 1 deletion docs/getting_started/commands/sh2power.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.. _sh2power:

sh2power
===========

Expand All @@ -14,11 +16,15 @@ Synopsis
Description
-----------

compute the power contained within each harmonic degree.
compute the total power of a spherical harmonics image.

This command computes the sum of squared SH coefficients, which equals the mean-squared amplitude of the spherical function it represents.

Options
-------

- **-spectrum** output the power spectrum, i.e., the power contained within each harmonic degree (l=0, 2, 4, ...) as a 4-D image.

Standard options
^^^^^^^^^^^^^^^^

Expand Down
Loading

0 comments on commit e7783ef

Please sign in to comment.