Skip to content

Commit ad59bad

Browse files
committed
Allow input weight for AFNI's volreg.
This is a clean PR, based on the suggestions in #2155.
1 parent a2d054a commit ad59bad

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

nipype/interfaces/afni/preprocess.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2483,6 +2483,12 @@ class VolregInputSpec(AFNICommandInputSpec):
24832483
mandatory=True,
24842484
exists=True,
24852485
copyfile=False)
2486+
in_weight_volume = traits.Either(
2487+
traits.Tuple(File(exists=True), traits.Int),
2488+
File(exists=True),
2489+
desc='weights for each voxel specified by a file with an '
2490+
'optional volume number (defaults to 0)',
2491+
argstr="-weight '%s[%d]'")
24862492
out_file = File(
24872493
name_template='%s_volreg',
24882494
desc='output image file name',

0 commit comments

Comments
 (0)