Skip to content

Commit 360d2d7

Browse files
committed
Fix column name.
1 parent 633dddc commit 360d2d7

File tree

2 files changed

+9
-13
lines changed

2 files changed

+9
-13
lines changed

aslprep/utils/confounds.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def _gather_confounds(
6767
(fdisp, "Framewise displacement"),
6868
(rmsd, "RMSD"),
6969
(motion, "Motion parameters"),
70-
(score, "SCORE outlier index"),
70+
(score, "SCORE Outlier Index"),
7171
):
7272
if confound is not None and isdefined(confound):
7373
confounds_list.append(name)

aslprep/workflows/asl/plotting.py

+8-12
Original file line numberDiff line numberDiff line change
@@ -137,26 +137,22 @@ def init_plot_cbf_wf(
137137

138138
if plot_timeseries:
139139
# Time series are only available for non-GE data.
140+
# Create confounds file with SCORE index
141+
create_cbf_confounds = pe.Node(
142+
GatherCBFConfounds(),
143+
name="create_cbf_confounds",
144+
)
145+
workflow.connect([(inputnode, create_cbf_confounds, [("score_outlier_index", "score")])])
146+
140147
carpetplot_wf = init_carpetplot_wf(
141148
mem_gb=2,
142-
confounds_list=[("SCORE outlier index", None, "SCORE Index")],
149+
confounds_list=[("score_outlier_index", None, "SCORE Index")],
143150
metadata=metadata,
144151
cifti_output=False,
145152
name="cbf_carpetplot_wf",
146153
)
147154
carpetplot_wf.inputs.inputnode.dummy_scans = 0
148155

149-
# Create fake confounds file
150-
create_cbf_confounds = pe.Node(
151-
GatherCBFConfounds(),
152-
name="create_cbf_confounds",
153-
)
154-
# fmt:off
155-
workflow.connect([
156-
(inputnode, create_cbf_confounds, [("score_outlier_index", "score")]),
157-
])
158-
# fmt:on
159-
160156
# fmt:off
161157
workflow.connect([
162158
(inputnode, carpetplot_wf, [

0 commit comments

Comments
 (0)