Skip to content

Commit 1e50ae3

Browse files
committed
run aCompCor for WM, CSF, and combined masks
1 parent 95dcb2a commit 1e50ae3

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

fmriprep/data/boilerplate.bib

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ @article{power_fd_dvars
220220
year = 2014
221221
}
222222

223-
@article{confounds_satterthwaite_2012,
223+
@article{confounds_satterthwaite_2013,
224224
author = {Satterthwaite, Theodore D. and Elliott, Mark A. and Gerraty, Raphael T. and Ruparel, Kosha and Loughead, James and Calkins, Monica E. and Eickhoff, Simon B. and Hakonarson, Hakon and Gur, Ruben C. and Gur, Raquel E. and Wolf, Daniel H.},
225225
doi = {10.1016/j.neuroimage.2012.08.052},
226226
issn = {10538119},

fmriprep/workflows/bold/confounds.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ def init_bold_confs_wf(mem_gb, metadata, name="bold_confs_wf"):
143143
placed within the corresponding confounds file.
144144
The confound time series derived from head motion estimates and global
145145
signals were expanded with the inclusion of temporal derivatives and
146-
quadratic terms for each [@confounds_satterthwaite_2012].
146+
quadratic terms for each [@confounds_satterthwaite_2013].
147147
Frames that exceeded a threshold of 0.2 mm FD or 20 DVARS were classified
148148
as motion outliers [following @power_fd_dvars].
149149
"""
@@ -190,6 +190,8 @@ def init_bold_confs_wf(mem_gb, metadata, name="bold_confs_wf"):
190190
name="fdisp", mem_gb=mem_gb)
191191

192192
# a/t-CompCor
193+
mrg_lbl_cc = pe.Node(niu.Merge(3), name='merge_rois_cc', run_without_submitting=True)
194+
193195
tcompcor = pe.Node(
194196
TCompCor(components_file='tcompcor.tsv', header_prefix='t_comp_cor_', pre_filter='cosine',
195197
save_pre_filter=True, num_components='all', save_metadata=True,
@@ -198,7 +200,8 @@ def init_bold_confs_wf(mem_gb, metadata, name="bold_confs_wf"):
198200

199201
acompcor = pe.Node(
200202
ACompCor(components_file='acompcor.tsv', header_prefix='a_comp_cor_', pre_filter='cosine',
201-
save_pre_filter=True, num_components='all', save_metadata=True),
203+
save_pre_filter=True, num_components='all', save_metadata=True,
204+
mask_names=['combined', 'CSF', 'WM'], merge_method='none'),
202205
name="acompcor", mem_gb=mem_gb)
203206

204207
# Set TR if present
@@ -325,7 +328,10 @@ def _pick_wm(files):
325328
(inputnode, acompcor, [('bold', 'realigned_file')]),
326329
(inputnode, acompcor, [('skip_vols', 'ignore_initial_volumes')]),
327330
(acc_tfm, acc_msk, [('output_image', 'roi_file')]),
328-
(acc_msk, acompcor, [('out', 'mask_files')]),
331+
(acc_msk, mrg_lbl_cc, [('out', 'in1')]),
332+
(csf_msk, mrg_lbl_cc, [('out', 'in2')]),
333+
(wm_msk, mrg_lbl_cc, [('out', 'in3')]),
334+
(mrg_lbl_cc, acompcor, [('out', 'mask_files')]),
329335

330336
# Global signals extraction (constrained by anatomy)
331337
(inputnode, signals, [('bold', 'in_file')]),

0 commit comments

Comments
 (0)