|
53 | 53 | init_ds_registration_wf, |
54 | 54 | init_func_fit_reports_wf, |
55 | 55 | ) |
56 | | -from .reference import init_raw_boldref_wf |
| 56 | +from .reference import init_raw_boldref_wf, init_validation_and_dummies_wf |
57 | 57 | from .registration import init_bold_reg_wf |
58 | 58 | from .stc import init_bold_stc_wf |
59 | 59 | from .t2s import init_bold_t2s_wf |
@@ -407,15 +407,18 @@ def init_bold_fit_wf( |
407 | 407 | ]) # fmt:skip |
408 | 408 | else: |
409 | 409 | config.loggers.workflow.info('Found HMC boldref - skipping Stage 1') |
410 | | - |
411 | | - validate_bold = pe.Node(ValidateImage(), name='validate_bold') |
412 | | - validate_bold.inputs.in_file = bold_file |
413 | | - |
414 | 410 | hmcref_buffer.inputs.boldref = precomputed['hmc_boldref'] |
415 | 411 |
|
| 412 | + validation_and_dummies_wf = init_validation_and_dummies_wf(bold_file=bold_file) |
| 413 | + |
416 | 414 | workflow.connect([ |
417 | | - (validate_bold, hmcref_buffer, [('out_file', 'bold_file')]), |
418 | | - (validate_bold, func_fit_reports_wf, [('out_report', 'inputnode.validation_report')]), |
| 415 | + (validation_and_dummies_wf, hmcref_buffer, [ |
| 416 | + ('outputnode.bold_file', 'bold_file'), |
| 417 | + ('outputnode.skip_vols', 'dummy_scans'), |
| 418 | + ]), |
| 419 | + (validation_and_dummies_wf, func_fit_reports_wf, [ |
| 420 | + ('outputnode.validation_report', 'inputnode.validation_report'), |
| 421 | + ]), |
419 | 422 | (hmcref_buffer, hmc_boldref_source_buffer, [('boldref', 'in_file')]), |
420 | 423 | ]) # fmt:skip |
421 | 424 |
|
|
0 commit comments