Skip to content

Commit 535f22c

Browse files
committed
Merge branch 'master' of github.com:nipy/nipype
2 parents dc5a543 + 4bb4dd2 commit 535f22c

38 files changed

+965
-358
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,4 @@
1414
.pydevproject
1515
.idea/
1616
/documentation.zip
17+
.DS_Store

CHANGES

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ Next release
1212
* FIX: FUGUE is now properly listing outputs. (https://github.com/nipy/nipype/pull/978)
1313
* ENH: Improved FieldMap-Based (FMB) workflow for correction of susceptibility distortions in EPI seqs.
1414
(https://github.com/nipy/nipype/pull/1019)
15+
* FIX: In the FSLXcommand _list_outputs function fixed for loop range (https://github.com/nipy/nipype/pull/1071)
1516
* ENH: Dropped support for now 7 years old Python 2.6 (https://github.com/nipy/nipype/pull/1069)
1617
* FIX: terminal_output is not mandatory anymore (https://github.com/nipy/nipype/pull/1070)
1718
* ENH: Added "nipype_cmd" tool for running interfaces from the command line (https://github.com/nipy/nipype/pull/795)
@@ -54,6 +55,12 @@ Next release
5455
* FIX: typo in nipype.interfaces.freesurfer.utils.py Tkregister2 (https://github.com/nipy/nipype/pull/1083)
5556
* FIX: SSHDataGrabber outputs now return full path to the grabbed/downloaded files. (https://github.com/nipy/nipype/pull/1086)
5657
* FIX: Add QA output for TSNR to resting workflow (https://github.com/nipy/nipype/pull/1088)
58+
* FIX: Change N4BiasFieldCorrection to use short tag for dimensionality (backward compatible) (https://github.com/nipy/nipype/pull/1096)
59+
* ENH: Added -newgrid input to Warp in AFNI (3dWarp wrapper) (https://github.com/nipy/nipype/pull/1128)
60+
* FIX: Fixed AFNI Copy interface to use positional inputs as required (https://github.com/nipy/nipype/pull/1131)
61+
* ENH: Added a check in Dcm2nii to check if nipype created the config.ini file and remove if true (https://github.com/nipy/nipype/pull/1132)
62+
* ENH: Use a while loop to wait for Xvfb (up to a max wait time "xvfb_max_wait" in config file, default 10)
63+
(https://github.com/nipy/nipype/pull/1142)
5764

5865
Release 0.10.0 (October 10, 2014)
5966
============

README.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,10 @@ to `NeuroStars.org <http://neurostars.org>`_ with a *nipype* tag. `NeuroStars.or
7777
http://neurostars.org/t/nipype/
7878
7979

80-
To participate in the Nipype development related discussion please use the following mailing list::
80+
To participate in the Nipype development related discussions please use the following mailing list::
8181
82-
http://projects.scipy.org/mailman/listinfo/nipy-devel
83-
82+
http://mail.python.org/mailman/listinfo/neuroimaging
83+
8484
Please add *[nipype]* to the subject line when posting on the mailing list.
8585

8686

@@ -124,5 +124,5 @@ There are interfaces to some GNU code but these are entirely optional.
124124
All trademarks referenced herein are property of their respective
125125
holders.
126126

127-
Copyright (c) 2009-2014, NIPY Developers
127+
Copyright (c) 2009-2015, NIPY Developers
128128
All rights reserved.

doc/quickstart.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,3 +50,13 @@ Developer guides
5050
devel/gitwash/index
5151

5252
.. include:: links_names.txt
53+
54+
Useful links for beginners
55+
===========================
56+
57+
Getting started with Python - Tutorials. `Available here`__
58+
59+
Python for Beginners `Available here`__
60+
61+
__ http://www.codecademy.com/en/tracks/python
62+
__ https://www.python.org/about/gettingstarted/

doc/users/config_file.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,9 @@ Execution
125125
all pending jobs and checking for job completion. To be nice to cluster
126126
schedulers the default is set to 60 seconds.
127127

128+
*xvfb_max_wait*
129+
Maximum time (in seconds) to wait for Xvfb to start, if the _redirect_x parameter of an Interface is True.
130+
128131
Example
129132
~~~~~~~
130133

doc/users/tutorial_101.rst

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,15 +99,15 @@ This results in a workflow containing two isolated nodes:
9999

100100
**5. Connecting nodes to each other**
101101

102-
We want to connect the output produced by realignment to the input of
103-
smoothing. This is done as follows.
102+
We want to connect the output produced by the node realignment to the input of
103+
the node smoothing. This is done as follows.
104104

105105
.. testcode::
106106

107107
workflow.connect(realigner, 'realigned_files', smoother, 'in_files')
108108

109-
or alternatively, a more flexible notation can be used. Although not shown here,
110-
the following notation can be used to connect multiple outputs from one node to
109+
110+
Although not shown here, the following notation can be used to connect multiple outputs from one node to
111111
multiple inputs (see step 7 below).
112112

113113
.. testcode::
@@ -189,3 +189,22 @@ inside which are three folders: realign, smooth and artdetect (the names
189189
of the nodes). The outputs of these routines are in these folders.
190190

191191
.. include:: ../links_names.txt
192+
193+
.. glossary::
194+
195+
pipeline
196+
Connected series of processes (processes can be run parallel and or sequential)
197+
198+
workflow
199+
(kind of synonymous to pipeline) = hosting the nodes
200+
201+
node
202+
= switching-point within a pipeline, you can give it a name (in the above example e.g. realigner),
203+
a node usually requires an or several inputs and will produce an or several outputs
204+
205+
interface
206+
= specific software (e.g. FSL, SPM ...) are wrapped in interfaces, within a node instances of an
207+
interface can be run
208+
209+
modules
210+
for each interface the according modules have to be imported in the usual pythonic manner

examples/fmri_ants_openfmri.py

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ def create_reg_workflow(name='registration'):
124124
'transformed_files',
125125
'transformed_mean',
126126
'anat2target',
127+
'mean2anat_mask'
127128
]),
128129
name='outputspec')
129130

@@ -171,6 +172,13 @@ def create_reg_workflow(name='registration'):
171172
register.connect(mean2anat, 'out_matrix_file',
172173
mean2anatbbr, 'in_matrix_file')
173174

175+
"""
176+
Create a mask of the median image coregistered to the anatomical image
177+
"""
178+
179+
mean2anat_mask = Node(fsl.BET(mask=True), name='mean2anat_mask')
180+
register.connect(mean2anatbbr, 'out_file', mean2anat_mask, 'in_file')
181+
174182
"""
175183
Convert the BBRegister transformation to ANTS ITK format
176184
"""
@@ -276,6 +284,8 @@ def create_reg_workflow(name='registration'):
276284
register.connect(warpall, 'output_image', outputnode, 'transformed_files')
277285
register.connect(mean2anatbbr, 'out_matrix_file',
278286
outputnode, 'func2anat_transform')
287+
register.connect(mean2anat_mask, 'mask_file',
288+
outputnode, 'mean2anat_mask')
279289
register.connect(reg, 'composite_transform',
280290
outputnode, 'anat2target_transform')
281291

@@ -333,7 +343,8 @@ def create_fs_reg_workflow(name='registration'):
333343
'transformed_files',
334344
'min_cost_file',
335345
'anat2target',
336-
'aparc'
346+
'aparc',
347+
'mean2anat_mask'
337348
]),
338349
name='outputspec')
339350

@@ -349,7 +360,7 @@ def create_fs_reg_workflow(name='registration'):
349360
register.connect(fssource, 'T1', convert, 'in_file')
350361

351362
# Coregister the median to the surface
352-
bbregister = Node(freesurfer.BBRegister(),
363+
bbregister = Node(freesurfer.BBRegister(registered_file=True),
353364
name='bbregister')
354365
bbregister.inputs.init = 'fsl'
355366
bbregister.inputs.contrast_type = 't2'
@@ -359,6 +370,10 @@ def create_fs_reg_workflow(name='registration'):
359370
register.connect(inputnode, 'mean_image', bbregister, 'source_file')
360371
register.connect(inputnode, 'subjects_dir', bbregister, 'subjects_dir')
361372

373+
# Create a mask of the median coregistered to the anatomical image
374+
mean2anat_mask = Node(fsl.BET(mask=True), name='mean2anat_mask')
375+
register.connect(bbregister, 'registered_file', mean2anat_mask, 'in_file')
376+
362377
"""
363378
use aparc+aseg's brain mask
364379
"""
@@ -500,6 +515,8 @@ def create_fs_reg_workflow(name='registration'):
500515
outputnode, 'out_reg_file')
501516
register.connect(bbregister, 'min_cost_file',
502517
outputnode, 'min_cost_file')
518+
register.connect(mean2anat_mask, 'mask_file',
519+
outputnode, 'mean2anat_mask')
503520
register.connect(reg, 'composite_transform',
504521
outputnode, 'anat2target_transform')
505522
register.connect(merge, 'out', outputnode, 'transforms')
@@ -964,6 +981,8 @@ def get_subs(subject_id, conds, run_id, model_id, task_id):
964981
subs.append(('/model%03d/task%03d_' % (model_id, task_id), '/'))
965982
subs.append(('_bold_dtype_mcf_bet_thresh_dil', '_mask'))
966983
subs.append(('_output_warped_image', '_anat2target'))
984+
subs.append(('median_flirt_brain_mask', 'median_brain_mask'))
985+
subs.append(('median_bbreg_brain_mask', 'median_brain_mask'))
967986
return subs
968987

969988
subsgen = pe.Node(niu.Function(input_names=['subject_id', 'conds', 'run_id',
@@ -998,6 +1017,7 @@ def get_subs(subject_id, conds, run_id, model_id, task_id):
9981017
('outputspec.motion_plots',
9991018
'qa.motion.plots'),
10001019
('outputspec.mask', 'qa.mask')])])
1020+
wf.connect(registration, 'outputspec.mean2anat_mask', datasink, 'qa.mask.mean2anat')
10011021
wf.connect(art, 'norm_files', datasink, 'qa.art.@norm')
10021022
wf.connect(art, 'intensity_files', datasink, 'qa.art.@intensity')
10031023
wf.connect(art, 'outlier_files', datasink, 'qa.art.@outlier_files')

matlabscripts/README.txt

Lines changed: 0 additions & 2 deletions
This file was deleted.

matlabscripts/parse_spm_config.m

Lines changed: 0 additions & 45 deletions
This file was deleted.

matlabscripts/parse_spm_config2.m

Lines changed: 0 additions & 54 deletions
This file was deleted.

0 commit comments

Comments
 (0)