Skip to content

Commit cfc0987

Browse files
committed
Merge branch 'master' into enh/DipyMultiTensorSimulate
2 parents 27ab170 + c1a5ea0 commit cfc0987

File tree

364 files changed

+94534
-1076
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

364 files changed

+94534
-1076
lines changed

.travis.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ cache:
22
- apt
33
language: python
44
python:
5-
- 2.6
65
- 2.7
76
env:
87
- INSTALL_DEB_DEPENDECIES=true

CHANGES

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,18 @@
11
Next release
22
============
33

4+
* ENH: New mesh.MeshWarpMaths to operate on surface-defined warpings
5+
(https://github.com/nipy/nipype/pull/1016)
6+
* FIX: Refactor P2PDistance, change name to ComputeMeshWarp, add regression tests,
7+
fix bug in area weighted distance, and added optimizations
8+
(https://github.com/nipy/nipype/pull/1016)
9+
* ENH: Add an option not to resubmit Nodes that finished running when using SGEGraph (https://github.com/nipy/nipype/pull/1002)
10+
* FIX: FUGUE is now properly listing outputs. (https://github.com/nipy/nipype/pull/978)
11+
* ENH: Improved FieldMap-Based (FMB) workflow for correction of susceptibility distortions in EPI seqs.
12+
(https://github.com/nipy/nipype/pull/1019)
13+
* ENH: Dropped support for now 7 years old Python 2.6 (https://github.com/nipy/nipype/pull/1069)
14+
* FIX: terminal_output is not mandatory anymore (https://github.com/nipy/nipype/pull/1070)
15+
* ENH: Added "nipype_cmd" tool for running interfaces from the command line (https://github.com/nipy/nipype/pull/795)
416
* FIX: Fixed Camino output naming (https://github.com/nipy/nipype/pull/1061)
517
* ENH: Add the average distance to ErrorMap (https://github.com/nipy/nipype/pull/1039)
618
* ENH: Inputs with name_source can be now chained in cascade (https://github.com/nipy/nipype/pull/938)
@@ -37,6 +49,7 @@ Next release
3749
* ENH: Usability improvements in cluster environments (https://github.com/nipy/nipype/pull/1025)
3850
* ENH: ANTs JointFusion() (https://github.com/nipy/nipype/pull/1042)
3951
* ENH: Added csvReader() utility (https://github.com/nipy/nipype/pull/1044)
52+
* FIX: typo in nipype.interfaces.freesurfer.utils.py Tkregister2 (https://github.com/nipy/nipype/pull/1083)
4053

4154
Release 0.10.0 (October 10, 2014)
4255
============

bin/nipype_cmd

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/usr/bin/env python
2+
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
3+
# vi: set ft=python sts=4 ts=4 sw=4 et:
4+
import sys
5+
from nipype.utils.nipype_cmd import main
6+
7+
if __name__ == '__main__':
8+
main(sys.argv)

doc/quickstart.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Downloading and installing
1616
Beginner's guide
1717
================
1818

19-
Beginner's tutorials (IPython Notebooks). `Availible here`__
19+
Beginner's tutorials (IPython Notebooks). `Available here`__
2020

2121
Michael Notter's Nipype guide. `Available here`__
2222

doc/users/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
saving_workflows
3838
spmmcr
3939
mipav
40+
nipypecmd
4041

4142

4243

doc/users/install.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ recommendations.
107107
Must Have
108108
~~~~~~~~~
109109

110-
Python_ 2.6 - 2.7
110+
Python_ 2.7
111111

112112
Nibabel_ 1.0 - 1.4
113113
Neuroimaging file i/o library

doc/users/nipypecmd.rst

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
.. _nipypecmd:
2+
3+
============================================================
4+
Running Nipype Interfaces from the command line (nipype_cmd)
5+
============================================================
6+
7+
The primary use of Nipype_ is to build automated non-interactive pipelines.
8+
However, sometimes there is a need to run some interfaces quickly from the command line.
9+
This is especially useful when running Interfaces wrapping code that does not have
10+
command line equivalents (nipy or SPM). Being able to run Nipype interfaces opens new
11+
possibilities such as inclusion of SPM processing steps in bash scripts.
12+
13+
To run Nipype Interafces you need to use the nipype_cmd tool that should already be installed.
14+
The tool allows you to list Interfaces available in a certain package:
15+
16+
.. testcode::
17+
18+
19+
$nipype_cmd nipype.interfaces.nipy
20+
21+
Available Interfaces:
22+
SpaceTimeRealigner
23+
Similarity
24+
ComputeMask
25+
FitGLM
26+
EstimateContrast
27+
FmriRealign4d
28+
29+
After selecting a particular Interface you can learn what inputs it requires:
30+
31+
.. testcode::
32+
33+
34+
$nipype_cmd nipype.interfaces.nipy ComputeMask --help
35+
36+
usage:nipype_cmd nipype.interfaces.nipy ComputeMask [-h] [--M M] [--cc CC]
37+
[--ignore_exception IGNORE_EXCEPTION]
38+
[--m M]
39+
[--reference_volume REFERENCE_VOLUME]
40+
mean_volume
41+
42+
Run ComputeMask
43+
44+
positional arguments:
45+
mean_volume mean EPI image, used to compute the threshold for the
46+
mask
47+
48+
optional arguments:
49+
-h, --help show this help message and exit
50+
--M M upper fraction of the histogram to be discarded
51+
--cc CC Keep only the largest connected component
52+
--ignore_exception IGNORE_EXCEPTION
53+
Print an error message instead of throwing an
54+
exception in case the interface fails to run
55+
--m M lower fraction of the histogram to be discarded
56+
--reference_volume REFERENCE_VOLUME
57+
reference volume used to compute the mask. If none is
58+
give, the mean volume is used.
59+
60+
Finally you can run run the Interface:
61+
62+
.. testcode::
63+
64+
$nipype_cmd nipype.interfaces.nipy ComputeMask mean.nii.gz
65+
66+
All that from the command line without having to start python interpreter manually.
67+
68+
.. include:: ../links_names.txt

doc/users/plugins.rst

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -136,13 +136,28 @@ particular node might use more resources than other nodes in a workflow.
136136
this local configuration::
137137

138138
node.plugin_args = {'qsub_args': '-l nodes=1:ppn=3', 'overwrite': True}
139+
140+
SGEGraph
141+
~~~~~~~~
142+
SGEGraph_ is a exuction plugin working with Sun Grid Engine that allows for
143+
submitting entire graph of dependent jobs at once. This way Nipype does not
144+
need to run a monitoring process - SGE takes care of this.
145+
146+
.. note::
147+
148+
When rerunning unfinished workflows using SGEGraph you may decide not to
149+
submit jobs for Nodes that previously finished running. This can speed up
150+
execution, but new or modified inputs that would previously trigger a Node
151+
to rerun will be ignored. The following option turns on this functionality::
152+
153+
workflow.run(plugin='SGEGraph', plugin_args = {'dont_resubmit_completed_jobs': True})
139154

140155
LSF
141156
---
142157

143-
Submitting via LSF is almost identical to SGE above above except for the optional arguments field:
158+
Submitting via LSF is almost identical to SGE above above except for the optional arguments field::
144159

145-
workflow.run(plugin='LSF')
160+
workflow.run(plugin='LSF')
146161

147162
Optional arguments::
148163

@@ -168,7 +183,7 @@ DAGMan
168183
~~~~~~
169184

170185
With its DAGMan_ component HTCondor_ (previously Condor) allows for submitting
171-
entire graphs of dependent jobs at once. With the ``CondorDAGMan`` plug-in
186+
entire graphs of dependent jobs at once (similar to SGEGraph_). With the ``CondorDAGMan`` plug-in
172187
Nipype can utilize this functionality to submit complete workflows directly and
173188
in a single step. Consequently, and in contrast to other plug-ins, workflow
174189
execution returns almost instantaneously -- Nipype is only used to generate the

examples/fmri_ants_openfmri.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ def create_reg_workflow(name='registration'):
241241

242242
warpmean = pe.Node(ants.ApplyTransforms(),
243243
name='warpmean')
244-
warpmean.inputs.input_image_type = 3
244+
warpmean.inputs.input_image_type = 0
245245
warpmean.inputs.interpolation = 'Linear'
246246
warpmean.inputs.invert_transform_flags = [False, False]
247247
warpmean.inputs.terminal_output = 'file'
@@ -257,7 +257,7 @@ def create_reg_workflow(name='registration'):
257257
warpall = pe.MapNode(ants.ApplyTransforms(),
258258
iterfield=['input_image'],
259259
name='warpall')
260-
warpall.inputs.input_image_type = 3
260+
warpall.inputs.input_image_type = 0
261261
warpall.inputs.interpolation = 'Linear'
262262
warpall.inputs.invert_transform_flags = [False, False]
263263
warpall.inputs.terminal_output = 'file'
@@ -449,7 +449,7 @@ def create_fs_reg_workflow(name='registration'):
449449
Transform the mean image. First to anatomical and then to target
450450
"""
451451
warpmean = Node(ants.ApplyTransforms(), name='warpmean')
452-
warpmean.inputs.input_image_type = 3
452+
warpmean.inputs.input_image_type = 0
453453
warpmean.inputs.interpolation = 'Linear'
454454
warpmean.inputs.invert_transform_flags = [False, False]
455455
warpmean.inputs.terminal_output = 'file'
@@ -464,7 +464,7 @@ def create_fs_reg_workflow(name='registration'):
464464
warpall = pe.MapNode(ants.ApplyTransforms(),
465465
iterfield=['input_image'],
466466
name='warpall')
467-
warpall.inputs.input_image_type = 3
467+
warpall.inputs.input_image_type = 0
468468
warpall.inputs.interpolation = 'Linear'
469469
warpall.inputs.invert_transform_flags = [False, False]
470470
warpall.inputs.terminal_output = 'file'

0 commit comments

Comments
 (0)