Description
When I use the BIDS validator (http://incf.github.io/bids-validator/) on a dataset converted with heudiconv v0.5.1 (dcm2niix v1.0.20180622), I'm getting this error message:
[Code 83] ECHOTIME1_2_DIFFERENCE_UNREASONABLE
The value of (EchoTime2 - EchoTime1) should be within the range of 0.0001 - 0.01.
This dataset has a field mapping sequence with two magnitude images (Siemens MR), converted using this key:
def create_key(template, outtype=('nii.gz'), annotation_classes=None):
if template is None or not template:
raise ValueError('Template must be a valid format string')
return (template, outtype, annotation_classes)
fmap_mag = create_key('sub-{subject}/fmap/sub-{subject}_magnitude')
For some subjects, EchoTime of magnitude1.nii.gz is higher than EchoTime of magnitude2.nii.gz. But BIDS specification (v1.1.1, section 8.3.5.1) says:
... EchoTime1corresponds to the shorter echo time and EchoTime2 to the longer echo time. Similarly _magnitude1 image corresponds to the shorter echo time and the OPTIONAL _magnitude2 image to the longer echo time.
Obs.: Another point related to this conversion, the BIDS specification template (same section) has not json files for magnitude images, but heudiconv is producing the ".._magnitude1.json" and ".._magnitude2.json" files.
Is it a problem with heudiconv? I can help you figure it out.