@@ -1297,44 +1297,44 @@ class EddyQuadInputSpec(FSLCommandInputSpec):
1297
1297
1298
1298
1299
1299
class EddyQuadOutputSpec (TraitedSpec ):
1300
- out_qc_json = File (
1300
+ qc_json = File (
1301
1301
exists = True ,
1302
1302
desc = ("Single subject database containing quality metrics and data "
1303
1303
"info." )
1304
1304
)
1305
- out_qc_pdf = File (
1305
+ qc_pdf = File (
1306
1306
exists = True ,
1307
1307
desc = "Single subject QC report."
1308
1308
)
1309
- out_avg_b_png = traits .List (
1309
+ avg_b_png = traits .List (
1310
1310
File (exists = True ),
1311
1311
desc = ("Image showing mid-sagittal, -coronal and -axial slices of "
1312
1312
"each averaged b-shell volume." )
1313
1313
)
1314
- out_avg_b0_pe_png = traits .List (
1314
+ avg_b0_pe_png = traits .List (
1315
1315
File (exists = True ),
1316
1316
desc = ("Image showing mid-sagittal, -coronal and -axial slices of "
1317
1317
"each averaged pe-direction b0 volume. Generated when using "
1318
1318
"the -f option." )
1319
1319
)
1320
- out_cnr_png = traits .List (
1320
+ cnr_png = traits .List (
1321
1321
File (exists = True ),
1322
1322
desc = ("Image showing mid-sagittal, -coronal and -axial slices of "
1323
1323
"each b-shell CNR volume. Generated when CNR maps are "
1324
1324
"available." )
1325
1325
)
1326
- out_vdm_png = File (
1326
+ vdm_png = File (
1327
1327
exists = True ,
1328
1328
desc = ("Image showing mid-sagittal, -coronal and -axial slices of "
1329
1329
"the voxel displacement map. Generated when using the -f "
1330
1330
"option." )
1331
1331
)
1332
- out_residuals = File (
1332
+ residuals = File (
1333
1333
exists = True ,
1334
1334
desc = ("Text file containing the volume-wise mask-averaged squared "
1335
1335
"residuals. Generated when residual maps are available." )
1336
1336
)
1337
- out_clean_volumes = File (
1337
+ clean_volumes = File (
1338
1338
exists = True ,
1339
1339
desc = ("Text file containing a list of clean volumes, based on "
1340
1340
"the eddy squared residuals. To generate a version of the "
@@ -1387,38 +1387,38 @@ def _list_outputs(self):
1387
1387
else :
1388
1388
out_dir = os .path .abspath (self .inputs .output_dir )
1389
1389
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' )
1392
1392
1393
1393
# Grab all b* files here. This will also grab the b0_pe* files
1394
1394
# as well, but only if the field input was provided. So we'll remove
1395
1395
# them later in the next conditional.
1396
- outputs ['out_avg_b_png ' ] = sorted (glob (
1396
+ outputs ['avg_b_png ' ] = sorted (glob (
1397
1397
os .path .join (out_dir , 'avg_b*.png' )
1398
1398
))
1399
1399
1400
1400
if isdefined (self .inputs .field ):
1401
- outputs ['out_avg_b0_pe_png ' ] = sorted (glob (
1401
+ outputs ['avg_b0_pe_png ' ] = sorted (glob (
1402
1402
os .path .join (out_dir , 'avg_b0_pe*.png' )
1403
1403
))
1404
1404
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 )
1410
1410
1411
- outputs ['out_vdm_png ' ] = os .path .join (out_dir , 'vdm.png' )
1411
+ outputs ['vdm_png ' ] = os .path .join (out_dir , 'vdm.png' )
1412
1412
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' )))
1414
1414
1415
1415
residuals = os .path .join (out_dir , 'eddy_msr.txt' )
1416
1416
if os .path .isfile (residuals ):
1417
- outputs ['out_residuals ' ] = residuals
1417
+ outputs ['residuals ' ] = residuals
1418
1418
1419
1419
clean_volumes = os .path .join (out_dir , 'vols_no_outliers.txt' )
1420
1420
if os .path .isfile (clean_volumes ):
1421
- outputs ['out_clean_volumes ' ] = clean_volumes
1421
+ outputs ['clean_volumes ' ] = clean_volumes
1422
1422
1423
1423
return outputs
1424
1424
0 commit comments