@@ -1297,44 +1297,44 @@ class EddyQuadInputSpec(FSLCommandInputSpec):
12971297
12981298
12991299class EddyQuadOutputSpec (TraitedSpec ):
1300- out_qc_json = File (
1300+ qc_json = File (
13011301 exists = True ,
13021302 desc = ("Single subject database containing quality metrics and data "
13031303 "info." )
13041304 )
1305- out_qc_pdf = File (
1305+ qc_pdf = File (
13061306 exists = True ,
13071307 desc = "Single subject QC report."
13081308 )
1309- out_avg_b_png = traits .List (
1309+ avg_b_png = traits .List (
13101310 File (exists = True ),
13111311 desc = ("Image showing mid-sagittal, -coronal and -axial slices of "
13121312 "each averaged b-shell volume." )
13131313 )
1314- out_avg_b0_pe_png = traits .List (
1314+ avg_b0_pe_png = traits .List (
13151315 File (exists = True ),
13161316 desc = ("Image showing mid-sagittal, -coronal and -axial slices of "
13171317 "each averaged pe-direction b0 volume. Generated when using "
13181318 "the -f option." )
13191319 )
1320- out_cnr_png = traits .List (
1320+ cnr_png = traits .List (
13211321 File (exists = True ),
13221322 desc = ("Image showing mid-sagittal, -coronal and -axial slices of "
13231323 "each b-shell CNR volume. Generated when CNR maps are "
13241324 "available." )
13251325 )
1326- out_vdm_png = File (
1326+ vdm_png = File (
13271327 exists = True ,
13281328 desc = ("Image showing mid-sagittal, -coronal and -axial slices of "
13291329 "the voxel displacement map. Generated when using the -f "
13301330 "option." )
13311331 )
1332- out_residuals = File (
1332+ residuals = File (
13331333 exists = True ,
13341334 desc = ("Text file containing the volume-wise mask-averaged squared "
13351335 "residuals. Generated when residual maps are available." )
13361336 )
1337- out_clean_volumes = File (
1337+ clean_volumes = File (
13381338 exists = True ,
13391339 desc = ("Text file containing a list of clean volumes, based on "
13401340 "the eddy squared residuals. To generate a version of the "
@@ -1387,38 +1387,38 @@ def _list_outputs(self):
13871387 else :
13881388 out_dir = os .path .abspath (self .inputs .output_dir )
13891389
1390- outputs ['out_qc_json ' ] = os .path .join (out_dir , 'qc.json' )
1391- outputs ['out_qc_pdf ' ] = os .path .join (out_dir , 'qc.pdf' )
1390+ outputs ['qc_json ' ] = os .path .join (out_dir , 'qc.json' )
1391+ outputs ['qc_pdf ' ] = os .path .join (out_dir , 'qc.pdf' )
13921392
13931393 # Grab all b* files here. This will also grab the b0_pe* files
13941394 # as well, but only if the field input was provided. So we'll remove
13951395 # them later in the next conditional.
1396- outputs ['out_avg_b_png ' ] = sorted (glob (
1396+ outputs ['avg_b_png ' ] = sorted (glob (
13971397 os .path .join (out_dir , 'avg_b*.png' )
13981398 ))
13991399
14001400 if isdefined (self .inputs .field ):
1401- outputs ['out_avg_b0_pe_png ' ] = sorted (glob (
1401+ outputs ['avg_b0_pe_png ' ] = sorted (glob (
14021402 os .path .join (out_dir , 'avg_b0_pe*.png' )
14031403 ))
14041404
1405- # The previous glob for `out_avg_b_png ` also grabbed the
1406- # `out_avg_b0_pe_png ` files so we have to remove them
1407- # from `out_avg_b_png `.
1408- for fname in outputs ['out_avg_b0_pe_png ' ]:
1409- outputs ['out_avg_b_png ' ].remove (fname )
1405+ # The previous glob for `avg_b_png ` also grabbed the
1406+ # `avg_b0_pe_png ` files so we have to remove them
1407+ # from `avg_b_png `.
1408+ for fname in outputs ['avg_b0_pe_png ' ]:
1409+ outputs ['avg_b_png ' ].remove (fname )
14101410
1411- outputs ['out_vdm_png ' ] = os .path .join (out_dir , 'vdm.png' )
1411+ outputs ['vdm_png ' ] = os .path .join (out_dir , 'vdm.png' )
14121412
1413- outputs ['out_cnr_png ' ] = sorted (glob (os .path .join (out_dir , 'cnr*.png' )))
1413+ outputs ['cnr_png ' ] = sorted (glob (os .path .join (out_dir , 'cnr*.png' )))
14141414
14151415 residuals = os .path .join (out_dir , 'eddy_msr.txt' )
14161416 if os .path .isfile (residuals ):
1417- outputs ['out_residuals ' ] = residuals
1417+ outputs ['residuals ' ] = residuals
14181418
14191419 clean_volumes = os .path .join (out_dir , 'vols_no_outliers.txt' )
14201420 if os .path .isfile (clean_volumes ):
1421- outputs ['out_clean_volumes ' ] = clean_volumes
1421+ outputs ['clean_volumes ' ] = clean_volumes
14221422
14231423 return outputs
14241424
0 commit comments