Skip to content

Commit aa5b948

Browse files
authored
Exclude non-steady-state volumes from confound correlation plot (#3171)
Closes #2614 and is related to nipreps/niworkflows#843. ## Changes proposed in this pull request - Feed `skip_vols` into confounds correlation plot. Since niworkflows is pinned to `master` in `pyproject.toml`, the new parameter from nipreps/niworkflows#843 can be used without waiting for a niworkflows release.
1 parent d99b3f7 commit aa5b948

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

fmriprep/workflows/bold/confounds.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -591,6 +591,7 @@ def _select_cols(table):
591591
(crowncompcor, mrg_cc_metadata, [("metadata_file", "in3")]),
592592
(mrg_cc_metadata, compcor_plot, [("out", "metadata_files")]),
593593
(compcor_plot, ds_report_compcor, [("out_file", "in_file")]),
594+
(inputnode, conf_corr_plot, [("skip_vols", "ignore_initial_volumes")]),
594595
(concat, conf_corr_plot, [("confounds_file", "confounds_file"),
595596
(("confounds_file", _select_cols), "columns")]),
596597
(conf_corr_plot, ds_report_conf_corr, [("out_file", "in_file")]),

0 commit comments

Comments
 (0)