File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -1826,7 +1826,8 @@ class ROIStatsInputSpec(CommandLineInputSpec):
1826
1826
zerofill = traits .Str (
1827
1827
requires = ['num_roi' ],
1828
1828
desc = 'For ROI labels not found, use the provided string instead of '
1829
- 'a \' 0\' in the output file. Only active if zerofill is active.' ,
1829
+ 'a \' 0\' in the output file. Only active if `num_roi` is '
1830
+ 'enabled.' ,
1830
1831
argstr = '-zerofill %s' )
1831
1832
roisel = traits .File (
1832
1833
exists = True ,
@@ -1908,11 +1909,14 @@ class ROIStats(AFNICommandBase):
1908
1909
1909
1910
>>> from nipype.interfaces import afni
1910
1911
>>> roistats = afni.ROIStats()
1911
- >>> roistats.inputs.in_file = 'functional.nii'
1912
- >>> roistats.inputs.mask = 'skeleton_mask.nii.gz'
1913
- >>> roistats.inputs.quiet = True
1912
+ >>> roistats.inputs.in_file = 'func.nii'
1913
+ >>> roistats.inputs.mask_file = 'label-schaefer400_atlas.nii.gz'
1914
+ >>> roistats.inputs.stat = ['mean', 'median', 'voxels']
1915
+ >>> roistats.inputs.nomeanout = True
1914
1916
>>> roistats.cmdline
1915
- '3dROIstats -quiet -mask skeleton_mask.nii.gz functional.nii'
1917
+ '3dROIstats -quiet -mask label-schaefer400_atlas.nii.gz \
1918
+ -nzmean -nzmedian -nzvoxels -nomeanout func.nii \
1919
+ > func_roistat.1D'
1916
1920
>>> res = roistats.run() # doctest: +SKIP
1917
1921
1918
1922
"""
You can’t perform that action at this time.
0 commit comments