Skip to content

Commit ba43f41

Browse files
committed
RPT: Add warnings to report
1 parent 339c46e commit ba43f41

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

fmriprep/viz/config.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,16 @@
9898
"title": "ROIs in BOLD space",
9999
"description": "Brain mask calculated on the BOLD signal (red contour), along with the masks used for a/tCompCor.<br />The aCompCor mask (magenta contour) is a conservative CSF and white-matter mask for extracting physiological and movement confounds. <br />The fCompCor mask (blue contour) contains the top 5% most variable voxels within a heavily-eroded brain-mask."
100100
},
101+
{
102+
"name": "epi/warn_tcompcor",
103+
"file_pattern": "func/.*_acompcor\\.",
104+
"raw": true
105+
},
106+
{
107+
"name": "epi/warn_tcompcor",
108+
"file_pattern": "func/.*_tcompcor\\.",
109+
"raw": true
110+
},
101111
{
102112
"name": "epi_mean_t1_registration/flirt",
103113
"file_pattern": "func/.*_flirtnobbr",

fmriprep/workflows/bold/confounds.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,16 @@ def init_bold_confs_wf(mem_gb, metadata, name="bold_confs_wf"):
220220
name='ds_report_bold_rois', run_without_submitting=True,
221221
mem_gb=DEFAULT_MEMORY_MIN_GB)
222222

223+
ds_warn_acompcor = pe.Node(
224+
DerivativesDataSink(suffix='acompcor'),
225+
name='ds_warn_acompcor', run_without_submitting=True,
226+
mem_gb=DEFAULT_MEMORY_MIN_GB)
227+
228+
ds_warn_tcompcor = pe.Node(
229+
DerivativesDataSink(suffix='tcompcor'),
230+
name='ds_warn_tcompcor', run_without_submitting=True,
231+
mem_gb=DEFAULT_MEMORY_MIN_GB)
232+
223233
def _pick_csf(files):
224234
return files[0]
225235

@@ -300,6 +310,8 @@ def _pick_wm(files):
300310
(acc_msk, mrg_compcor, [('out', 'in2')]),
301311
(mrg_compcor, rois_plot, [('out', 'in_rois')]),
302312
(rois_plot, ds_report_bold_rois, [('out_report', 'in_file')]),
313+
(acompcor, ds_warn_acompcor, [('out_report', 'in_file')]),
314+
(tcompcor, ds_warn_tcompcor, [('out_report', 'in_file')]),
303315
])
304316

305317
return workflow

0 commit comments

Comments
 (0)