Skip to content

Commit

Permalink
Use confounds file with non-steady-state columns to identify dummy vo…
Browse files Browse the repository at this point in the history
…lumes (#1330)
  • Loading branch information
tsalo authored Nov 21, 2024
1 parent 0e07ef1 commit d57988c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions xcp_d/workflows/bold/postprocessing.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,11 +269,10 @@ def init_prepare_confounds_wf(
(inputnode, remove_dummy_scans, [
('preprocessed_bold', 'bold_file'),
('dummy_scans', 'dummy_scans'),
]),
(process_motion, remove_dummy_scans, [
# *not* the filtered motion file, which has dummy volume columns removed
('motion_file', 'motion_file'),
('temporal_mask', 'temporal_mask'),
]),
(process_motion, remove_dummy_scans, [('temporal_mask', 'temporal_mask')]),
(remove_dummy_scans, dummy_scan_buffer, [
('bold_file_dropped_TR', 'preprocessed_bold'),
('confounds_tsv_dropped_TR', 'confounds_tsv'),
Expand Down

0 comments on commit d57988c

Please sign in to comment.