Hello NeuroStars community,
I’m working on a project to convert ADNI3 sMRI and resting-state fMRI data into BIDS format, primarily using dcm2niix
within a custom Python script. I’m encountering a persistent and critical issue specifically with the field map sequences for several subjects (e.g., 036_S_4820
, 036_S_4894
, 037_S_0150
).
Observed Problem in BIDS Output: When my script processes raw DICOM folders identified as ‘SAG GRE FIELD MAPPING’ or ‘gre_field_mapping’ for these subjects, dcm2niix
(v1.0.20241211) consistently only generates a _phasediff.nii.gz
file and its corresponding JSON sidecar. The crucial _magnitude1.nii.gz
file is never created.
Consequently, when I run the BIDS validator, I receive the following errors/warnings:
[ERR] You have to define 'EchoTime1' and 'EchoTime2' for this file.
(code: 15)[WARN] Each _phasediff.nii[.gz] file should be associated with a _magnitude1.nii[.gz] file.
(code: 92)
(Other warnings like SliceTiming
and EVENTS_TSV_MISSING
are present but are secondary at this point, as they are likely expected or can be addressed later.)
My Diagnostic Findings (using dcm2niix -v 2
on raw field map DICOM folder): For a problematic raw field map DICOM folder (e.g., C:\small DB\036_S_4820\SAG_GRE_FIELD_MAPPING\2012-07-17_13_26_28.0\I316731
), the verbose dcm2niix
output shows that all 45 DICOM files in that folder are consistently identified as: ph 1 mag 0 echo 2
.
This indicates that the raw data I possess for this ‘field mapping’ acquisition contains only phase data from the second echo, and completely lacks any magnitude data from either echo.
My understanding of the root cause: It appears the raw DICOMs downloaded for these field map acquisitions from ADNI are incomplete. For dcm2niix
to produce a valid BIDS field map pair (_magnitude1.nii.gz
and _phasediff.nii.gz
with EchoTime1
/EchoTime2
), it requires both magnitude and phase data, typically from two echoes. Since the input only contains phase data from a single echo, dcm2niix
cannot form the complete pair. This suggests an issue with the original data acquisition or, more likely, how I’ve selected/downloaded the data.
My questions to the NeuroStars community:
- Is this a known characteristic or common issue for Siemens SAG GRE Field Mapping sequences (especially older ones from ADNI)? Does it sometimes produce phase and magnitude components as separate series that need to be explicitly combined?
- How can I reliably identify and download the complete field map series from the ADNI LONI IDA website? When looking at the ADNI IDA interface, what specific criteria (e.g., “Image Data ID” patterns, “Description” variations, or other fields) should I use to ensure I’m downloading all necessary DICOMs (magnitude and phase, both echoes) that
dcm2niix
can correctly process into a BIDS field map pair? - If a complete field map series is genuinely unavailable for certain subjects in ADNI, what are the recommended best practices for managing this in a BIDS-compliant workflow?
- Should I simply omit these subjects from analyses requiring field map correction?
- Is there a way to generate synthetic field maps if the raw acquisition isn’t complete (and is this BIDS-compliant/acceptable for fMRIPrep)?
- What’s the best way to document such missing data for BIDS validation purposes, short of removing the entire
fmap
directory for those subjects?
Any insights or guidance would be greatly appreciated! Thank you.