Skip to content

Commit c75e848

Browse files
committed
Merge pull request #6 from nipy/master
Update my fork of nipype
2 parents d0640de + 2bc9ef0 commit c75e848

File tree

459 files changed

+11354
-8409
lines changed

Some content is hidden

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

459 files changed

+11354
-8409
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,4 @@
1212
.project
1313
.settings
1414
.pydevproject
15+
.idea/

.travis.yml

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,28 +4,24 @@ python:
44
- 2.7
55
# Setup anaconda
66
before_install:
7-
- if [ ${TRAVIS_PYTHON_VERSION:0:1} == "2" ]; then wget http://repo.continuum.io/miniconda/Miniconda-2.2.2-Linux-x86_64.sh -O miniconda.sh; else wget http://repo.continuum.io/miniconda/Miniconda3-2.2.2-Linux-x86_64.sh -O miniconda.sh; fi
7+
- if [ ${TRAVIS_PYTHON_VERSION:0:1} == "2" ]; then wget http://repo.continuum.io/miniconda/Miniconda-3.0.0-Linux-x86_64.sh -O miniconda.sh; else wget http://repo.continuum.io/miniconda/Miniconda3-3.0.0-Linux-x86_64.sh -O miniconda.sh; fi
88
- chmod +x miniconda.sh
99
- ./miniconda.sh -b
10-
- export PATH=/home/travis/anaconda/bin:$PATH
10+
- export PATH=/home/travis/miniconda/bin:$PATH
1111
# The next couple lines fix a crash with multiprocessing on Travis
1212
- sudo rm -rf /dev/shm
1313
- sudo ln -s /run/shm /dev/shm
14-
- sudo apt-get update -qq
15-
- sudo apt-get install lsb-release
16-
- source /etc/lsb-release
17-
- echo ${DISTRIB_CODENAME}
18-
- wget -O- http://neuro.debian.net/lists/${DISTRIB_CODENAME}.us-nh.full | sudo tee /etc/apt/sources.list.d/neurodebian.sources.list
19-
- sudo apt-key adv --recv-keys --keyserver pgp.mit.edu 2649A5A9
20-
- sudo apt-get update -qq
21-
- sudo apt-get install -qq --no-install-recommends fsl afni
22-
- sudo apt-get install -qq fsl-atlases
14+
- bash <(wget -q -O- http://neuro.debian.net/_files/neurodebian-travis.sh)
15+
- travis_retry sudo apt-get install -qq --no-install-recommends fsl afni
16+
- travis_retry sudo apt-get install -qq fsl-atlases
2317
- source /etc/fsl/fsl.sh
2418

2519
# Install packages
2620
install:
21+
- conda update --yes conda
2722
- conda create -n testenv --yes pip python=$TRAVIS_PYTHON_VERSION
2823
- source activate testenv
24+
- if [ ${TRAVIS_PYTHON_VERSION:0:1} == "2" ]; then pip install ordereddict; fi
2925
- conda install --yes numpy scipy nose traits networkx dateutil
3026
- pip install nibabel --use-mirrors
3127
- pip install python-coveralls --use-mirrors

CHANGES

Lines changed: 59 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,31 @@
1-
Next release
1+
Release 0.9.2 (January 31, 2014)
2+
===========
3+
4+
* ENH: New ANTs interface: ApplyTransformsToPoints
5+
6+
* FIX: DataFinder was broken due to a typo
7+
* FIX: Order of DataFinder outputs was not guaranteed, it's human sorted now
8+
* ENH: New interfaces: Vnifti2Image, VtoMat
9+
10+
Release 0.9.1 (December 25, 2013)
11+
============
12+
13+
* FIX: installation issues
14+
15+
Release 0.9.0 (December 20, 2013)
216
============
317

418
* ENH: SelectFiles: a streamlined version of DataGrabber
5-
* ENH: New interfaces: spm.ResliceToReference, FuzzyOverlap, afni.AFNItoNIFTI
6-
spm.DicomImport, P2PDistance
19+
* ENH: new tools for defining workflows: JoinNode, synchronize and itersource
720
* ENH: W3C PROV support with optional RDF export built into Nipype
821
* ENH: Added support for Simple Linux Utility Resource Management (SLURM)
9-
* ENHL AFNI interfaces refactor, prefix, suffix are replaced by "flexible_%s_templates"
10-
22+
* ENH: AFNI interfaces refactor, prefix, suffix are replaced by "flexible_%s_templates"
23+
* ENH: New SPM interfaces:
24+
- spm.ResliceToReference,
25+
- spm.DicomImport
26+
* ENH: New AFNI interfaces:
27+
- afni.AFNItoNIFTI
28+
- afni.TCorr1D
1129
* ENH: Several new interfaces related to Camino were added:
1230
- camino.SFPICOCalibData
1331
- camino.Conmat
@@ -16,7 +34,31 @@ Next release
1634
- camino.SFPeaks
1735
One outdated interface no longer part of Camino was removed:
1836
- camino.Conmap
19-
37+
* ENH: Three new mrtrix interfaces were added:
38+
- mrtrix.GenerateDirections
39+
- mrtrix.FindShPeaks
40+
- mrtrix.Directions2Amplitude
41+
* ENH: New FSL interfaces:
42+
- fsl.PrepareFieldmap
43+
- fsl.TOPUP
44+
- fsl.ApplyTOPUP
45+
- fsl.Eddy
46+
* ENH: New misc interfaces:
47+
- FuzzyOverlap,
48+
- P2PDistance
49+
* ENH: New workflows: nipype.workflows.dmri.fsl.epi.[fieldmap_correction&topup_correction]
50+
* ENH: Added simplified outputname generation for command line interfaces.
51+
* ENH: Allow ants use a single mask image
52+
* ENH: Create configuration option for parameterizing directories with hashes
53+
* ENH: arrange nodes by topological sort with disconnected subgraphs
54+
* ENH: uses the nidm iri namespace for uuids
55+
* ENH: remove old reporting webpage
56+
* ENH: Added support for Vagrant
57+
58+
* API: 'name' is now a positional argument for Workflow, Node, and MapNode constructors
59+
* API: SPM now defaults to SPM8 or SPM12b job format
60+
* API: DataGrabber and SelectFiles use human (or natural) sort now
61+
2062
* FIX: Several fixes related to Camino interfaces:
2163
- ProcStreamlines would ignore many arguments silently (target, waypoint, exclusion ROIS, etc.)
2264
- DTLUTGen would silently round the "step", "snr" and "trace" parameters to integers
@@ -25,29 +67,12 @@ Next release
2567
- Track input model names were outdated (and would generate an error)
2668
- Track numpds parameter could not be set for deterministic tractography
2769
- FA created output files with erroneous extension
28-
2970
* FIX: Deals properly with 3d files in SPM Realign
3071
* FIX: SPM with MCR fixed
31-
32-
* API: 'name' is now a positional argument for Workflow, Node, and MapNode constructors
33-
* API: SPM now defaults to SPM8 or SPM12b job format
34-
35-
* ENH: New FSL interfaces: fsl.PrepareFieldmap, fsl.TOPUP, fsl.ApplyTOPUP, fsl.Eddy
36-
* ENH: New workflows: nipype.workflows.dmri.fsl.epi.[fieldmap_correction&topup_correction]
37-
38-
* ENH: Added simplified outputname generation for command line interfaces.
3972
* FIX: Cleaned up input and output spec metadata
40-
41-
* ENH: Allow ants use a single mask image
42-
* ENH: Create configuration option for parameterizing directories with hashes
43-
* ENH: arrange nodes by topological sort with disconnected subgraphs
44-
* ENH: uses the nidm iri namespace for uuids
45-
* ENH: remove old reporting webpage (this is a WIP i hope to finish in a day or two)
46-
4773
* FIX: example openfmri script now makes the contrast spec a hashed input
4874
* FIX: FILMGLS compatibility with FSL 5.0.5
4975
* FIX: Freesurfer recon-all resume now avoids setting inputs
50-
5176
* FIX: File removal from node respects file associations img/hdr/mat, BRIK/HEAD
5277

5378
Release 0.8.0 (May 8, 2013)
@@ -77,7 +102,7 @@ Release 0.7.0 (Dec 18, 2012)
77102
* ENH: New interfaces: ICC, Meshfix, ants.Register, C3dAffineTool, ants.JacobianDeterminant,
78103
afni.AutoTcorrelate, DcmStack
79104
* ENH: New workflows: ants template building (both using 'ANTS' and the new 'antsRegistration')
80-
* ENH: New examples: how to use ANTS template building workflows (smri_ants_build_tmeplate),
105+
* ENH: New examples: how to use ANTS template building workflows (smri_ants_build_tmeplate),
81106
how to set SGE specific options (smri_ants_build_template_new)
82107
* ENH: added no_flatten option to Merge
83108
* ENH: added versioning option and checking to traits
@@ -139,11 +164,11 @@ Release 0.5 (Mar 10, 2012)
139164
* API: IPython plugin now invokes IPython 0.11 or greater
140165
* API: Canned workflows are now all under a different package structure
141166
* API: SpecifyModel event_info renamed to event_files
142-
* API: DataGrabber is always being rerun (unless overwrite is set to False on
167+
* API: DataGrabber is always being rerun (unless overwrite is set to False on
143168
Node level)
144-
* API: "stop_on_first_rerun" does not stop for DataGrabber (unless overwrite is
169+
* API: "stop_on_first_rerun" does not stop for DataGrabber (unless overwrite is
145170
set to True on Node level)
146-
* API: Output prefix can be set for spm nodes (SliceTiming, Realign, Coregister,
171+
* API: Output prefix can be set for spm nodes (SliceTiming, Realign, Coregister,
147172
Normalize, Smooth)
148173

149174
* ENH: Added fsl resting state workflow based on behzadi 2007 CompCorr method.
@@ -163,7 +188,7 @@ Release 0.5 (Mar 10, 2012)
163188
* ENH: IdentityNode with iterable expansion takes place after remaining Identity
164189
Node removal
165190
* ENH: Crashfile display script added
166-
* ENH: Added FmriRealign4d node wrapped from nipy
191+
* ENH: Added FmriRealign4d node wrapped from nipy
167192
* ENH: Added TBSS workflows and examples
168193
* ENH: Support for openfmri data processing
169194
* ENH: Package version check
@@ -196,8 +221,8 @@ Release 0.4 (Jun 11, 2011)
196221

197222
* API: Timestamp hashing does not use ctime anymore. Please update your hashes by
198223
running workflows with updatehash=True option
199-
NOTE: THIS IS THE DEFAULT CONFIG NOW, so unless you updatehash, workflows will
200-
rerun
224+
NOTE: THIS IS THE DEFAULT CONFIG NOW, so unless you updatehash, workflows will
225+
rerun
201226
* API: Workflow run function no longer supports (inseries, createdirsonly).
202227
Functions used in connect string must be pickleable
203228
* API: SPM EstimateContrast: ignore_derivs replaced by use_derivs
@@ -232,7 +257,7 @@ Release 0.4 (Jun 11, 2011)
232257
- ChangeDataType, Threshold, MeanImage, IsotropicSmooth, ApplyMask, TemporalFilter
233258
DilateImage, ErodeImage, SpatialFilter, UnaryMaths, BinaryMaths, MultiImageMaths
234259
* ENH: added support for networx 1.4 and improved iterable expansion
235-
* ENH: Replaced BEDPOSTX and EddyCurrent with nipype pipelines
260+
* ENH: Replaced BEDPOSTX and EddyCurrent with nipype pipelines
236261
* ENH: Ability to create a hierarchical dot file
237262
* ENH: Improved debugging information for rerunning nodes
238263
* ENH: Added 'stop_on_first_rerun' option
@@ -268,15 +293,15 @@ Release 0.3.4 (Jan 12, 2011)
268293
* ENH: Added SPM node for calculating various threshold statistics
269294
* ENH: Added distance and dissimilarity measurements
270295

271-
* BF: Diffusion toolkit gets installed
296+
* BF: Diffusion toolkit gets installed
272297
* BF: Changed FNIRT interface to accept flexible lists (rather than 4-tuples)
273298
on all options specific to different subsampling levels
274299

275300
Release 0.3.3 (Sep 16, 2010)
276301
============================
277302

278303
* API: subject_id in ModelSpec is now deprecated
279-
* API: spm.Threshold
304+
* API: spm.Threshold
280305
- does not need mask, beta, RPV anymore
281306
- takes only one image (stat_image - mind the name change)
282307
- works with SPM2 SPM.mat
@@ -291,7 +316,7 @@ Release 0.3.3 (Sep 16, 2010)
291316
* BF: Traits logic for 'requires' metadata
292317
* BF: allows workflows to be relocatable
293318
* BF: nested workflows with connections don't raise connection not found error
294-
* BF: multiple workflows with identical nodenames and iterables do not create nestsed workflows
319+
* BF: multiple workflows with identical nodenames and iterables do not create nestsed workflows
295320

296321
Release 0.3.2 (Aug 03, 2010)
297322
============================

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2009-2013, NIPY Developers
1+
Copyright (c) 2009-2014, NIPY Developers
22
All rights reserved.
33

44
Redistribution and use in source and binary forms, with or without

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,5 +103,5 @@ There are interfaces to some GNU code but these are entirely optional.
103103
All trademarks referenced herein are property of their respective
104104
holders.
105105

106-
Copyright (c) 2009-2013, NIPY Developers
106+
Copyright (c) 2009-2014, NIPY Developers
107107
All rights reserved.

Vagrantfile

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
VAGRANTFILE_API_VERSION = "2"
2+
3+
$script = <<SCRIPT
4+
5+
# Following section commented out as gridengine requires interactive
6+
# components
7+
# # Install neurodebian repo
8+
# bash <(wget -q -O- http://neuro.debian.net/_files/neurodebian-travis.sh)
9+
#
10+
# # Install grid engine
11+
# sudo apt-get install -qq gridengine-master gridengine-exec gridengine-client gridengine-qmon
12+
# # Configure: http://wiki.unixh4cks.com/index.php/Setting_up_Sun_Grid_Engine_on_Ubuntu
13+
# sudo -u sgeadmin qconf -am vagrant
14+
# qconf -au vagrant users
15+
# qconf -as neuro
16+
# qconf -ahgrp @allhosts
17+
# qconf -aattr hostgroup hostlist neuro @allhosts
18+
# qconf -aq main.q
19+
# qconf -aattr queue hostlist @allhosts main.q
20+
# qconf -aattr queue slots "2, [neuro=3]" main.q
21+
22+
# install anaconda
23+
wget http://repo.continuum.io/miniconda/Miniconda-3.0.0-Linux-x86_64.sh -O miniconda.sh
24+
chmod +x miniconda.sh
25+
./miniconda.sh -b
26+
echo "export PATH=$HOME/miniconda/bin:\\$PATH" >> .bashrc
27+
28+
# install nipype dependencies
29+
$HOME/anaconda/bin/conda update --yes conda
30+
$HOME/anaconda/bin/conda install --yes pip numpy scipy nose traits networkx
31+
$HOME/anaconda/bin/conda install --yes dateutil ipython-notebook matplotlib
32+
$HOME/anaconda/bin/pip install nibabel --use-mirrors
33+
$HOME/anaconda/bin/pip install https://github.com/RDFLib/rdflib/archive/master.zip
34+
$HOME/anaconda/bin/pip install https://github.com/satra/prov/archive/enh/rdf.zip
35+
$HOME/anaconda/bin/pip install https://github.com/nipy/nipype/archive/master.zip
36+
SCRIPT
37+
38+
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
39+
40+
config.vm.define :engine do |engine_config|
41+
42+
engine_config.vm.box = "gridneuro"
43+
#engine_config.vm.box_url = "http://files.vagrantup.com/precise64.box"
44+
engine_config.vm.box_url = "https://dl.dropboxusercontent.com/u/363467/precise64_neuro.box"
45+
engine_config.vm.network :forwarded_port, guest: 80, host: 8080
46+
47+
#engine_config.vm.network :public_network, :bridge => 'en0: Wi-Fi (AirPort)'
48+
engine_config.vm.network :private_network, ip: "192.168.100.20"
49+
engine_config.vm.hostname = 'neuro'
50+
#engine_config.vm.synced_folder "../software", "/software"
51+
#engine_config.vm.synced_folder "../data", "/data"
52+
53+
engine_config.vm.provider :virtualbox do |vb|
54+
vb.customize ["modifyvm", :id, "--cpuexecutioncap", "50"]
55+
vb.customize ["modifyvm", :id, "--ioapic", "on"]
56+
vb.customize ["modifyvm", :id, "--memory", "4096"]
57+
vb.customize ["modifyvm", :id, "--cpus", "4"]
58+
end
59+
60+
engine_config.vm.provision "shell", :privileged => false, inline: $script
61+
end
62+
end

doc/_templates/layout.html

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,13 @@
66
{{ super() }}
77
<meta name="keywords" content="nipype, neuroimaging, pipeline, workflow, parallel, python, neuroscience">
88
<script type="text/javascript">
9+
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
10+
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
11+
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
12+
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
913

10-
var _gaq = _gaq || [];
11-
var pluginUrl = '//www.google-analytics.com/plugins/ga/inpage_linkid.js';
12-
_gaq.push(['_require', 'inpage_linkid', pluginUrl]);
13-
_gaq.push(['_setAccount', 'UA-339450-7']);
14-
_gaq.push(['_setDomainName', 'none']);
15-
_gaq.push(['_setAllowLinker', true]);
16-
_gaq.push(['_trackPageview']);
17-
18-
(function() {
19-
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
20-
ga.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'stats.g.doubleclick.net/dc.js';
21-
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
22-
})();
23-
14+
ga('create', 'UA-339450-7', 'nipy.org/nipype');
15+
ga('send', 'pageview');
2416
</script>
2517
{% endblock %}
2618

doc/_templates/sidebar_versions.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ <h3>{{ _('Versions') }}</h3>
1717
<td align="left">Release</td><td align="right">Devel</td>
1818
</tr>
1919
<tr>
20-
<td align="left">0.8.0</td><td align="right">pre-0.9</td>
20+
<td align="left">0.9.2</td><td align="right">1.0-dev</td>
2121
</tr>
2222
<tr>
2323
<td align="left"><a href="{{pathto('users/install')}}">Download</a></td>

doc/documentation.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Documentation
99
:Release: |version|
1010
:Date: |today|
1111

12-
Previous versions: `0.7 <http://nipy.org/nipype/0.7>`_ `0.6 <http://nipy.org/nipype/0.6>`_
12+
Previous versions: `0.8 <http://nipy.org/nipype/0.8>`_ `0.7 <http://nipy.org/nipype/0.7>`_
1313

1414
.. container:: doc2
1515

doc/links_names.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
.. _nibabel: http://nipy.org/nibabel/
1616
.. _nipype: http://nipy.org/nipype/
1717
.. _ConnectomeViewer: http://www.connectomeviewer.org/viewer/
18+
.. _NeuroDebian: http://neuro.debian.net/
1819

1920
.. Documentation tools
2021
.. _graphviz: http://www.graphviz.org/
@@ -73,6 +74,8 @@
7374
.. _pythonxy: http://www.pythonxy.com/
7475
.. _EPD: http://www.enthought.com/products/epd.php
7576
.. _Traits: http://code.enthought.com/projects/traits/
77+
.. _Anaconda: https://store.continuum.io/cshop/anaconda/
78+
.. _Canopy: https://www.enthought.com/products/canopy/
7679

7780
.. Python imaging projects
7881
.. _PyMVPA: http://www.pymvpa.org
@@ -98,6 +101,9 @@
98101
.. _xcode: http://developer.apple.com/TOOLS/xcode
99102
.. _mingw: http://www.mingw.org
100103
.. _macports: http://www.macports.org/
104+
.. _Vagrant: http://www.vagrantup.com/
105+
.. _Docker: http://www.docker.io/
106+
.. _Virtualbox: https://www.virtualbox.org/
101107

102108
.. Functional imaging labs
103109
.. _`functional imaging laboratory`: http://www.fil.ion.ucl.ac.uk

doc/quickstart.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ Downloading and installing
1111
:maxdepth: 1
1212

1313
users/install
14+
users/vagrant
1415

1516
Beginner's guide
1617
================

doc/users/debug.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,4 +58,11 @@ performance issues.
5858
you will get a `ConcurrentLogHandler` error. Simply remove the pypeline.lock
5959
file in your home directory and continue.
6060

61+
#. One many clusters with shared NFS mounts synchronization of files across
62+
clusters may not happen before the typical NFS cache timeouts. When using
63+
PBS/LSF/SGE/Condor plugins in such cases the workflow may crash because it
64+
cannot retrieve the node result. Setting the `job_finished_timeout` can help::
65+
66+
workflow.config['execution']['job_finished_timeout'] = 65
67+
6168
.. include:: ../links_names.txt

doc/users/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
:maxdepth: 2
1212

1313
install
14+
vagrant
1415

1516
interface_tutorial
1617
caching_tutorial

0 commit comments

Comments
 (0)