Skip to content

Commit 57f338e

Browse files
committed
enh: allow encoding the fieldmapping intent of the protocol
This PR addresses the problem @mattcieslak spotted at in bids-standard#239. This enhancement (WIP) basically allows for researchers to encode the protocol's intent regarding fieldmaps. As @satra introduced in bids-standard#239 (comment), BIDS "*could encode intent and automation. Whether it should is a community decision." This PR proposes a solution to encoding the intent. It doesn't modify anything to allow also encoding automation. The PR attempts to be backwards compatible, and is based off of bids-standard#651, where the text about fieldmaps is being revised. I'm submitting this draft PR to open discussions and looking forward to feedback. Resolves: bids-standard#239. Depends: bids-standard#651. References: #263, nipreps/dmriprep#43, bids-standard/bids-2-devel#39
1 parent 504dd30 commit 57f338e

File tree

1 file changed

+31
-4
lines changed

1 file changed

+31
-4
lines changed

src/04-modality-specific-files/01-magnetic-resonance-imaging-data.md

+31-4
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,24 @@ Useful for multimodal co-registration with MEG, (S)EEG, TMS, and so on.
107107
| ----------------------------- | --------------------- | ------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
108108
| AnatomicalLandmarkCoordinates | RECOMMENDED | [object][] of [arrays][] | Key:value pairs of any number of additional anatomical landmarks and their coordinates in voxel units (where first voxel has index 0,0,0) relative to the associated anatomical MRI (for example, `{"AC": [127,119,149], "PC": [128,93,141], "IH": [131,114,206]}`, or `{"NAS": [127,213,139], "LPA": [52,113,96], "RPA": [202,113,91]}`). Each array MUST contain three numeric values corresponding to x, y, and z axis of the coordinate system in that exact order. |
109109

110+
### Echo-Planar Imaging and *B<sub>0</sub>* mapping
111+
112+
Echo-Planar Imaging (EPI) schemes typically used in the acquisition of
113+
diffusion and functional MRI may also be *intended for* estimating the
114+
*B<sub>0</sub>* field nonuniformity inside the scanner (in other words,
115+
*mapping the field*,) without the acquisition of additional MRI schemes
116+
such as gradient-recalled echo (GRE) sequences that are stored under the
117+
`fmap/` folder of the BIDS structure.
118+
119+
The modality labels `dwi` (under `dwi/`), `bold`, and `sbref` (under `func/`)
120+
and any modality under `fmap/` are allowed to encode the MR protocol intent for
121+
fieldmap estimation using the following metadata:
122+
123+
| **Key name** | **Requirement level** | **Data type** | **Description** |
124+
| --------------------------- | --------------------- | ------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
125+
| B0FieldIdentifier | OPTIONAL | [string][] | The presence of this key states that this particular 3D or 4D image MAY be used for fieldmap estimation purposes. The `B0FieldIdentifier` MUST be a unique string within one participant's tree, shared only by the images meant to be used as inputs for the estimation of a particular instance of the *B<sub>0</sub> field* estimation. |
126+
| B0FieldSource | OPTIONAL | [string][] or [array][] of [string][] | At least one existing `B0FieldIdentifier` defined by other images in the participant's tree. This field states the *B<sub>0</sub> field* estimation designated by the `B0FieldIdentifier` that may be used to correct the dataset for distortions caused by B<sub>0</sub> inhomogeneities. `B0FieldSource` and `B0FieldIdentifier` are mutually exclusive. When a list of identifiers is given, the estimated fieldmap may be averaged across the different sources. |
127+
110128
### Institution information
111129

112130
| **Key name** | **Requirement level** | **Data type** | **Description** |
@@ -362,7 +380,8 @@ sub-control01/
362380
"PhaseEncodingDirection": "j",
363381
"InstitutionName": "Stanford University",
364382
"InstitutionAddress": "450 Serra Mall, Stanford, CA 94305-2004, USA",
365-
"DeviceSerialNumber": "11035"
383+
"DeviceSerialNumber": "11035",
384+
"B0FieldSource": ["phasediff_fmap0", "pepolar_fmap0"]
366385
}
367386
```
368387

@@ -561,7 +580,8 @@ JSON example:
561580
```JSON
562581
{
563582
"PhaseEncodingDirection": "j-",
564-
"TotalReadoutTime": 0.095
583+
"TotalReadoutTime": 0.095,
584+
"B0FieldSource": ["phasediff_fmap0", "pepolar_fmap0"]
565585
}
566586
```
567587

@@ -746,8 +766,15 @@ are REQUIRED for these field mapping sequences.
746766
Fieldmaps are typically acquired with the purpose of correcting one or more EPI
747767
scans under `func/` or `dwi/` for distortions derived from *B<sub>0</sub>*
748768
nonuniformity.
749-
This linking between fieldmaps and their targetted data MAY be encoded with the
750-
`IntendedFor` metadata.
769+
770+
#### Using `B0FieldIdentifier` metadata
771+
772+
The general purpose `B0FieldIdentifier` MRI metadata is RECOMMENDED for the
773+
prescription of the B<sub>0</sub> field estimation intent of the original acquisition
774+
protocol.
775+
This encoding fully overrides the `IntendedFor` approach (see below).
776+
However, the `IntendedFor` encoding is permitted and RECOMMENDED in combination
777+
with the `B0FieldIdentifier` to maintain compatibility with outdated software.
751778

752779
#### Using `IntendedFor` metadata
753780

0 commit comments

Comments
 (0)