Skip to content

Commit 02d13a7

Browse files
committed
RF: Update confounds headers (incomplete)
1 parent 49585eb commit 02d13a7

File tree

1 file changed

+20
-18
lines changed

1 file changed

+20
-18
lines changed

fmriprep/workflows/bold/confounds.py

Lines changed: 20 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -43,18 +43,17 @@ def init_bold_confs_wf(mem_gb, metadata, name="bold_confs_wf"):
4343
4444
The following confounds are calculated, with column headings in parentheses:
4545
46-
#. Region-wise average signal (``CSF``, ``WhiteMatter``, ``GlobalSignal``)
47-
#. DVARS - standard, nonstandard, and voxel-wise standard variants
48-
(``stdDVARS``, ``non-stdDVARS``, ``vx-wisestdDVARS``)
46+
#. Region-wise average signal (``csf``, ``white_matter``, ``global_signal``)
47+
#. DVARS - original and standardized variants (``dvars``, ``std_dvars``)
4948
#. Framewise displacement, based on MCFLIRT motion parameters
50-
(``FramewiseDisplacement``)
51-
#. Temporal CompCor (``tCompCorXX``)
52-
#. Anatomical CompCor (``aCompCorXX``)
49+
(``framewise_displacement``)
50+
#. Temporal CompCor (``t_comp_cor_XX``)
51+
#. Anatomical CompCor (``a_comp_cor_XX``)
5352
#. Cosine basis set for high-pass filtering w/ 0.008 Hz cut-off
54-
(``CosineXX``)
55-
#. Non-steady-state volumes (``NonSteadyStateXX``)
53+
(``cosine_XX``)
54+
#. Non-steady-state volumes (``non_steady_state_XX``)
5655
#. Estimated head-motion parameters, in mm and rad
57-
(``X``, ``Y``, ``Z``, ``RotX``, ``RotY``, ``RotZ``)
56+
(``trans_x``, ``trans_y``, ``trans_z``, ``rot_x``, ``rot_y``, ``rot_z``)
5857
5958
6059
Prior to estimating aCompCor and tCompCor, non-steady-state volumes are
@@ -180,12 +179,14 @@ def init_bold_confs_wf(mem_gb, metadata, name="bold_confs_wf"):
180179
name="fdisp", mem_gb=mem_gb)
181180

182181
# a/t-CompCor
183-
tcompcor = pe.Node(TCompCor(
184-
components_file='tcompcor.tsv', pre_filter='cosine', save_pre_filter=True,
185-
percentile_threshold=.05), name="tcompcor", mem_gb=mem_gb)
186-
187-
acompcor = pe.Node(ACompCor(
188-
components_file='acompcor.tsv', pre_filter='cosine', save_pre_filter=True),
182+
tcompcor = pe.Node(
183+
TCompCor(components_file='tcompcor.tsv', header_prefix='t_comp_cor_', pre_filter='cosine',
184+
save_pre_filter=True, percentile_threshold=.05),
185+
name="tcompcor", mem_gb=mem_gb)
186+
187+
acompcor = pe.Node(
188+
ACompCor(components_file='acompcor.tsv', header_prefix='a_comp_cor_', pre_filter='cosine',
189+
save_pre_filter=True),
189190
name="acompcor", mem_gb=mem_gb)
190191

191192
# Set TR if present
@@ -195,12 +196,13 @@ def init_bold_confs_wf(mem_gb, metadata, name="bold_confs_wf"):
195196

196197
# Global and segment regressors
197198
mrg_lbl = pe.Node(niu.Merge(3), name='merge_rois', run_without_submitting=True)
198-
signals = pe.Node(SignalExtraction(class_labels=["CSF", "WhiteMatter", "GlobalSignal"]),
199+
signals = pe.Node(SignalExtraction(class_labels=["csf", "white_matter", "global_signal"]),
199200
name="signals", mem_gb=mem_gb)
200201

201202
# Arrange confounds
202-
add_header = pe.Node(AddTSVHeader(columns=["X", "Y", "Z", "RotX", "RotY", "RotZ"]),
203-
name="add_header", mem_gb=0.01, run_without_submitting=True)
203+
add_header = pe.Node(
204+
AddTSVHeader(columns=["trans_x", "trans_y", "trans_z", "rot_x", "rot_y", "rot_z"]),
205+
name="add_header", mem_gb=0.01, run_without_submitting=True)
204206
concat = pe.Node(GatherConfounds(), name="concat", mem_gb=0.01, run_without_submitting=True)
205207

206208
# Generate reportlet

0 commit comments

Comments
 (0)