Skip to content

Commit 7275f84

Browse files
authored
Merge pull request #1580 from oesteban/fix/FSLCluster
[FIX #1579] FSL Cluster ignores use_mm input
2 parents 680c9dc + 8b43716 commit 7275f84

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

nipype/interfaces/fsl/model.py

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1603,15 +1603,17 @@ class ClusterInputSpec(FSLCommandInputSpec):
16031603
desc='number of voxels in the mask')
16041604
dlh = traits.Float(argstr='--dlh=%.10f',
16051605
desc='smoothness estimate = sqrt(det(Lambda))')
1606-
fractional = traits.Bool('--fractional',
1606+
fractional = traits.Bool(False, usedefault=True, argstr='--fractional',
16071607
desc='interprets the threshold as a fraction of the robust range')
16081608
connectivity = traits.Int(argstr='--connectivity=%d',
16091609
desc='the connectivity of voxels (default 26)')
1610-
use_mm = traits.Bool('--mm', desc='use mm, not voxel, coordinates')
1611-
find_min = traits.Bool('--min', desc='find minima instead of maxima')
1612-
no_table = traits.Bool(
1613-
'--no_table', desc='suppresses printing of the table info')
1614-
minclustersize = traits.Bool(argstr='--minclustersize',
1610+
use_mm = traits.Bool(False, usedefault=True, argstr='--mm',
1611+
desc='use mm, not voxel, coordinates')
1612+
find_min = traits.Bool(False, usedefault=True, argstr='--min',
1613+
desc='find minima instead of maxima')
1614+
no_table = traits.Bool(False, usedefault=True, argstr='--no_table',
1615+
desc='suppresses printing of the table info')
1616+
minclustersize = traits.Bool(False, usedefault=True, argstr='--minclustersize',
16151617
desc='prints out minimum significant cluster size')
16161618
xfm_file = File(argstr='--xfm=%s',
16171619
desc='filename for Linear: input->standard-space transform. Non-linear: input->highres transform')
@@ -1644,8 +1646,9 @@ class Cluster(FSLCommand):
16441646
>>> cl.inputs.threshold = 2.3
16451647
>>> cl.inputs.in_file = 'zstat1.nii.gz'
16461648
>>> cl.inputs.out_localmax_txt_file = 'stats.txt'
1649+
>>> cl.inputs.use_mm = True
16471650
>>> cl.cmdline
1648-
'cluster --in=zstat1.nii.gz --olmax=stats.txt --thresh=2.3000000000'
1651+
'cluster --in=zstat1.nii.gz --olmax=stats.txt --thresh=2.3000000000 --mm'
16491652
16501653
"""
16511654
input_spec = ClusterInputSpec

0 commit comments

Comments
 (0)