Skip to content

Commit 95752ca

Browse files
committed
doc fixes
1 parent fdd33f2 commit 95752ca

File tree

12 files changed

+129
-96
lines changed

12 files changed

+129
-96
lines changed

doc/index.rst

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -4,31 +4,31 @@
44
:width: 100 %
55
- .. container::
66

7-
Current neuroimaging software offer users an incredible opportunity to
8-
analyze data using a variety of different algorithms. However, this has
9-
resulted in a heterogeneous collection of specialized applications
10-
without transparent interoperability or a uniform operating interface.
11-
12-
*Nipype*, an open-source, community-developed initiative under the
13-
umbrella of NiPy_, is a Python project that provides a uniform interface
14-
to existing neuroimaging software and facilitates interaction between
15-
these packages within a single workflow. Nipype provides an environment
16-
that encourages interactive exploration of algorithms from different
17-
packages (e.g., ANTS_, SPM_, FSL_, FreeSurfer_, Camino_, MRtrix_, MNE_, AFNI_,
18-
Slicer_), eases the design of workflows within and between packages, and
19-
reduces the learning curve necessary to use different packages. Nipype is
20-
creating a collaborative platform for neuroimaging software development
21-
in a high-level language and addressing limitations of existing pipeline
22-
systems.
23-
24-
*Nipype* allows you to:
25-
26-
* easily interact with tools from different software packages
27-
* combine processing steps from different software packages
28-
* develop new workflows faster by reusing common steps from old ones
29-
* process data faster by running it in parallel on many cores/machines
30-
* make your research easily reproducible
31-
* share your processing workflows with the community
7+
Current neuroimaging software offer users an incredible opportunity to
8+
analyze data using a variety of different algorithms. However, this has
9+
resulted in a heterogeneous collection of specialized applications
10+
without transparent interoperability or a uniform operating interface.
11+
12+
*Nipype*, an open-source, community-developed initiative under the
13+
umbrella of NiPy_, is a Python project that provides a uniform interface
14+
to existing neuroimaging software and facilitates interaction between
15+
these packages within a single workflow. Nipype provides an environment
16+
that encourages interactive exploration of algorithms from different
17+
packages (e.g., ANTS_, SPM_, FSL_, FreeSurfer_, Camino_, MRtrix_, MNE_, AFNI_,
18+
Slicer_), eases the design of workflows within and between packages, and
19+
reduces the learning curve necessary to use different packages. Nipype is
20+
creating a collaborative platform for neuroimaging software development
21+
in a high-level language and addressing limitations of existing pipeline
22+
systems.
23+
24+
*Nipype* allows you to:
25+
26+
* easily interact with tools from different software packages
27+
* combine processing steps from different software packages
28+
* develop new workflows faster by reusing common steps from old ones
29+
* process data faster by running it in parallel on many cores/machines
30+
* make your research easily reproducible
31+
* share your processing workflows with the community
3232

3333
.. admonition:: Reference
3434

nipype/algorithms/icc.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,9 @@ def ICC_rep_anova(Y):
7878
the data Y are entered as a 'table' ie subjects are in rows and repeated
7979
measures in columns
8080
81-
--------------------------------------------------------------------------
82-
One Sample Repeated measure ANOVA
83-
Y = XB + E with X = [FaTor / Subjects]
84-
--------------------------------------------------------------------------
81+
One Sample Repeated measure ANOVA
82+
83+
Y = XB + E with X = [FaTor / Subjects]
8584
'''
8685

8786
[nb_subjects, nb_conditions] = Y.shape

nipype/algorithms/modelgen.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,10 @@ def spm_hrf(RT, P=None, fMRI_T=16):
7272
% p - parameters of the response function
7373
7474
the following code using scipy.stats.distributions.gamma
75-
doesn't return the same result as the spm_Gpdf function
76-
hrf = gamma.pdf(u, p[0]/p[2], scale=dt/p[2]) -
77-
gamma.pdf(u, p[1]/p[3], scale=dt/p[3])/p[4]
75+
doesn't return the same result as the spm_Gpdf function ::
76+
77+
hrf = gamma.pdf(u, p[0]/p[2], scale=dt/p[2]) -
78+
gamma.pdf(u, p[1]/p[3], scale=dt/p[3])/p[4]
7879
7980
>>> print spm_hrf(2)
8081
[ 0.00000000e+00 8.65660810e-02 3.74888236e-01 3.84923382e-01

nipype/interfaces/camino/calib.py

Lines changed: 19 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -187,22 +187,27 @@ class SFLUTGen(StdOutCommandLine):
187187
188188
The utility outputs two lut's, *_oneFibreSurfaceCoeffs.Bdouble and
189189
*_twoFibreSurfaceCoeffs.Bdouble. Each of these files contains big-
190-
endian doubles as standard. The format of the output is:
191-
dimensions (1 for Watson, 2 for Bingham)
192-
order (the order of the polynomial)
193-
coefficient_1
194-
coefficient_2
195-
...
196-
coefficient_N
190+
endian doubles as standard. The format of the output is: ::
191+
192+
dimensions (1 for Watson, 2 for Bingham)
193+
order (the order of the polynomial)
194+
coefficient_1
195+
coefficient_2
196+
...
197+
coefficient_N
198+
197199
In the case of the Watson, there is a single set of coefficients,
198-
which are ordered:
199-
constant, x, x^2, ..., x^order.
200+
which are ordered: ::
201+
202+
constant, x, x^2, ..., x^order.
203+
200204
In the case of the Bingham, there are two sets of coefficients (one
201-
for each surface), ordered so that:
202-
for j = 1 to order
203-
for k = 1 to order
204-
coeff_i = x^j * y^k
205-
where j+k < order
205+
for each surface), ordered so that: ::
206+
207+
for j = 1 to order
208+
for k = 1 to order
209+
coeff_i = x^j * y^k
210+
where j+k < order
206211
207212
Example
208213
---------

nipype/interfaces/camino/connectivity.py

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,13 @@ class Conmat(CommandLine):
6565
a point in a labeled region. This is done in both directions from the seed
6666
point. Streamlines are counted if they connect two target regions, one on
6767
either side of the seed point. Only the labeled region closest to the seed
68-
is counted, for example if the input contains two streamlines:
68+
is counted, for example if the input contains two streamlines: ::
69+
6970
1: A-----B------SEED---C
7071
2: A--------SEED-----------
71-
then the output would be
72+
73+
then the output would be ::
74+
7275
A,B,C
7376
0,0,0
7477
0,0,1
@@ -80,17 +83,22 @@ class Conmat(CommandLine):
8083
8184
The connected target regions can have the same label, as long as the seed
8285
point is outside of the labeled region and both ends connect to the same
83-
label (which may be in different locations). Therefore this is allowed:
86+
label (which may be in different locations). Therefore this is allowed: ::
87+
8488
A------SEED-------A
8589
8690
Such fibers will add to the diagonal elements of the matrix. To remove
8791
these entries, run procstreamlines with -endpointfile before running conmat.
8892
8993
If the seed point is inside a labled region, it counts as one end of the
90-
connection. So
94+
connection. So ::
95+
9196
----[SEED inside A]---------B
92-
counts as a connection between A and B, while
97+
98+
counts as a connection between A and B, while ::
99+
93100
C----[SEED inside A]---------B
101+
94102
counts as a connection between A and C, because C is closer to the seed point.
95103
96104
In all cases, distance to the seed point is defined along the streamline path.

nipype/interfaces/camino/convert.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -635,7 +635,7 @@ class Shredder(StdOutCommandLine):
635635
Shredder makes an initial offset of offset bytes. It then reads and outputs
636636
chunksize bytes, skips space bytes, and repeats until there is no more input.
637637
638-
If the chunksize is negative, chunks of size |chunksize| are read and the
638+
If the chunksize is negative, chunks of size chunksize are read and the
639639
byte ordering of each chunk is reversed. The whole chunk will be reversed, so
640640
the chunk must be the same size as the data type, otherwise the order of the
641641
values in the chunk, as well as their endianness, will be reversed.

nipype/interfaces/camino/dti.py

Lines changed: 16 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -107,25 +107,23 @@ class DTMetric(CommandLine):
107107
typically obtained from ComputeEigensystem.
108108
109109
The full list of statistics is:
110+
111+
- <cl> = (l1 - l2) / l1 , a measure of linearity
112+
- <cp> = (l2 - l3) / l1 , a measure of planarity
113+
- <cs> = l3 / l1 , a measure of isotropy
114+
with: cl + cp + cs = 1
115+
- <l1> = first eigenvalue
116+
- <l2> = second eigenvalue
117+
- <l3> = third eigenvalue
118+
- <tr> = l1 + l2 + l3
119+
- <md> = tr / 3
120+
- <rd> = (l2 + l3) / 2
121+
- <fa> = fractional anisotropy. (Basser et al, J Magn Reson B 1996)
122+
- <ra> = relative anisotropy (Basser et al, J Magn Reson B 1996)
123+
- <2dfa> = 2D FA of the two minor eigenvalues l2 and l3
124+
i.e. sqrt( 2 * [(l2 - <l>)^2 + (l3 - <l>)^2] / (l2^2 + l3^2) )
125+
with: <l> = (l2 + l3) / 2
110126
111-
<cl> = (l1 - l2) / l1 , a measure of linearity
112-
<cp> = (l2 - l3) / l1 , a measure of planarity
113-
<cs> = l3 / l1 , a measure of isotropy
114-
with: cl + cp + cs = 1
115-
116-
<l1> = first eigenvalue
117-
<l2> = second eigenvalue
118-
<l3> = third eigenvalue
119-
120-
<tr> = l1 + l2 + l3
121-
<md> = tr / 3
122-
<rd> = (l2 + l3) / 2
123-
<fa> = fractional anisotropy. (Basser et al, J Magn Reson B 1996)
124-
<ra> = relative anisotropy (Basser et al, J Magn Reson B 1996)
125-
126-
<2dfa> = 2D FA of the two minor eigenvalues l2 and l3
127-
i.e. sqrt( 2 * [(l2 - <l>)^2 + (l3 - <l>)^2] / (l2^2 + l3^2) )
128-
with: <l> = (l2 + l3) / 2
129127
130128
Example
131129
-------

nipype/interfaces/camino/odf.py

Lines changed: 20 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -115,12 +115,16 @@ class LinRecon(StdOutCommandLine):
115115
Reads a linear transformation from the matrix file assuming the
116116
imaging scheme specified in the scheme file. Performs the linear
117117
transformation on the data in every voxel and outputs the result to
118-
the standard output. The ouput in every voxel is actually:
118+
the standard output. The ouput in every voxel is actually: ::
119+
119120
[exit code, ln(S(0)), p1, ..., pR]
121+
120122
where p1, ..., pR are the parameters of the reconstruction.
121123
Possible exit codes are:
122-
0. No problems.
123-
6. Bad data replaced by substitution of zero.
124+
125+
- 0. No problems.
126+
- 6. Bad data replaced by substitution of zero.
127+
124128
The matrix must be R by N+M where N+M is the number of measurements
125129
and R is the number of parameters of the reconstruction. The matrix
126130
file contains binary double-precision floats. The matrix elements
@@ -216,10 +220,11 @@ class MESD(StdOutCommandLine):
216220
failed.
217221
218222
Other possible exitcodes are:
219-
5 - The optimization failed to converge
220-
-1 - Background
221-
-100 - Something wrong in the MRI data, e.g. negative or zero measurements,
222-
so that the optimization could not run.
223+
224+
- 5 - The optimization failed to converge
225+
- -1 - Background
226+
- -100 - Something wrong in the MRI data, e.g. negative or zero measurements,
227+
so that the optimization could not run.
223228
224229
The standard MESD implementation is computationally demanding, particularly
225230
as the number of measurements increases (computation is approximately O(N^2),
@@ -363,6 +368,7 @@ class SFPeaks(StdOutCommandLine):
363368
still expect similar performance levels.
364369
365370
The output for each voxel is:
371+
366372
- exitcode (inherited from the input data).
367373
- ln(A(0))
368374
- number of peaks found.
@@ -374,11 +380,13 @@ class SFPeaks(StdOutCommandLine):
374380
- direction 2 (x, y, z, f, H00, H01, H10, H11).
375381
- direction 3 (x, y, z, f, H00, H01, H10, H11).
376382
377-
H is the Hessian of f at the peak. It is the matrix:
378-
[d^2f/ds^2 d^2f/dsdt]
379-
[d^2f/dtds d^2f/dt^2]
380-
= [H00 H01]
381-
[H10 H11]
383+
H is the Hessian of f at the peak. It is the matrix: ::
384+
385+
[d^2f/ds^2 d^2f/dsdt]
386+
[d^2f/dtds d^2f/dt^2]
387+
= [H00 H01]
388+
[H10 H11]
389+
382390
where s and t are orthogonal coordinates local to the peak.
383391
384392
By default the maximum number of peak directions output in each

nipype/interfaces/fsl/epi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ class TOPUP(FSLCommand):
224224
`usage examples
225225
<http://fsl.fmrib.ox.ac.uk/fsl/fslwiki/topup/ExampleTopupFollowedByApplytopup>`_,
226226
and `exemplary config files
227-
<https://github.com/ahheckel/FSL-scripts/blob/master/rsc/fsl/fsl4/topup/b02b0.cnf`_.
227+
<https://github.com/ahheckel/FSL-scripts/blob/master/rsc/fsl/fsl4/topup/b02b0.cnf>`_.
228228
229229
Examples
230230
--------

nipype/interfaces/fsl/preprocess.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1256,7 +1256,7 @@ class FUGUE(FSLCommand):
12561256
--------
12571257
12581258
1259-
Unwarping an input image (shift map is known) ::
1259+
Unwarping an input image (shift map is known)
12601260
12611261
>>> from nipype.interfaces.fsl.preprocess import FUGUE
12621262
>>> fugue = FUGUE()
@@ -1270,7 +1270,7 @@ class FUGUE(FSLCommand):
12701270
>>> fugue.run() #doctest: +SKIP
12711271
12721272
1273-
Warping an input image (shift map is known) ::
1273+
Warping an input image (shift map is known)
12741274
12751275
>>> from nipype.interfaces.fsl.preprocess import FUGUE
12761276
>>> fugue = FUGUE()
@@ -1285,7 +1285,7 @@ class FUGUE(FSLCommand):
12851285
>>> fugue.run() #doctest: +SKIP
12861286
12871287
1288-
Computing the vsm (unwrapped phase map is known) ::
1288+
Computing the vsm (unwrapped phase map is known)
12891289
12901290
>>> from nipype.interfaces.fsl.preprocess import FUGUE
12911291
>>> fugue = FUGUE()

0 commit comments

Comments
 (0)