Skip to content

Commit e493510

Browse files
author
bpinsard
committed
add doc and example
1 parent 42e89c6 commit e493510

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

nipype/interfaces/spm/preprocess.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1218,6 +1218,26 @@ class VBMSegmentOuputSpec(TraitedSpec):
12181218
jacobian_determinant_images = OutputMultiPath(File(exists=True))
12191219

12201220
class VBMSegment(SPMCommand):
1221+
1222+
"""Use VBM8 toolbox to separate structural images into different
1223+
tissue classes.
1224+
1225+
Examples
1226+
--------
1227+
>>> import nipype.interfaces.spm as spm
1228+
>>> seg = spm.VBMSegment()
1229+
>>> seg.inputs.tissues = os.path.join(spm.Info.version()['path'],'toolbox','Seg','TPM.nii')
1230+
>>> seg.inputs.dartel_template = os.path.join(spm.Info.version()['path'],'toolbox','vbm8','Template_1_IXI550_MNI152.nii')
1231+
>>> seg.inputs.bias_corrected_native = True,
1232+
>>> seg.inputs.gm_native = True
1233+
>>> seg.inputs.wm_native = True
1234+
>>> seg.inputs.csf_native = True
1235+
>>> seg.inputs.pve_label_native = True,
1236+
>>> seg.inputs.deformation_field = (True, False)
1237+
>>> seg.run() # doctest: +SKIP
1238+
1239+
"""
1240+
12211241
input_spec = VBMSegmentInputSpec
12221242
output_spec = VBMSegmentOuputSpec
12231243

0 commit comments

Comments
 (0)