Skip to content

Commit b0c2b76

Browse files
authored
Merge pull request #1574 from danlurie/master
DOC: Add .bidsignore requirement to docs on lesion masks
2 parents be411d7 + 7149071 commit b0c2b76

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

docs/workflows.rst

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,14 @@ in a multiscale, mutual-information based, nonlinear registration scheme.
126126
In particular, spatial normalization is done using the `ICBM 2009c Nonlinear
127127
Asymmetric template (1×1×1mm) <http://nist.mni.mcgill.ca/?p=904>`_ [Fonov2011]_.
128128

129+
.. figure:: _static/T1MNINormalization.svg
130+
:scale: 100%
131+
132+
Animation showing T1w to MNI normalization
133+
134+
Cost function masking during spatial normalization
135+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
136+
129137
When processing images from patients with focal brain lesions (e.g. stroke, tumor
130138
resection), it is possible to provide a lesion mask to be used during spatial
131139
normalization to MNI-space [Brett2001]_.
@@ -137,11 +145,12 @@ in the same space and resolution as the T1 image, and follow the naming conventi
137145
(e.g. ``sub-001_T1w_label-lesion_roi.nii.gz``).
138146
This file should be placed in the ``sub-*/anat`` directory of the BIDS dataset
139147
to be run through ``fmriprep``.
148+
Because lesion masks are not currently part of the BIDS specification, it is also necessary to
149+
include a ``.bidsignore`` file in the root of your dataset directory. This will prevent
150+
`bids-validator <https://github.com/bids-standard/bids-validator#bidsignore>`_ from complaining that your dataset not BIDS valid, which prevents
151+
``fmriprep`` from running. Your ``.bidsignore`` file should include the following line::
140152

141-
.. figure:: _static/T1MNINormalization.svg
142-
:scale: 100%
143-
144-
Animation showing T1w to MNI normalization
153+
*lesion_roi.nii.gz
145154
146155

147156
Longitudinal processing

0 commit comments

Comments
 (0)