Skip to content

Commit 314fbec

Browse files
committed
RPT: Improve and align captions with now-produced reportlets [no fasttrack]
1 parent 695ba8c commit 314fbec

File tree

3 files changed

+15
-32
lines changed

3 files changed

+15
-32
lines changed

fmriprep/data/reports-spec.yml

Lines changed: 11 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ sections:
8282
Overlaid on top of the co-registration results, the final BOLD mask is represented
8383
with a red contour for reference.
8484
static: false
85-
subtitle: Alignment between the anatomical reference of the fieldmap and the target EPI (debug mode)
85+
subtitle: Alignment between the anatomical reference of the fieldmap and the target EPI
8686
- bids: {datatype: figures, desc: fieldmap, suffix: bold}
8787
caption: Estimated fieldmap, as reconstructed on the target BOLD run space to allow
8888
the assessment of its alignment with the distorted data.
@@ -97,7 +97,9 @@ sections:
9797
subtitle: "Reconstructed <em>B<sub>0</sub></em> map in the corresponding run's space (debug mode)"
9898
- bids: {datatype: figures, desc: sdc, suffix: bold}
9999
caption: Results of performing susceptibility distortion correction (SDC) on the
100-
EPI
100+
BOLD reference image. The "distorted" image is the image that would be used to
101+
align to the anatomical reference if SDC were not applied. The "corrected"
102+
image is the image that was used.
101103
static: false
102104
subtitle: Susceptibility distortion correction
103105
- bids: {datatype: figures, desc: forcedsyn, suffix: bold}
@@ -118,37 +120,15 @@ sections:
118120
appear in the 100ms bin.
119121
static: false
120122
subtitle: T2* gray-matter values
121-
- bids: {datatype: figures, desc: flirtnobbr, suffix: bold}
122-
caption: <code>mri_coreg</code> (FreeSurfer) was used to generate transformations
123-
from EPI space to T1 Space - BBR refinement using FSL <code>flirt</code> rejected.
124-
Note that Nearest Neighbor interpolation is used in the reportlets in order to
125-
highlight potential spin-history and other artifacts, whereas final images are
126-
resampled using Lanczos interpolation.
127-
static: false
128-
subtitle: Alignment of functional and anatomical MRI data (volume based)
129123
- bids: {datatype: figures, desc: coreg, suffix: bold}
130-
caption: <code>mri_coreg</code> (FreeSurfer) was used to generate transformations
131-
from EPI space to T1 Space - <code>bbregister</code> refinement rejected. Note
132-
that Nearest Neighbor interpolation is used in the reportlets in order to highlight
133-
potential spin-history and other artifacts, whereas final images are resampled
134-
using Lanczos interpolation.
135-
static: false
136-
subtitle: Alignment of functional and anatomical MRI data (volume based)
137-
- bids: {datatype: figures, desc: flirtbbr, suffix: bold}
138-
caption: FSL <code>flirt</code> was used to generate transformations from EPI-space
139-
to T1w-space - The white matter mask calculated with FSL <code>fast</code> (brain
140-
tissue segmentation) was used for BBR. Note that Nearest Neighbor interpolation
141-
is used in the reportlets in order to highlight potential spin-history and other
142-
artifacts, whereas final images are resampled using Lanczos interpolation.
143-
static: false
144-
subtitle: Alignment of functional and anatomical MRI data (surface driven)
145-
- bids: {datatype: figures, desc: bbregister, suffix: bold}
146-
caption: <code>bbregister</code> was used to generate transformations from EPI-space
147-
to T1w-space. Note that Nearest Neighbor interpolation is used in the reportlets
148-
in order to highlight potential spin-history and other artifacts, whereas final
149-
images are resampled using Lanczos interpolation.
124+
caption: This panel shows the alignment of the reference EPI (BOLD) image to the
125+
anatomical (T1-weighted) image.
126+
The reference EPI has been contrast enhanced and susceptibility-distortion
127+
corrected (if applicable) for improved anatomical fidelity.
128+
The anatomical image has been resampled into EPI space, as well as the
129+
anatomical white matter mask, which appears as a red contour.
150130
static: false
151-
subtitle: Alignment of functional and anatomical MRI data (surface driven)
131+
subtitle: Alignment of functional and anatomical MRI data (coregistration)
152132
- bids: {datatype: figures, desc: rois, suffix: bold}
153133
caption: Brain mask calculated on the BOLD signal (red contour), along with the
154134
regions of interest (ROIs) used for the estimation of physiological and movement

fmriprep/workflows/bold/fit.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -354,6 +354,7 @@ def init_bold_fit_wf(
354354
]),
355355
(outputnode, func_fit_reports_wf, [
356356
("coreg_boldref", "inputnode.coreg_boldref"),
357+
("bold_mask", "inputnode.bold_mask"),
357358
("boldref2anat_xfm", "inputnode.boldref2anat_xfm"),
358359
]),
359360
(summary, func_fit_reports_wf, [("out_report", "inputnode.summary_report")]),

fmriprep/workflows/bold/outputs.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,7 @@ def init_func_fit_reports_wf(
195195
"source_file",
196196
"sdc_boldref",
197197
"coreg_boldref",
198+
"bold_mask",
198199
"boldref2anat_xfm",
199200
"boldref2fmap_xfm",
200201
"t1w_preproc",
@@ -368,7 +369,8 @@ def init_func_fit_reports_wf(
368369
]),
369370
(inputnode, sdcreg_report, [
370371
('sdc_boldref', 'reference'),
371-
('fieldmap', 'fieldmap')
372+
('fieldmap', 'fieldmap'),
373+
('bold_mask', 'mask'),
372374
]),
373375
(fmapref_boldref, sdcreg_report, [('output_image', 'moving')]),
374376
(inputnode, ds_sdcreg_report, [('source_file', 'source_file')]),

0 commit comments

Comments
 (0)