-
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
Force generation of 3D volumes rather than 4D #646
Comments
This is by design. dcm2niix is designed to create BIDS-compatible NIfTI images. This requires that time (fMRI, resting state) and diffusion (DTI) series are saved as a single 4D file. On the other hand, differences in echo time or reconstruction (phase, real, imaginary, magnitude) are stored as separate files. If you want to break a 4D file into multiple 3D files you can write a simple Python or Matlab script or use fslspli. |
Thanks @neurolabusc . This is for TB1EPI B1-map acquisition, where there are different flip angles for different volumes that are supposed to be saved as separate volumes as shown in the example dataset here in BIDS. I can split the 4D image, but then the volume-specific information has to be entered manually, and some things (such as acquisition time and hence order) is lost. Is there a way to force 3D output ? |
This comment is underspecified. What manufacturer instrument are you using and what sequence? Feel free to share a sample dataset with my institutional email. Is this related to issue 641? |
Sorry -- the system is a Siemens Prisma_fit. The sequence is B1+ mapping with two TEs, not two TRs like issue 641. It is called Also, it seems the fourD=0 option is ignored even when I say isBIDS=0, even for BOLD fMRI data. Does this mean splitting into 3D volumes at the time of conversion is not an option for any data at all ? |
dcm2niix can properly disambiguate Siemens DICOMs with multiple echo times. See here for VE11 DICOMs and here for XA30 enhanced DICOMs. I can not provide much guidance without a sample dataset. You may want to work with the Siemens Research Collaboration Manager associated with the site where data was acquired as it is their role to resolve such issues. Please be aware that the dcm2niix initialization file is deprecated as described here and here. The number of attributes stored is very limited, with the full set of defaults being:
dcm2niix does not have a As described in issue 152 the community consensus has been to have dcm2niix behave predictably and reliably rather than having a huge number of optional behaviors. It is easy to wrap dcm2niix in scripts to fill specific niches. Alternatively, it is open source and you are free to fork the project to create a tool specialized for you application. |
Ah, I guess my initialization files are from the dcm2nii days!! Thanks for clarifying that. dcm2niix does distinguish the two echos and produces two 4D files, each with 11 volumes that have different FlipAngle. BIDS wants to distinguish these volumes for these data with the "flip" entity in filename as described here -- TB1EPI. Latest SPM will produce 3D files but neither SPM nor dcm2niix will extract the FlipAngle. I'll get back about possibility of data sharing. |
The @ins0mniac2 is that a WIP sequence you are using? |
Perhaps this comment I just made on the hMRI toolbox issues page helps to illuminate things. I think it won't be possible to extract these parameters generally from the DICOM headers without some sequence programming effort (which is kind of encompassed by this hMRI toolbox issue, but there hasn't been much movement on it for a while). |
Thank you so much for the pointer @lukeje ! I think some of these specifications encourage sequence development efforts more than format conversion. @neurolabusc is there anything we can note in the spec to make your life easier for handling such cases? |
@agahkarakuzu it would help to have
|
Closing this issue, as the core issue is with the DICOMs not dcm2niix. For this multi-flip angle sequence research sequence the If sample DICOMs are provided with clear documentation, we can add a kludge to dcm2niix. |
I thought fourD=0 in the ini file should force dcm2niix (2022-07) to output 3d volumes instead of one 4D file, but that seems to not be the case. I have some multi-echo (2), multi-flip angle (11) data for which I want the output to be 2x11=22 3D volumes.
The text was updated successfully, but these errors were encountered: