Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIX: Readd boilerplate, errors to report #403

Merged
merged 1 commit into from
Sep 30, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
138 changes: 42 additions & 96 deletions nibabies/data/reports-spec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,72 +10,44 @@ sections:
desc: conform
extension: [.html]
- bids: {datatype: figures, suffix: dseg}
caption: This panel shows the template anatomical image (if several were found),
with contours delineating the detected brain mask and brain tissue
segmentations.
caption: This panel shows the template anatomical image (if several were found), with contours delineating the detected brain mask and brain tissue segmentations.
subtitle: Brain mask and brain tissue segmentation of anatomical reference
- bids: {datatype: figures, space: .*, suffix: T1w, regex_search: True}
caption: Spatial normalization of the anatomical reference image to the <code>{space}</code>
template.
description: Results of nonlinear alignment of the anatomical reference one or more template
space(s). Hover on the panels with the mouse pointer to transition between both
spaces.
caption: Spatial normalization of the anatomical reference image to the <code>{space}</code> template.
description: Results of nonlinear alignment of the anatomical reference one or more template space(s). Hover on the panels with the mouse pointer to transition between both spaces.
static: false
subtitle: Spatial normalization of the anatomical reference
- bids: {datatype: figures, desc: reconall, suffix: T1w}
caption: Surfaces (white and pial) reconstructed with FreeSurfer (<code>recon-all</code>)
overlaid on the participant's T1w template.
caption: Surfaces (white and pial) reconstructed with FreeSurfer (<code>recon-all</code>) overlaid on the participant's T1w template.
subtitle: Surface reconstruction
- bids: {datatype: figures, desc: infantfs, suffix: T1w}
caption: Surfaces (white and pial) reconstructed with FreeSurfer (<code>infant_recon_all</code>)
overlaid on the participant's T1w template.
caption: Surfaces (white and pial) reconstructed with FreeSurfer (<code>infant_recon_all</code>) overlaid on the participant's T1w template.
subtitle: Surface reconstruction
- bids: {datatype: figures, desc: mcribs, suffix: T2w}
caption: Surfaces (white and pial) reconstructed with M-CRIB-S (<code>MCRIBReconAll</code>)
overlaid on the participant's T2w template.
caption: Surfaces (white and pial) reconstructed with M-CRIB-S (<code>MCRIBReconAll</code>) overlaid on the participant's T2w template.
subtitle: Surface reconstruction

- name: <em>B<sub>0</sub></em> field mapping
ordering: session,acquisition,run,fmapid
reportlets:
- bids: {datatype: figures, desc: mapped, suffix: fieldmap}
caption: Inhomogeneities of the <em>B<sub>0</sub></em> field introduce (oftentimes severe) spatial distortions
along the phase-encoding direction of the image. Some scanners produce a <em>B<sub>0</sub></em>
mapping of the field, using Spiral Echo Imaging (SEI) or postprocessing a "phase-difference"
acquisition. The plot below shows an anatomical "magnitude" reference and the corresponding
fieldmap.
description: Hover over the panels with the mouse pointer to also visualize the intensity of the
field inhomogeneity in Hertz.
caption: Inhomogeneities of the <em>B<sub>0</sub></em> field introduce (oftentimes severe) spatial distortions along the phase-encoding direction of the image. Some scanners produce a <em>B<sub>0</sub></em> mapping of the field, using Spiral Echo Imaging (SEI) or postprocessing a "phase-difference" acquisition. The plot below shows an anatomical "magnitude" reference and the corresponding fieldmap.
description: Hover over the panels with the mouse pointer to also visualize the intensity of the field inhomogeneity in Hertz.
static: false
subtitle: "Preprocessed <em>B<sub>0</sub></em> mapping acquisition"
- bids: {datatype: figures, desc: phasediff, suffix: fieldmap}
caption: Inhomogeneities of the <em>B<sub>0</sub></em> field introduce (oftentimes severe) spatial distortions
along the phase-encoding direction of the image. A Gradient-Recalled Echo (GRE) scheme for the
mapping of the <em>B<sub>0</sub></em> inhomogeneities by subtracting the phase maps obtained at
two subsequent echoes. The plot below shows an anatomical "magnitude" reference and the corresponding
fieldmap.
description: Hover over the panels with the mouse pointer to also visualize the intensity of the
field inhomogeneity in Hertz.
caption: Inhomogeneities of the <em>B<sub>0</sub></em> field introduce (oftentimes severe) spatial distortions along the phase-encoding direction of the image. A Gradient-Recalled Echo (GRE) scheme for the mapping of the <em>B<sub>0</sub></em> inhomogeneities by subtracting the phase maps obtained at two subsequent echoes. The plot below shows an anatomical "magnitude" reference and the corresponding fieldmap.
description: Hover over the panels with the mouse pointer to also visualize the intensity of the field inhomogeneity in Hertz.
static: false
subtitle: "Preprocessed mapping of phase-difference acquisition"
- bids: {datatype: figures, desc: pepolar, suffix: fieldmap}
caption: Inhomogeneities of the <em>B<sub>0</sub></em> field introduce (oftentimes severe) spatial distortions
along the phase-encoding direction of the image. Utilizing two or more images with different
phase-encoding polarities (PEPolar) or directions, it is possible to estimate the inhomogeneity
of the field. The plot below shows a reference EPI (echo-planar imaging) volume generated
using two or more EPI images with varying phase-encoding blips.
description: Hover on the panels with the mouse pointer to also visualize the intensity of the
inhomogeneity of the field in Hertz.
caption: Inhomogeneities of the <em>B<sub>0</sub></em> field introduce (oftentimes severe) spatial distortions along the phase-encoding direction of the image. Utilizing two or more images with different phase-encoding polarities (PEPolar) or directions, it is possible to estimate the inhomogeneity of the field. The plot below shows a reference EPI (echo-planar imaging) volume generated using two or more EPI images with varying phase-encoding blips.
description: Hover on the panels with the mouse pointer to also visualize the intensity of the inhomogeneity of the field in Hertz.
static: false
subtitle: "Preprocessed estimation with varying Phase-Endocing (PE) blips"
- bids: {datatype: figures, desc: anat, suffix: fieldmap}
caption: Inhomogeneities of the <em>B<sub>0</sub></em> field introduce (oftentimes severe) spatial distortions
along the phase-encoding direction of the image. Utilizing an <em>anatomically-correct</em> acquisition
(for instance, T1w or T2w), it is possible to estimate the inhomogeneity of the field by means of nonlinear
registration. The plot below shows a reference EPI (echo-planar imaging) volume generated
using two or more EPI images with the same PE encoding, after alignment to the anatomical scan.
description: Hover on the panels with the mouse pointer to also visualize the intensity of the
inhomogeneity of the field in Hertz.
caption: Inhomogeneities of the <em>B<sub>0</sub></em> field introduce (oftentimes severe) spatial distortions along the phase-encoding direction of the image. Utilizing an <em>anatomically-correct</em> acquisition (for instance, T1w or T2w), it is possible to estimate the inhomogeneity of the field by means of nonlinear registration. The plot below shows a reference EPI (echo-planar imaging) volume generated using two or more EPI images with the same PE encoding, after alignment to the anatomical scan.
description: Hover on the panels with the mouse pointer to also visualize the intensity of the inhomogeneity of the field in Hertz.
static: false
subtitle: "Preprocessed estimation by nonlinear registration to an anatomical scan (&ldquo;<em>fieldmap-less</em>&rdquo;)"

Expand All @@ -85,90 +57,46 @@ sections:
- bids: {datatype: figures, desc: summary, suffix: bold}
- bids: {datatype: figures, desc: validation, suffix: bold}
- bids: {datatype: figures, desc: fieldmap, suffix: bold}
caption: The estimated fieldmap was aligned to the corresponding EPI reference
with a rigid-registration process of the magintude part of the fieldmap,
using <code>antsRegistration</code>.
Overlaid on top of the co-registration results, the displacements along the
phase-encoding direction are represented in arbitrary units.
Please note that the color scale is centered around zero (i.e. full transparency),
but the extremes might be different (i.e., the maximum of red colors could be
orders of magnitude above or below the minimum of blue colors.)
caption: The estimated fieldmap was aligned to the corresponding EPI reference with a rigid-registration process of the magintude part of the fieldmap, using <code>antsRegistration</code>. Overlaid on top of the co-registration results, the displacements along the phase-encoding direction are represented in arbitrary units. Please note that the color scale is centered around zero (i.e. full transparency), but the extremes might be different (i.e., the maximum of red colors could be orders of magnitude above or below the minimum of blue colors.)
static: false
subtitle: Estimated fieldmap and alignment to the corresponding EPI reference
- bids: {datatype: figures, desc: sdc, suffix: bold}
caption: Results of performing susceptibility distortion correction (SDC) on the
EPI
caption: Results of performing susceptibility distortion correction (SDC) on the EPI
static: false
subtitle: Susceptibility distortion correction
- bids: {datatype: figures, desc: forcedsyn, suffix: bold}
caption: The dataset contained some fieldmap information, but the argument <code>--force-syn</code>
was used. The higher-priority SDC method was used. Here, we show the results
of performing SyN-based SDC on the EPI for comparison.
caption: The dataset contained some fieldmap information, but the argument <code>--force-syn</code> was used. The higher-priority SDC method was used. Here, we show the results of performing SyN-based SDC on the EPI for comparison.
static: false
subtitle: Experimental fieldmap-less susceptibility distortion correction
- bids: {datatype: figures, desc: flirtnobbr, suffix: bold}
caption: FSL <code>flirt</code> was used to generate transformations from EPI
space to T1 Space - BBR refinement rejected. Note that Nearest Neighbor interpolation
is used in the reportlets in order to highlight potential spin-history and other
artifacts, whereas final images are resampled using Lanczos interpolation.
caption: FSL <code>flirt</code> was used to generate transformations from EPI space to T1 Space - BBR refinement rejected. Note that Nearest Neighbor interpolation is used in the reportlets in order to highlight potential spin-history and other artifacts, whereas final images are resampled using Lanczos interpolation.
static: false
subtitle: Alignment of functional and anatomical MRI data (volume based)
- bids: {datatype: figures, desc: coreg, suffix: bold}
caption: <code>mri_coreg</code> (FreeSurfer) was used to generate transformations
from EPI space to T1 Space - <code>bbregister</code> refinement rejected. Note
that Nearest Neighbor interpolation is used in the reportlets in order to highlight
potential spin-history and other artifacts, whereas final images are resampled
using Lanczos interpolation.
caption: <code>mri_coreg</code> (FreeSurfer) was used to generate transformations from EPI space to T1 Space - <code>bbregister</code> refinement rejected. Note that Nearest Neighbor interpolation is used in the reportlets in order to highlight potential spin-history and other artifacts, whereas final images are resampled using Lanczos interpolation.
static: false
subtitle: Alignment of functional and anatomical MRI data (volume based)
- bids: {datatype: figures, desc: flirtbbr, suffix: bold}
caption: FSL <code>flirt</code> was used to generate transformations from EPI-space
to anatomical space - The white matter mask calculated with FSL <code>fast</code> (brain
tissue segmentation) was used for BBR. Note that Nearest Neighbor interpolation
is used in the reportlets in order to highlight potential spin-history and other
artifacts, whereas final images are resampled using Lanczos interpolation.
caption: FSL <code>flirt</code> was used to generate transformations from EPI-space to anatomical space - The white matter mask calculated with FSL <code>fast</code> (brain tissue segmentation) was used for BBR. Note that Nearest Neighbor interpolation is used in the reportlets in order to highlight potential spin-history and other artifacts, whereas final images are resampled using Lanczos interpolation.
static: false
subtitle: Alignment of functional and anatomical MRI data (surface driven)
- bids: {datatype: figures, desc: bbregister, suffix: bold}
caption: <code>bbregister</code> was used to generate transformations from EPI-space
to anatomical space. Note that Nearest Neighbor interpolation is used in the reportlets
in order to highlight potential spin-history and other artifacts, whereas final
images are resampled using Lanczos interpolation.
caption: <code>bbregister</code> was used to generate transformations from EPI-space to anatomical space. Note that Nearest Neighbor interpolation is used in the reportlets in order to highlight potential spin-history and other artifacts, whereas final images are resampled using Lanczos interpolation.
static: false
subtitle: Alignment of functional and anatomical MRI data (surface driven)
- bids: {datatype: figures, desc: rois, suffix: bold}
caption: Brain mask calculated on the BOLD signal (red contour), along with the
regions of interest (ROIs) used in <em>a/tCompCor</em> for extracting
physiological and movement confounding components.<br />
The <em>anatomical CompCor</em> ROI (magenta contour) is a mask combining
CSF and WM (white-matter), where voxels containing a minimal partial volume
of GM have been removed.<br />
The <em>temporal CompCor</em> ROI (blue contour) contains the top 2% most
variable voxels within the brain mask.
caption: Brain mask calculated on the BOLD signal (red contour), along with the regions of interest (ROIs) used in <em>a/tCompCor</em> for extracting physiological and movement confounding components.<br /> The <em>anatomical CompCor</em> ROI (magenta contour) is a mask combining CSF and WM (white-matter), where voxels containing a minimal partial volume of GM have been removed.<br /> The <em>temporal CompCor</em> ROI (blue contour) contains the top 2% most variable voxels within the brain mask.
subtitle: Brain mask and (anatomical/temporal) CompCor ROIs
- bids:
datatype: figures
desc: '[at]compcor'
extension: [.html]
suffix: bold
- bids: {datatype: figures, desc: 'compcorvar', suffix: bold}
caption: The cumulative variance explained by the first k components of the
<em>t/aCompCor</em> decomposition, plotted for all values of <em>k</em>.
The number of components that must be included in the model in order to
explain some fraction of variance in the decomposition mask can be used
as a feature selection criterion for confound regression.
caption: The cumulative variance explained by the first k components of the <em>t/aCompCor</em> decomposition, plotted for all values of <em>k</em>. The number of components that must be included in the model in order to explain some fraction of variance in the decomposition mask can be used as a feature selection criterion for confound regression.
subtitle: Variance explained by t/aCompCor components
- bids: {datatype: figures, desc: carpetplot, suffix: bold}
caption: Summary statistics are plotted, which may reveal trends or artifacts
in the BOLD data. Global signals calculated within the whole-brain (GS), within
the white-matter (WM) and within cerebro-spinal fluid (CSF) show the mean BOLD
signal in their corresponding masks. DVARS and FD show the standardized DVARS
and framewise-displacement measures for each time point.<br />
A carpet plot shows the time series for all voxels within the brain mask,
or if <code>--cifti-output</code> was enabled, all grayordinates.
Voxels are grouped into cortical (dark/light blue), and subcortical (orange)
gray matter, cerebellum (green) and white matter and CSF
(red), indicated by the color map on the left-hand side.
caption: Summary statistics are plotted, which may reveal trends or artifacts in the BOLD data. Global signals calculated within the whole-brain (GS), within the white-matter (WM) and within cerebro-spinal fluid (CSF) show the mean BOLD signal in their corresponding masks. DVARS and FD show the standardized DVARS and framewise-displacement measures for each time point.<br /> A carpet plot shows the time series for all voxels within the brain mask, or if <code>--cifti-output</code> was enabled, all grayordinates. Voxels are grouped into cortical (dark/light blue), and subcortical (orange) gray matter, cerebellum (green) and white matter and CSF (red), indicated by the color map on the left-hand side.
subtitle: BOLD Summary
- bids: {datatype: figures, desc: 'confoundcorr', suffix: bold}
caption: |
Expand All @@ -180,5 +108,23 @@ sections:
confound regression.
subtitle: Correlations among nuisance regressors
- name: About
nested: true
reportlets:
- bids: {datatype: figures, desc: about}
- custom: boilerplate
path: '{out_dir}/logs'
bibfile: ['nibabies', 'data/boilerplate.bib']
caption: |
<p>We kindly ask to report results preprocessed with this tool using the following boilerplate.</p>
<p class="alert alert-info" role="alert">
<strong>Copyright Waiver</strong>.
The boilerplate text was automatically generated by <em>NiReports</em> with the
express intention that users should copy and paste this text into their manuscripts <em>unchanged</em>.
It is released under the
<a href="https://creativecommons.org/publicdomain/zero/1.0/" target="_blank">CC0 license</a>.
</p>
title: Methods
- custom: errors
path: '{out_dir}/sub-{subject}/log/{run_uuid}'
captions: <em>NiReports</em> may have recorded failure conditions.
title: Errors
Loading