Skip to content

Commit b5dca7c

Browse files
author
Shoshana Berleant
committed
small updates to documentation: install, tutorials, make
1 parent b2b5155 commit b5dca7c

File tree

4 files changed

+32
-37
lines changed

4 files changed

+32
-37
lines changed

Makefile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ sdist: zipdoc
1515
python setup.py sdist
1616
@echo "Done building source distribution."
1717
# XXX copy documentation.zip to dist directory.
18-
# XXX Somewhere the doc/_build directory is removed and causes
19-
# this script to fail.
2018

2119
egg: zipdoc
2220
@echo "Building egg..."
@@ -45,7 +43,10 @@ clean-build:
4543
clean-ctags:
4644
rm -f tags
4745

48-
clean: clean-build clean-pyc clean-so clean-ctags
46+
clean-doc:
47+
rm -rf doc/_build
48+
49+
clean: clean-build clean-pyc clean-so clean-ctags clean-doc
4950

5051
in: inplace # just a shortcut
5152
inplace:

doc/users/install.rst

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,14 @@ nose_ installed, then do the following::
7676

7777
you can also test with nosetests::
7878

79-
nosetests --with-doctest /software/nipy-repo/masternipype/nipype
80-
--exclude=external --exclude=testing
79+
nosetests --with-doctest <installation filepath>/nipype --exclude=external --exclude=testing
80+
81+
A successful test run should complete in a few minutes and end with
82+
something like::
83+
84+
Ran 13053 tests in 126.618s
85+
86+
OK (SKIP=66)
8187

8288
All tests should pass (unless you're missing a dependency). If SUBJECTS_DIR
8389
variable is not set some FreeSurfer related tests will fail. If any tests
@@ -89,9 +95,9 @@ tests::
8995

9096
export MATLABCMD=$pathtomatlabdir/bin/$platform/MATLAB
9197

92-
where, $pathtomatlabdir is the path to your matlab installation and
93-
$platform is the directory referring to x86 or x64 installations
94-
(typically glnxa64 on 64-bit installations).
98+
where ``$pathtomatlabdir`` is the path to your matlab installation and
99+
``$platform`` is the directory referring to x86 or x64 installations
100+
(typically ``glnxa64`` on 64-bit installations).
95101

96102
Avoiding any MATLAB calls from testing
97103
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -119,7 +125,7 @@ Must Have
119125
Nibabel_ 1.0 - 1.4
120126
Neuroimaging file i/o library.
121127

122-
Python_ 2.7
128+
Python_ 2.7 or Python_ 3
123129

124130
NetworkX_ 1.0 - 1.8
125131
Python package for working with complex networks.

doc/users/pipeline_tutorial.rst

Lines changed: 5 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -59,29 +59,12 @@ Checklist for analysis tutorials
5959
For the analysis tutorials, we will be using a slightly modified version of the
6060
FBIRN Phase I travelling data set.
6161

62-
Step 0
63-
~~~~~~
62+
# Download and extract the `Pipeline tutorial data (429MB).
63+
<https://figshare.com/articles/nipype_tutorial_data/3395806>`_
64+
(md5: d175083784c5167de4ea11b43b37c166)
6465

65-
Download and extract the `Pipeline tutorial data (429MB).
66-
<https://dl.dropbox.com/s/jzgq2nupxyz36bp/nipype-tutorial.tar.bz2>`_
67-
68-
(checksum: 56ed4b7e0aac5627d1724e9c10cd26a7)
69-
70-
71-
Step 1.
72-
~~~~~~~
73-
74-
Ensure that all programs are available by calling ``bet``, ``matlab``
75-
and then ``which spm`` within matlab to ensure you have spm5/8 in your
66+
# Ensure that all programs are available by calling ``bet``, ``matlab``
67+
and then ``which spm`` within matlab to ensure you have spm5/8/12 in your
7668
matlab path.
7769

78-
Step 2.
79-
~~~~~~~
80-
81-
You can now run the tutorial by typing ``python tutorial_script.py``
82-
within the nipype-tutorial directory. This will run a full first level
83-
analysis on two subjects following by a 1-sample t-test on their first
84-
level results. The next section goes through each section of the
85-
tutorial script and describes what it is doing.
86-
8770
.. include:: ../links_names.txt

doc/users/tutorial_101.rst

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,8 @@ realigner to the smoother in step 5.
7575
**3. Creating and configuring a workflow**
7676

7777
Here we create an instance of a workflow and indicate that it should operate in
78-
the current directory.
78+
the current directory. The workflow's output will be placed in the ``preproc``
79+
directory.
7980

8081
.. testcode::
8182

@@ -128,11 +129,13 @@ above were generated using this.
128129

129130
workflow.write_graph()
130131

131-
This creates two files graph.dot and graph_detailed.dot and if
132+
This creates two files ``graph.dot`` and ``graph_detailed.dot`` inside
133+
``./preproc`` and if
132134
graphviz_ is installed on your system it automatically converts it
133135
to png files. If graphviz is not installed you can take the dot files
134136
and load them in a graphviz visualizer elsewhere. You can specify how detailed
135-
the graph is going to be, by using "graph2use" argument which takes the following
137+
the graph is going to be, by using the ``graph2use`` argument which takes
138+
the following
136139
options:
137140

138141
* hierarchical - creates a graph showing all embedded workflows (default)
@@ -152,9 +155,11 @@ above pipeline.
152155
import nipype.algorithms.rapidart as ra
153156
artdetect = pe.Node(interface=ra.ArtifactDetect(), name='artdetect')
154157
artdetect.inputs.use_differences = [True, False]
155-
art.inputs.use_norm = True
156-
art.inputs.norm_threshold = 0.5
157-
art.inputs.zintensity_threshold = 3
158+
artdetect.inputs.use_norm = True
159+
artdetect.inputs.norm_threshold = 0.5
160+
artdetect.inputs.zintensity_threshold = 3
161+
artdetect.inputs.parameter_source = "SPM"
162+
artdetect.inputs.mask_type = "spm_global"
158163
workflow.connect([(realigner, artdetect,
159164
[('realigned_files', 'realigned_files'),
160165
('realignment_parameters','realignment_parameters')]

0 commit comments

Comments
 (0)