Skip to content

Commit d57988c

Browse files
authored
Use confounds file with non-steady-state columns to identify dummy volumes (#1330)
1 parent 0e07ef1 commit d57988c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

xcp_d/workflows/bold/postprocessing.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -269,11 +269,10 @@ def init_prepare_confounds_wf(
269269
(inputnode, remove_dummy_scans, [
270270
('preprocessed_bold', 'bold_file'),
271271
('dummy_scans', 'dummy_scans'),
272-
]),
273-
(process_motion, remove_dummy_scans, [
272+
# *not* the filtered motion file, which has dummy volume columns removed
274273
('motion_file', 'motion_file'),
275-
('temporal_mask', 'temporal_mask'),
276274
]),
275+
(process_motion, remove_dummy_scans, [('temporal_mask', 'temporal_mask')]),
277276
(remove_dummy_scans, dummy_scan_buffer, [
278277
('bold_file_dropped_TR', 'preprocessed_bold'),
279278
('confounds_tsv_dropped_TR', 'confounds_tsv'),

0 commit comments

Comments
 (0)