nipy / heudiconv

Flexible DICOM conversion into structured directory layouts
https://heudiconv.readthedocs.io
Other
232 stars 125 forks source link

BOLD_NOT_4D for one particular run (converting both single band and multi band files) #751

Open John-Chin opened 4 months ago

John-Chin commented 4 months ago

Summary

I am trying to convert a set of dicom files to BIDS format using dcm2niix and a custom heuristic. See the following command: heudiconv --files /mnt/LD4_PilotData/rawdata/LD001/*/*dcm -o /mnt/LD4_PilotData/subjects -f /mnt/LD4_PilotData/code/LD4_BIDS.py -s 001 -c dcm2niix -b --overwrite

Everything converts as expected except for one thing: One particular run, run # 5, which is the 6th run out of 7 runs (using a 0-6 naming convention) should be a functional bold 4D image, but for some reason it only has 3 dimensions after conversion. All the other functional runs are converted correctly with 4D. Hence, I'm not sure what's going on with run # 5 (although I do not think it is a data issue, because I tried preprocessing the data in AFNI and it turns out fine).

Perhaps a factor is that my subject dicom files include both multiple multi-echo/multi-band scans and one or more non-ME/non-MB fMRI scans. So maybe I am not constructing my heurstic LD4_BIDS.py correctly to account for this? (This is my first time dealing with single and mutli band/ME files).

I have attached my custom heuristic LD4_BIDS.py.txt and any help is appreciated.

Platform details:

Choose one: