-
Notifications
You must be signed in to change notification settings - Fork 228
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
syntax problem in JSON siedecar when FrameDuration have only 1 element #616
Comments
From reading the code, it comes from these lines : dcm2niix/console/nii_dicom_batch.cpp Line 1378 in 002ebcd
The comma is written, then the break happens. |
@benoitberanger can you confirm that the latest commit to the development branch resolves this issue. The BIDS tag FrameDuration will now only be populated for 4D datasets. Perhaps you can provide more details on the ADNI dataset that is eliciting this error, as a DWI DICOM dataset should not contain this tag. @captainnova maybe you want to track down why an ADNI DWI MR reports the Actual Frame Duration from the Nuclear Medicine module. I added this in to support BIDS BEP009. |
@neurolabusc, we certainly would like to track this down, although since we only use product sequences it will probably be more a matter of data curation than being able to do much about improving DICOM compliance in already acquired scans. We also don't acquire the sort of b = 0 + 3 b = 1000 scans that "DWI" often means, but often additional series get uploaded from the site to LONI along with the standard ADNI protocol. Such series should be filtered out and not leave LONI, but mistakes happen. @benoitberanger can you please share the participant ID, scan date, and series number of this series? If you got it from LONI I should already have the DICOM in our local filesystem. If instead it came from some other source, such as an "ADNI-like" study, that will be important to know. Thanks, Rob |
@neurolabusc @captainnova here is the JSON content :
|
@neurolabusc using this dev commit 63c76f2, here is the same JSON :
JSON syntax is not correct here :
|
Can you share the DICOMs privately with me by sending a GoogleDrive or DropBox link to my institutional email? It would be nice to have a concrete example to understand what is happening. |
I just shared the whole dataset I have. Here is the complete command line I run after changing the commit (or try a modification in the source myself) :
dcm2niix binary file have a symlink in
|
@benoitberanger thanks for the example data. Can you retest the latest version. @captainnova this turns out to be a problem of my BEP009 implementation. While dcm2niix worked well for single classic series, it could be tripped up when dealing with complicated series. In this case, the Axial_rsfMRI__Eyes_Open series from ADNI participant 016_S_6790 is incomplete, which caused issues handling the Axial_DTI series. The patch should allow dcm2niix to handle these situations gracefully. So the root cause is certainly with dcm2niix, but it might be nice to deal with the missing images from that participant. |
With the new commit in the dev branch (3583fcc), the JSON syntax problem is resolved ! |
Hi, to follow up on the possible ADNI data curation issue, @benoitberanger, @neurolabusc, could you please specify the ADNI subject ID and scan date of the problem session? ADNI is longitudinal, and 016_S_6790 has had more than one scan date, none of which are 2020-10-06. There was one on 2020-10-21 where both the dMRI and fMRI failed our protocol checker and thus should not have been released from quarantine (but they were). Meanwhile 014_S_6437 20201006 from the BIDS Benoit posted above appears to be normal. Thanks |
* tag 'v1.0.20220720': (65 commits) GE Direct field mapping (TE1/TE2) (rordenlab#617) GE Direct field mapping (TE1/TE2) (rordenlab#617) Issue 618 (rordenlab#618) Update notes Siemens XA30 ASL parameters and ImageTypeText 0021,1175 Reset PET values for classic DICOMs (rordenlab#616) PostLabelDelay for XA30, FrameDuration is only for 4D datasets (rordenlab#616) shims are signed (rordenlab#608) AcquisitionVoxelSize before any interpolation or resampling within reconstruction or image processing Add AcquisitionVoxelSize tag for Siemens ASL (rordenlab#608) Store GE ShimSetting as array (rordenlab#608) GE sequence details (rordenlab#608) Philips slice timing notes Verbose scan options (issue 606) Change scanOptions scan options is long string, fix bvec rejection (rordenlab#606) Ignore non-spatial physio data (rordenlab#606) Flipping Y also flips sign of determinant Better Siemens XA support (rordenlab#606) Report DwellTime for Siemens XA (rordenlab#240) ...
Describe the bug
On a DWI dataset, the JSON sidecar
FrameDuration
have only 1 element, but is written as an array, and the line is finished by a comma :This syntax in not JSON compatible.
To reproduce
Version number : 20211220
Commit number : 002ebcd
Command :
dcm2niix -o /mnt/data/benoit/project/ADNI/nifti_20211220 -ba n /mnt/data/benoit/project/ADNI/dicom
Expected behavior
I would expect a JSON standard syntax :
Output log
see above
Version
Please report the complete version string:
The text was updated successfully, but these errors were encountered: