@@ -44,9 +44,7 @@ class GTMSegInputSpec(FSTraitedSpec):
44
44
)
45
45
46
46
subsegwm = traits .Bool (
47
- argstr = "--subsegwm" ,
48
- default = True ,
49
- desc = "subsegment WM into lobes (default)"
47
+ argstr = "--subsegwm" , default = True , desc = "subsegment WM into lobes (default)"
50
48
)
51
49
52
50
keep_hypo = traits .Bool (
@@ -284,9 +282,7 @@ class GTMPVCInputSpec(FSTraitedSpec):
284
282
desc = "set the tissue fraction resolution parameter (def is 0.5)" ,
285
283
)
286
284
287
- rbv = traits .Bool (argstr = "--rbv" ,
288
- requires = ["subjects_dir" ],
289
- desc = "perform RBV PVC" )
285
+ rbv = traits .Bool (argstr = "--rbv" , requires = ["subjects_dir" ], desc = "perform RBV PVC" )
290
286
291
287
rbv_res = traits .Float (
292
288
argstr = "--rbv-res %f" ,
@@ -349,17 +345,17 @@ class GTMPVCInputSpec(FSTraitedSpec):
349
345
save_eres = traits .Bool (argstr = "--save-eres" , desc = "saves residual error" )
350
346
351
347
save_yhat = traits .Bool (
352
- argstr = "--save-yhat" ,
348
+ argstr = "--save-yhat" ,
353
349
xor = ["save_yhat_with_noise" ],
354
- desc = "save signal estimate (yhat) smoothed with the PSF"
350
+ desc = "save signal estimate (yhat) smoothed with the PSF" ,
355
351
)
356
352
357
353
save_yhat_with_noise = traits .Tuple (
358
354
traits .Int ,
359
355
traits .Int ,
360
- argstr = "--save-yhat-with-noise %i %i" ,
356
+ argstr = "--save-yhat-with-noise %i %i" ,
361
357
xor = ["save_yhat" ],
362
- desc = "seed nreps : save signal estimate (yhat) with noise"
358
+ desc = "seed nreps : save signal estimate (yhat) with noise" ,
363
359
)
364
360
365
361
save_yhat_full_fov = traits .Bool (
@@ -417,8 +413,12 @@ class GTMPVCOutputSpec(TraitedSpec):
417
413
input_file = File (desc = "4D PET file in native volume space" )
418
414
reg_pet2anat = File (desc = "Registration file to go from PET to anat" )
419
415
reg_anat2pet = File (desc = "Registration file to go from anat to PET" )
420
- reg_rbvpet2anat = File (desc = "Registration file to go from RBV corrected PET to anat" )
421
- reg_anat2rbvpet = File (desc = "Registration file to go from anat to RBV corrected PET" )
416
+ reg_rbvpet2anat = File (
417
+ desc = "Registration file to go from RBV corrected PET to anat"
418
+ )
419
+ reg_anat2rbvpet = File (
420
+ desc = "Registration file to go from anat to RBV corrected PET"
421
+ )
422
422
mgx_ctxgm = File (
423
423
desc = "Cortical GM voxel-wise values corrected using the extended Muller-Gartner method" ,
424
424
)
@@ -500,17 +500,17 @@ def _list_outputs(self):
500
500
outputs ["yhat" ] = os .path .join (pvcdir , "yhat.nii.gz" )
501
501
if self .inputs .save_yhat_full_fov :
502
502
outputs ["yhat_full_fov" ] = os .path .join (pvcdir , "yhat.fullfov.nii.gz" )
503
- if isdefined ( self . inputs . save_yhat_with_noise ) and self .inputs .save_yhat_with_noise :
503
+ if self .inputs .save_yhat_with_noise :
504
504
outputs ["yhat_with_noise" ] = os .path .join (pvcdir , "yhat.nii.gz" )
505
- if isdefined ( self . inputs . mgx ) and self .inputs .mgx :
505
+ if self .inputs .mgx :
506
506
outputs ["mgx_ctxgm" ] = os .path .join (pvcdir , "mgx.ctxgm.nii.gz" )
507
507
outputs ["mgx_subctxgm" ] = os .path .join (pvcdir , "mgx.subctxgm.nii.gz" )
508
508
outputs ["mgx_gm" ] = os .path .join (pvcdir , "mgx.gm.nii.gz" )
509
- if isdefined ( self . inputs . rbv ) and self .inputs .rbv :
509
+ if self .inputs .rbv :
510
510
outputs ["rbv" ] = os .path .join (pvcdir , "rbv.nii.gz" )
511
511
outputs ["reg_rbvpet2anat" ] = os .path .join (pvcdir , "aux" , "rbv2anat.lta" )
512
512
outputs ["reg_anat2rbvpet" ] = os .path .join (pvcdir , "aux" , "anat2rbv.lta" )
513
- if isdefined ( self . inputs . opt ) and self .inputs .opt :
513
+ if self .inputs .opt :
514
514
outputs ["opt_params" ] = os .path .join (pvcdir , "aux/opt.params.dat" )
515
515
516
516
return outputs
0 commit comments