Skip to content

Commit

Permalink
Exclude non-steady-state volumes from confound correlation plot (#3171)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
tsalo authored Dec 13, 2023
1 parent d99b3f7 commit aa5b948
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fmriprep/workflows/bold/confounds.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")]),
Expand Down

0 comments on commit aa5b948

Please sign in to comment.