Skip to content

Commit a251366

Browse files
committed
Merge pull request #580 from mick-d/master
Correct Class Segment in spm.preprocess
2 parents 4d6e17d + db46c6a commit a251366

File tree

1 file changed

+13
-11
lines changed

1 file changed

+13
-11
lines changed

nipype/interfaces/spm/preprocess.py

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -521,16 +521,17 @@ class SegmentInputSpec(SPMCommandInputSpec):
521521

522522

523523
class SegmentOutputSpec(TraitedSpec):
524-
native_gm_image = File(exists=True, desc='native space grey probability map')
525-
normalized_gm_image = File(exists=True, desc='normalized grey probability map',)
526-
modulated_gm_image = File(exists=True, desc='modulated, normalized grey probability map')
527-
native_wm_image = File(exists=True, desc='native space white probability map')
528-
normalized_wm_image = File(exists=True, desc='normalized white probability map')
529-
modulated_wm_image = File(exists=True, desc='modulated, normalized white probability map')
530-
native_csf_image = File(exists=True, desc='native space csf probability map')
531-
normalized_csf_image = File(exists=True, desc='normalized csf probability map')
532-
modulated_csf_image = File(exists=True, desc='modulated, normalized csf probability map')
533-
modulated_input_image = File(exists=True, desc='modulated version of input image')
524+
native_gm_image = File(desc='native space grey probability map')
525+
normalized_gm_image = File(desc='normalized grey probability map',)
526+
modulated_gm_image = File(desc='modulated, normalized grey probability map')
527+
native_wm_image = File(desc='native space white probability map')
528+
normalized_wm_image = File(desc='normalized white probability map')
529+
modulated_wm_image = File(desc='modulated, normalized white probability map')
530+
native_csf_image = File(desc='native space csf probability map')
531+
normalized_csf_image = File(desc='normalized csf probability map')
532+
modulated_csf_image = File(desc='modulated, normalized csf probability map')
533+
modulated_input_image = File(deprecated='0.10', new_name='bias_corrected_image', desc='bias-corrected version of input image')
534+
bias_corrected_image = File(desc='bias-corrected version of input image')
534535
transformation_mat = File(exists=True, desc='Normalization transformation')
535536
inverse_transformation_mat = File(exists=True, desc='Inverse normalization info')
536537

@@ -586,7 +587,8 @@ def _list_outputs(self):
586587
if getattr(self.inputs, outtype)[idx]:
587588
outfield = '%s_%s_image'%(image,tissue)
588589
outputs[outfield] = fname_presuffix(f, prefix='%sc%d'%(prefix,tidx+1))
589-
outputs['modulated_input_image'] = fname_presuffix(f, prefix='m')
590+
if isdefined(self.inputs.save_bias_corrected) and self.inputs.save_bias_corrected:
591+
outputs['bias_corrected_image'] = fname_presuffix(f, prefix='m')
590592
t_mat = fname_presuffix(f, suffix='_seg_sn.mat', use_ext=False)
591593
outputs['transformation_mat'] = t_mat
592594
invt_mat = fname_presuffix(f, suffix='_seg_inv_sn.mat', use_ext=False)

0 commit comments

Comments
 (0)