Skip to content

Commit 6c78e54

Browse files
committed
rf: Use validation_and_dummies_wf in transform mode
1 parent 1ddf3c5 commit 6c78e54

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

fmriprep/workflows/bold/fit.py

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
init_ds_registration_wf,
5454
init_func_fit_reports_wf,
5555
)
56-
from .reference import init_raw_boldref_wf
56+
from .reference import init_raw_boldref_wf, init_validation_and_dummies_wf
5757
from .registration import init_bold_reg_wf
5858
from .stc import init_bold_stc_wf
5959
from .t2s import init_bold_t2s_wf
@@ -407,15 +407,18 @@ def init_bold_fit_wf(
407407
]) # fmt:skip
408408
else:
409409
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-
414410
hmcref_buffer.inputs.boldref = precomputed['hmc_boldref']
415411

412+
validation_and_dummies_wf = init_validation_and_dummies_wf(bold_file=bold_file)
413+
416414
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+
]),
419422
(hmcref_buffer, hmc_boldref_source_buffer, [('boldref', 'in_file')]),
420423
]) # fmt:skip
421424

0 commit comments

Comments
 (0)