Skip to content

Commit bac3cc9

Browse files
committed
FIX: Add PET report support in fmriprep
1 parent af4d5f4 commit bac3cc9

File tree

3 files changed

+30
-5
lines changed

3 files changed

+30
-5
lines changed

fmriprep/data/reports-spec-pet.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ sections:
88
- bids: {datatype: figures, desc: validation, suffix: pet}
99
- bids: {datatype: figures, desc: carpetplot, suffix: pet}
1010
- bids: {datatype: figures, desc: confoundcorr, suffix: pet}
11-
- bids: {datatype: figures, suffix: pet}
11+
- bids: {datatype: figures, desc: coreg, suffix: pet}
1212
- name: About
1313
reportlets:
1414
- bids: {datatype: figures, desc: about, suffix: T1w}

fmriprep/data/reports-spec.yml

Lines changed: 27 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
package: fmriprep
2-
title: Visual report for participant '{subject}' - fMRIPrep
2+
title: Visual report for participant '{subject}' - PETPrep
33
sections:
44
- name: Summary
55
reportlets:
@@ -107,13 +107,37 @@ sections:
107107
confound regression.
108108
subtitle: Correlations among nuisance regressors
109109
- name: PET
110-
ordering: session
110+
ordering: session,task,acquisition,ceagent,reconstruction,direction,run
111111
reportlets:
112112
- bids: {datatype: figures, desc: summary, suffix: pet}
113+
caption: Summary of PET data acquisition parameters and processing workflow overview, including details such as injected dose, radiotracer used, and scan duration.
114+
static: true
115+
subtitle: PET Acquisition and Workflow Summary
116+
113117
- bids: {datatype: figures, desc: validation, suffix: pet}
118+
caption: Validation of PET images against BIDS specifications and initial quality assessment including checks for missing slices, artifacts, and alignment issues.
119+
static: true
120+
subtitle: PET Data Validation
121+
114122
- bids: {datatype: figures, desc: carpetplot, suffix: pet}
123+
caption: |
124+
Summary statistics and global PET signal measures are presented.
125+
A carpet plot displays voxel-level PET tracer uptake over time within the brain mask. Global signals calculated across the whole-brain (GS), white matter (WM), and cerebrospinal fluid (CSF) regions are plotted, along with DVARS and framewise displacement (FD) to visualize potential motion or acquisition artifacts.
126+
"Ctx" = cortex, "Cb" = cerebellum, "WM" = white matter, "CSF" = cerebrospinal fluid.
127+
static: false
128+
subtitle: PET Summary and Carpet Plot
129+
115130
- bids: {datatype: figures, desc: confoundcorr, suffix: pet}
116-
- bids: {datatype: figures, suffix: pet}
131+
caption: |
132+
Left: Correlation heatmap illustrating relationships among PET-derived confound variables (e.g., motion parameters, global signal).
133+
Right: Magnitude of correlation between each PET confound time series and the global PET signal. High correlations suggest potential partial volume effects or motion-induced artifacts, informing subsequent confound regression strategies.
134+
static: false
135+
subtitle: PET Confound Correlation
136+
137+
- bids: {datatype: figures, desc: coreg, suffix: pet}
138+
caption: PET to anatomical alignment check
139+
static: false
140+
subtitle: Additional PET Visualizations
117141
- name: About
118142
nested: true
119143
reportlets:

fmriprep/workflows/pet/outputs.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ def init_func_fit_reports_wf(
307307
pet_t1_report = pe.Node(
308308
SimpleBeforeAfter(
309309
before_label='T1w',
310-
after_label='EPI',
310+
after_label='PET',
311311
dismiss_affine=True,
312312
),
313313
name='pet_t1_report',
@@ -317,6 +317,7 @@ def init_func_fit_reports_wf(
317317
ds_pet_t1_report = pe.Node(
318318
DerivativesDataSink(
319319
base_directory=output_dir,
320+
desc='coreg',
320321
suffix='pet',
321322
datatype='figures',
322323
),

0 commit comments

Comments
 (0)