@@ -122,6 +122,13 @@ def _get_parser():
122
122
optional .add_argument (
123
123
"--png-cmap" , dest = "png_cmap" , type = str , help = "Colormap for figures" , default = "coolwarm"
124
124
)
125
+ optional .add_argument (
126
+ "--verbose" ,
127
+ dest = "verbose" ,
128
+ action = "store_true" ,
129
+ help = "Generate intermediate and additional files." ,
130
+ default = False ,
131
+ )
125
132
optional .add_argument (
126
133
"--debug" ,
127
134
dest = "debug" ,
@@ -173,6 +180,7 @@ def _main(argv=None):
173
180
no_reports = args .no_reports ,
174
181
png_cmap = args .png_cmap ,
175
182
overwrite = args .overwrite ,
183
+ verbose = args .verbose ,
176
184
debug = args .debug ,
177
185
quiet = args .quiet ,
178
186
reclassify_command = reclassify_command ,
@@ -242,6 +250,7 @@ def ica_reclassify_workflow(
242
250
mir = False ,
243
251
no_reports = False ,
244
252
png_cmap = "coolwarm" ,
253
+ verbose = False ,
245
254
overwrite = False ,
246
255
debug = False ,
247
256
quiet = False ,
@@ -273,6 +282,8 @@ def ica_reclassify_workflow(
273
282
png_cmap : obj:'str', optional
274
283
Name of a matplotlib colormap to be used when generating figures.
275
284
Cannot be used with --no-png. Default is 'coolwarm'.
285
+ verbose : :obj:`bool`, optional
286
+ Generate intermediate and additional files. Default is False.
276
287
debug : :obj:`bool`, optional
277
288
Whether to run in debugging mode or not. Default is False.
278
289
overwrite : :obj:`bool`, optional
@@ -390,13 +401,19 @@ def ica_reclassify_workflow(
390
401
data_optcom = ioh .get_file_contents ("combined img" )
391
402
used_gs = False
392
403
404
+ if verbose :
405
+ LGR .debug ("Loading input 4D data" )
406
+ data_cat = ioh .get_file_contents ("input img" )
407
+ # Extract the data from the nibabel objects
408
+ data_cat , _ = io .load_data (data_cat , n_echos = len (data_cat ))
409
+
393
410
io_generator = io .OutputGenerator (
394
411
data_optcom ,
395
412
convention = convention ,
396
413
prefix = prefix ,
397
414
config = config ,
398
415
overwrite = overwrite ,
399
- verbose = False ,
416
+ verbose = verbose ,
400
417
out_dir = out_dir ,
401
418
old_registry = ioh .registry ,
402
419
)
@@ -499,6 +516,10 @@ def ica_reclassify_workflow(
499
516
)
500
517
io_generator .overwrite = False
501
518
519
+ if verbose :
520
+ LGR .debug ("Writing out verbose data" )
521
+ io .writeresults_echoes (data_cat , mixing , mask_denoise , component_table , io_generator )
522
+
502
523
# Write out BIDS-compatible description file
503
524
derivative_metadata = {
504
525
"Name" : "tedana Outputs" ,
0 commit comments