Skip to content

Commit eede943

Browse files
authored
Merge pull request #2623 from mattcieslak/master
[ENH] add -dsort option to TProject
2 parents 704b97d + 264f0e4 commit eede943

File tree

3 files changed

+15
-3
lines changed

3 files changed

+15
-3
lines changed

nipype/interfaces/afni/preprocess.py

+12-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
from ...utils.filemanip import (load_json, save_json, split_filename,
1414
fname_presuffix)
1515
from ..base import (CommandLineInputSpec, CommandLine, TraitedSpec, traits,
16-
isdefined, File, InputMultiPath, Undefined, Str)
16+
isdefined, File, InputMultiPath, Undefined, Str,
17+
InputMultiObject)
1718

1819
from .base import (AFNICommandBase, AFNICommand, AFNICommandInputSpec,
1920
AFNICommandOutputSpec, AFNIPythonCommandInputSpec,
@@ -2492,6 +2493,15 @@ class TProjectInputSpec(AFNICommandInputSpec):
24922493
even if -ort contains constant terms, as all means are
24932494
removed.""",
24942495
argstr="-polort %d")
2496+
dsort = InputMultiObject(
2497+
File(
2498+
exists=True,
2499+
copyfile=False),
2500+
argstr="-dsort %s...",
2501+
desc="""Remove the 3D+time time series in dataset fset.
2502+
++ That is, 'fset' contains a different nuisance time
2503+
series for each voxel (e.g., from AnatICOR).
2504+
++ Multiple -dsort options are allowed.""")
24952505
bandpass = traits.Tuple(
24962506
traits.Float, traits.Float,
24972507
desc="""Remove all frequencies EXCEPT those in the range""",
@@ -2559,6 +2569,7 @@ class TProject(AFNICommand):
25592569
_cmd = '3dTproject'
25602570
input_spec = TProjectInputSpec
25612571
output_spec = AFNICommandOutputSpec
2572+
25622573

25632574
class TShiftInputSpec(AFNICommandInputSpec):
25642575
in_file = File(

nipype/interfaces/afni/tests/test_auto_TProject.py

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ def test_TProject_inputs():
1717
censor=dict(argstr='-censor %s', ),
1818
censortr=dict(argstr='-CENSORTR %s', ),
1919
concat=dict(argstr='-concat %s', ),
20+
dsort=dict(argstr='-dsort %s...', ),
2021
environ=dict(
2122
nohash=True,
2223
usedefault=True,

nipype/interfaces/ants/tests/test_auto_AntsJointFusion.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ def test_AntsJointFusion_inputs():
5757
hash_files=False,
5858
),
5959
out_label_post_prob_name_format=dict(
60-
requires=['out_label_fusion', 'out_intensity_fusion_name_format'],
61-
),
60+
requires=['out_label_fusion',
61+
'out_intensity_fusion_name_format'], ),
6262
patch_metric=dict(argstr='-m %s', ),
6363
patch_radius=dict(
6464
argstr='-p %s',

0 commit comments

Comments
 (0)