Skip to content

Commit 2885499

Browse files
committed
Improved documentation.
1 parent c906740 commit 2885499

File tree

2 files changed

+36
-39
lines changed

2 files changed

+36
-39
lines changed

nipype/interfaces/cat12/preprocess.py

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ class CAT12SegmentInputSpec(SPMCommandInputSpec):
3535
3636
Examples
3737
--------
38-
path_mr = 'structural.nii'
39-
cat = CAT12Segment(in_files=path_mr)
40-
cat.run() # doctest: +SKIP
38+
>>> path_mr = 'structural.nii'
39+
>>> cat = CAT12Segment(in_files=path_mr)
40+
>>> cat.run() # doctest: +SKIP
4141
"""
4242

4343
in_files = InputMultiPath(ImageFileSPM(exists=True), field="data", desc="file to segment", mandatory=True,
@@ -245,50 +245,50 @@ class CAT12SegmentOutputSpec(TraitedSpec):
245245
##########################################
246246
# Label XML files
247247
##########################################
248-
label_files = List(File(exists=True))
248+
label_files = List(File(exists=True), desc="Files with the labeled version of the segmentations.")
249249

250-
label_rois = File(exists=True, desc="ROIs Volumes")
251-
label_roi = File(exists=True, desc="ROI volumes")
250+
label_rois = File(exists=True, desc="Files with labeled version of segmentations of ROIs Volumes")
251+
label_roi = File(exists=True, desc="Files with labeled version of segmentations of ROI Volumes")
252252

253253
##########################################
254254
# MRI .nii files
255255
##########################################
256256

257-
mri_images = List(File(exists=True))
257+
mri_images = List(File(exists=True), desc="Different segmented images.")
258258

259259
# Grey Matter
260-
gm_modulated_image = File(exists=True)
261-
gm_dartel_image = File(exists=True)
262-
gm_native_image = File(exists=True)
260+
gm_modulated_image = File(exists=True, desc="Grey matter modulated image.")
261+
gm_dartel_image = File(exists=True, desc="Grey matter dartel image.")
262+
gm_native_image = File(exists=True, desc="Grey matter native space.")
263263

264264
# White Matter
265-
wm_modulated_image = File(exists=True)
266-
wm_dartel_image = File(exists=True)
267-
wm_native_image = File(exists=True)
265+
wm_modulated_image = File(exists=True, desc="White matter modulated image.")
266+
wm_dartel_image = File(exists=True, desc="White matter dartel image.")
267+
wm_native_image = File(exists=True, desc="White matter in native space.")
268268

269269
# CSF
270-
csf_modulated_image = File(exists=True)
271-
csf_dartel_image = File(exists=True)
272-
csf_native_image = File(exists=True)
270+
csf_modulated_image = File(exists=True, desc="CSF modulated image.")
271+
csf_dartel_image = File(exists=True, desc="CSF dartel image.")
272+
csf_native_image = File(exists=True, desc="CSF in native space.")
273273

274-
bias_corrected_image = File(exists=True)
274+
bias_corrected_image = File(exists=True, desc="Bias corrected image")
275275
##########################################
276276
# Surface files
277277
##########################################
278278

279-
surface_files = List(File(exists=True))
279+
surface_files = List(File(exists=True), desc="Surface files")
280280

281281
# Right hemisphere
282-
rh_central_surface = File(exists=True)
283-
rh_sphere_surface = File(exists=True)
282+
rh_central_surface = File(exists=True, desc="Central right hemisphere files")
283+
rh_sphere_surface = File(exists=True, desc="Sphere right hemisphere files")
284284

285285
# Left hemisphere
286-
lh_central_surface = File(exists=True)
287-
lh_sphere_surface = File(exists=True)
286+
lh_central_surface = File(exists=True, desc="Central left hemisphere files")
287+
lh_sphere_surface = File(exists=True, desc="Sphere left hemisphere files")
288288

289289
# Report files
290-
report_files = List(File(exists=True))
291-
report = File(exists=True)
290+
report_files = List(File(exists=True), desc="Report files.")
291+
report = File(exists=True, desc="Report file.")
292292

293293

294294
class CAT12Segment(SPMCommand):

nipype/interfaces/cat12/surface.py

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -31,26 +31,23 @@ class ExtractAdditionalSurfaceParametersInputSpec(SPMCommandInputSpec):
3131

3232

3333
class ExtractAdditionalSurfaceParametersOutputSpec(TraitedSpec):
34-
lh_extracted_files = List(File(exists=True))
35-
rh_extracted_files = List(File(exists=True))
34+
lh_extracted_files = List(File(exists=True), desc="Files of left Hemisphere extracted measures")
35+
rh_extracted_files = List(File(exists=True), desc="Files of right Hemisphere extracted measures")
3636

37-
lh_gyrification = List(File(exists=True))
38-
rh_gyrification = List(File(exists=True))
37+
lh_gyrification = List(File(exists=True), desc="Gyrification of left Hemisphere")
38+
rh_gyrification = List(File(exists=True), desc="Gyrification of right Hemisphere")
3939

40-
lh_gyrification_resampled = List(File(exists=True))
41-
rh_gyrification_resampled = List(File(exists=True))
40+
lh_gmv = List(File(exists=True), desc="Grey matter volume of left Hemisphere")
41+
rh_gmv = List(File(exists=True), desc="Grey matter volume of right Hemisphere")
4242

43-
lh_gmv = List(File(exists=True))
44-
rh_gmv = List(File(exists=True))
43+
lh_area = List(File(exists=True), desc="Area of left Hemisphere")
44+
rh_area = List(File(exists=True), desc="Area of right Hemisphere")
4545

46-
lh_area = List(File(exists=True))
47-
rh_area = List(File(exists=True))
46+
lh_depth = List(File(exists=True), desc="Depth of left Hemisphere")
47+
rh_depth = List(File(exists=True), desc="Depth of right Hemisphere")
4848

49-
lh_depth = List(File(exists=True))
50-
rh_depth = List(File(exists=True))
51-
52-
lh_fractaldimension = List(File(exists=True))
53-
rh_fractaldimension = List(File(exists=True))
49+
lh_fractaldimension = List(File(exists=True), desc="Fractal Dimension of left Hemisphere")
50+
rh_fractaldimension = List(File(exists=True), desc="Fractal Dimension of right Hemisphere")
5451

5552

5653
class ExtractAdditionalSurfaceParameters(SPMCommand):

0 commit comments

Comments
 (0)