You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have used dcm2niix to convert my ASL data collected with a 3T GE Discovery 750 scanner from dicom to BIDS format. As has been previously explained, the GE ASL sequences are unusual in that there is a deltam sequence computed in k-space and a m0scan. Both of these sequences are present within the same folder of dcm files. After running dcm2niix, I used bids-validator to ensure that the outputs were correct, but I encountered the same problem that other users have experienced. Can we possibly resolve the source of this problem?
With my example dataset, I ran nifti_tool -disp_hdr -infiles sub-p260_ses-research_asl.nii.gz. This is the output:
I notice a few things. First of all, there are three dimensions and the fourth one is set to 1. This means that there shouldn't be an error of a mismatch between dim[4] and the number of rows in the tsv file. Something weird seems to be going on though because the fourth pixdim is 4.705. I tried using fslchpixdim sub-p260_ses-research_asl.nii.gz 1.726600 1.726600 3 0 to change the fourth pixel dimension to 0 manually, but this did not resolve the error.
Do you have any suggestions?
Thanks!
Price
The text was updated successfully, but these errors were encountered:
If I'm reading this and the linked threads correctly, this is a 4D _asl file with a single volume. In which case dim[0] should be 4, not 3. That would be consistent with pixdim[4] having a non-trivial value, and should then allow you to compare the 4th entry in the shape tuple with the length of your volume_type column.
There's probably an easy command-line tool to reshape a data array, but you could do something like this in Python:
Hi,
I have used dcm2niix to convert my ASL data collected with a 3T GE Discovery 750 scanner from dicom to BIDS format. As has been previously explained, the GE ASL sequences are unusual in that there is a deltam sequence computed in k-space and a m0scan. Both of these sequences are present within the same folder of dcm files. After running dcm2niix, I used bids-validator to ensure that the outputs were correct, but I encountered the same problem that other users have experienced. Can we possibly resolve the source of this problem?
With my example dataset, I ran
nifti_tool -disp_hdr -infiles sub-p260_ses-research_asl.nii.gz
. This is the output:My aslcontext.tsv file looks like this:
I notice a few things. First of all, there are three dimensions and the fourth one is set to 1. This means that there shouldn't be an error of a mismatch between dim[4] and the number of rows in the tsv file. Something weird seems to be going on though because the fourth pixdim is 4.705. I tried using
fslchpixdim sub-p260_ses-research_asl.nii.gz 1.726600 1.726600 3 0
to change the fourth pixel dimension to 0 manually, but this did not resolve the error.Do you have any suggestions?
Thanks!
Price
The text was updated successfully, but these errors were encountered: