Skip to content

Commit cbd08e0

Browse files
committed
Added back in the automaskinputspec
1 parent e3f54c1 commit cbd08e0

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

nipype/interfaces/afni/preprocess.py

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -507,6 +507,33 @@ class Despike(AFNICommand):
507507
output_spec = AFNICommandOutputSpec
508508

509509

510+
class AutomaskInputSpec(AFNICommandInputSpec):
511+
in_file = File(desc='input file to 3dAutomask',
512+
argstr='%s',
513+
position=-1,
514+
mandatory=True,
515+
exists=True,
516+
copyfile=False)
517+
518+
out_file = File(name_template="%s_mask", desc='output image file name',
519+
argstr='-prefix %s', name_source="in_file")
520+
521+
brain_file = File(name_template="%s_masked",
522+
desc="output file from 3dAutomask",
523+
argstr='-apply_prefix %s',
524+
name_source="in_file")
525+
526+
clfrac = traits.Float(desc='sets the clip level fraction' +
527+
' (must be 0.1-0.9). ' +
528+
'A small value will tend to make the mask larger [default = 0.5].',
529+
argstr="-clfrac %s")
530+
531+
dilate = traits.Int(desc='dilate the mask outwards',
532+
argstr="-dilate %s")
533+
534+
erode = traits.Int(desc='erode the mask inwards',
535+
argstr="-erode %s")
536+
510537

511538
class AutomaskOutputSpec(TraitedSpec):
512539
out_file = File(desc='mask file',

0 commit comments

Comments
 (0)