@@ -233,25 +233,29 @@ def init_anat_reports_wf(
233
233
if not surface_recon :
234
234
return workflow
235
235
236
- # TODO: Separate report for MCRIBS?
237
236
from smriprep .interfaces .reports import FSSurfaceReport
238
237
239
238
recon_report = pe .Node (FSSurfaceReport (), name = "recon_report" )
240
239
recon_report .interface ._always_run = True
241
240
241
+ if surface_recon == "freesurfer" :
242
+ recon_desc = "reconall"
243
+ elif surface_recon == "infantfs" :
244
+ recon_desc = "infantfs"
245
+ elif surface_recon == "mcribs" :
246
+ recon_desc = "mcribs"
247
+
242
248
ds_recon_report = pe .Node (
243
- DerivativesDataSink (base_directory = output_dir , desc = "reconall" , datatype = "figures" ),
249
+ DerivativesDataSink (base_directory = output_dir , desc = recon_desc , datatype = "figures" ),
244
250
name = "ds_recon_report" ,
245
251
run_without_submitting = True ,
246
252
)
247
- # fmt: off
248
253
workflow .connect ([
249
254
(inputnode , recon_report , [('subjects_dir' , 'subjects_dir' ),
250
255
('subject_id' , 'subject_id' )]),
251
256
(recon_report , ds_recon_report , [('out_report' , 'in_file' )]),
252
257
(inputnode , ds_recon_report , [('source_file' , 'source_file' )])
253
- ])
254
- # fmt: on
258
+ ]) # fmt: skip
255
259
256
260
return workflow
257
261
0 commit comments