@@ -1603,15 +1603,17 @@ class ClusterInputSpec(FSLCommandInputSpec):
1603
1603
desc = 'number of voxels in the mask' )
1604
1604
dlh = traits .Float (argstr = '--dlh=%.10f' ,
1605
1605
desc = 'smoothness estimate = sqrt(det(Lambda))' )
1606
- fractional = traits .Bool ('--fractional' ,
1606
+ fractional = traits .Bool (False , usedefault = True , argstr = '--fractional' ,
1607
1607
desc = 'interprets the threshold as a fraction of the robust range' )
1608
1608
connectivity = traits .Int (argstr = '--connectivity=%d' ,
1609
1609
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' ,
1615
1617
desc = 'prints out minimum significant cluster size' )
1616
1618
xfm_file = File (argstr = '--xfm=%s' ,
1617
1619
desc = 'filename for Linear: input->standard-space transform. Non-linear: input->highres transform' )
@@ -1644,8 +1646,9 @@ class Cluster(FSLCommand):
1644
1646
>>> cl.inputs.threshold = 2.3
1645
1647
>>> cl.inputs.in_file = 'zstat1.nii.gz'
1646
1648
>>> cl.inputs.out_localmax_txt_file = 'stats.txt'
1649
+ >>> cl.inputs.use_mm = True
1647
1650
>>> 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 '
1649
1652
1650
1653
"""
1651
1654
input_spec = ClusterInputSpec
0 commit comments