From aa5b94830833c3d8233e62383c68b35d311f38fe Mon Sep 17 00:00:00 2001 From: Taylor Salo Date: Wed, 13 Dec 2023 13:07:36 -0500 Subject: [PATCH] Exclude non-steady-state volumes from confound correlation plot (#3171) Closes #2614 and is related to https://github.com/nipreps/niworkflows/pull/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 https://github.com/nipreps/niworkflows/pull/843 can be used without waiting for a niworkflows release. --- fmriprep/workflows/bold/confounds.py | 1 + 1 file changed, 1 insertion(+) diff --git a/fmriprep/workflows/bold/confounds.py b/fmriprep/workflows/bold/confounds.py index a7be148cf..8fd2a5c40 100644 --- a/fmriprep/workflows/bold/confounds.py +++ b/fmriprep/workflows/bold/confounds.py @@ -591,6 +591,7 @@ def _select_cols(table): (crowncompcor, mrg_cc_metadata, [("metadata_file", "in3")]), (mrg_cc_metadata, compcor_plot, [("out", "metadata_files")]), (compcor_plot, ds_report_compcor, [("out_file", "in_file")]), + (inputnode, conf_corr_plot, [("skip_vols", "ignore_initial_volumes")]), (concat, conf_corr_plot, [("confounds_file", "confounds_file"), (("confounds_file", _select_cols), "columns")]), (conf_corr_plot, ds_report_conf_corr, [("out_file", "in_file")]),