Skip to content

Commit 603ae77

Browse files
committed
Merge upstream/master [skip ci]
2 parents 7d80634 + f3b0912 commit 603ae77

File tree

16 files changed

+352
-229
lines changed

16 files changed

+352
-229
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
.DS_Store
2020
nipype/testing/data/von-ray_errmap.nii.gz
2121
nipype/testing/data/von_errmap.nii.gz
22+
nipype/testing/data/.proc*
2223
crash*.pklz
2324
.coverage
2425
htmlcov/

CHANGES

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ Upcoming release (0.14.1)
22
=========================
33

44
* FIX: Errors parsing ``$DISPLAY`` (https://github.com/nipy/nipype/pull/2363)
5+
* FIX: MultiProc starting workers at dubious wd (https://github.com/nipy/nipype/pull/2368)
6+
* REF+FIX: Move BIDSDataGrabber to `interfaces.io` + fix correct default behavior (https://github.com/nipy/nipype/pull/2336)
7+
* ENH: Add AFNI interface for 3dConvertDset (https://github.com/nipy/nipype/pull/2337)
58
* MAINT: Cleanup EngineBase (https://github.com/nipy/nipype/pull/2376)
69
* FIX: Robustly handled outputs of 3dFWHMx across different versions of AFNI (https://github.com/nipy/nipype/pull/2373)
710
* FIX: Cluster threshold in randomise + change default prefix (https://github.com/nipy/nipype/pull/2369)

doc/quickstart.rst

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,12 @@ __ http://nipy.org/workshops/2017-03-boston/index.html
4343

4444
`All notebooks visualized <http://nbviewer.jupyter.org/github/nipy/workshops/tree/master/170327-nipype/notebooks/>`_
4545

46+
Learning Resources
47+
==================
48+
49+
`Porcupine <https://timvanmourik.github.io/Porcupine/getting-started/>`_ : create Nipype pipelines using a graphical interface
50+
View the `examples gallery here <https://timvanmourik.github.io/Porcupine/examples/>`_
51+
4652
Developer guides
4753
================
4854

@@ -52,4 +58,3 @@ Developer guides
5258
devel/writing_custom_interfaces
5359

5460
.. include:: links_names.txt
55-

nipype/interfaces/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@
1010
absolute_import)
1111
__docformat__ = 'restructuredtext'
1212

13-
from .io import DataGrabber, DataSink, SelectFiles
13+
from .io import DataGrabber, DataSink, SelectFiles, BIDSDataGrabber
1414
from .utility import IdentityInterface, Rename, Function, Select, Merge

nipype/interfaces/afni/__init__.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,10 @@
1515
ROIStats, Retroicor, Seg, SkullStrip, TCorr1D, TCorrMap, TCorrelate, TNorm,
1616
TShift, Volreg, Warp, QwarpPlusMinus, Qwarp)
1717
from .svm import (SVMTest, SVMTrain)
18-
from .utils import (ABoverlap, AFNItoNIFTI, Autobox, Axialize, BrickStat,
19-
Bucket, Calc, Cat, CatMatvec, CenterMass, Copy, Dot, Edge3,
20-
Eval, FWHMx, MaskTool, Merge, Notes, NwarpApply, NwarpCat,
21-
OneDToolPy, Refit, Resample, TCat, TCatSubBrick, TStat,
22-
To3D, Unifize, Undump, ZCutUp, GCOR, Zcat, Zeropad)
18+
from .utils import (
19+
ABoverlap, AFNItoNIFTI, Autobox, Axialize, BrickStat, Bucket, Calc, Cat,
20+
CatMatvec, CenterMass, ConvertDset, Copy, Dot, Edge3, Eval, FWHMx,
21+
MaskTool, Merge, Notes, NwarpApply, NwarpCat, OneDToolPy, Refit, Resample,
22+
TCat, TCatSubBrick, TStat, To3D, Unifize, Undump, ZCutUp, GCOR, Zcat,
23+
Zeropad)
2324
from .model import (Deconvolve, Remlfit, Synthesize)
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT
2+
from __future__ import unicode_literals
3+
from ..utils import ConvertDset
4+
5+
6+
def test_ConvertDset_inputs():
7+
input_map = dict(args=dict(argstr='%s',
8+
),
9+
environ=dict(nohash=True,
10+
usedefault=True,
11+
),
12+
ignore_exception=dict(deprecated='1.0.0',
13+
nohash=True,
14+
usedefault=True,
15+
),
16+
in_file=dict(argstr='-input %s',
17+
mandatory=True,
18+
position=-2,
19+
),
20+
out_file=dict(argstr='-prefix %s',
21+
position=-1,
22+
),
23+
out_type=dict(argstr='-o_%s',
24+
mandatory=True,
25+
position=0,
26+
),
27+
terminal_output=dict(deprecated='1.0.0',
28+
nohash=True,
29+
),
30+
)
31+
inputs = ConvertDset.input_spec()
32+
33+
for key, metadata in list(input_map.items()):
34+
for metakey, value in list(metadata.items()):
35+
assert getattr(inputs.traits()[key], metakey) == value
36+
37+
38+
def test_ConvertDset_outputs():
39+
output_map = dict(out_file=dict(),
40+
)
41+
outputs = ConvertDset.output_spec()
42+
43+
for key, metadata in list(output_map.items()):
44+
for metakey, value in list(metadata.items()):
45+
assert getattr(outputs.traits()[key], metakey) == value

nipype/interfaces/afni/utils.py

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -712,6 +712,59 @@ def _list_outputs(self):
712712
return outputs
713713

714714

715+
class ConvertDsetInputSpec(AFNICommandInputSpec):
716+
in_file = File(
717+
desc='input file to ConvertDset',
718+
argstr='-input %s',
719+
position=-2,
720+
mandatory=True,
721+
exists=True)
722+
723+
out_file = File(
724+
desc='output file for ConvertDset',
725+
argstr='-prefix %s',
726+
position=-1,
727+
mandatory=True)
728+
729+
out_type = traits.Enum(
730+
('niml', 'niml_asc', 'niml_bi',
731+
'1D', '1Dp', '1Dpt',
732+
'gii', 'gii_asc', 'gii_b64', 'gii_b64gz'),
733+
desc='output type',
734+
argstr='-o_%s',
735+
mandatory=True,
736+
position=0)
737+
738+
739+
class ConvertDset(AFNICommandBase):
740+
"""Converts a surface dataset from one format to another.
741+
742+
For complete details, see the `ConvertDset Documentation.
743+
<https://afni.nimh.nih.gov/pub/dist/doc/program_help/ConvertDset.html>`_
744+
745+
Examples
746+
========
747+
748+
>>> from nipype.interfaces import afni
749+
>>> convertdset = afni.ConvertDset()
750+
>>> convertdset.inputs.in_file = 'lh.pial_converted.gii'
751+
>>> convertdset.inputs.out_type = 'niml_asc'
752+
>>> convertdset.inputs.out_file = 'lh.pial_converted.niml.dset'
753+
>>> convertdset.cmdline
754+
'ConvertDset -o_niml_asc -input lh.pial_converted.gii -prefix lh.pial_converted.niml.dset'
755+
>>> res = convertdset.run() # doctest: +SKIP
756+
"""
757+
758+
_cmd = 'ConvertDset'
759+
input_spec = ConvertDsetInputSpec
760+
output_spec = AFNICommandOutputSpec
761+
762+
def _list_outputs(self):
763+
outputs = self.output_spec().get()
764+
outputs['out_file'] = op.abspath(self.inputs.out_file)
765+
return outputs
766+
767+
715768
class CopyInputSpec(AFNICommandInputSpec):
716769
in_file = File(
717770
desc='input file to 3dcopy',

nipype/interfaces/bids_utils.py

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

0 commit comments

Comments
 (0)