-
Notifications
You must be signed in to change notification settings - Fork 51
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
dcmstach support for multi-EPI #28
Comments
@moloney no ideas? |
Sorry for the long delay. So your data is 5D? The dcmstack code can usually guess how to sort the 4th dimension, but it doesn't even try to guess with higher dimensions. You would need to specify how to sort the 4th and 5th dimensions (e.g. using 'AcquisitionTime' and 'EchoTime'). If you are still stuck, maybe you can share the data? |
Many thanks for the offer to hep me out :) I also wouldn't mind sharing the data, but I seem to have figured it out. I have built in an automated check for multi-echo images in my currently emerging script. I am unsure how easy it would be to implement smething similar in dcmstack, but I think it would be nice if it could handle multi-EPI data natively. The logic behnd the check is very simple (and imho without any notable exception cases): if you have multiple EPI times, you should stack along that dimension. |
Could you confirm that your data is 5D? I don't see how your script could help, dcmstack is still going to re-sort the input dicom files. You need to set the 'time_order' and 'vector_order' when creating the DicomStack object so that it knows how to sort the 4th and 5th dimensions (i.e. set this to 'AcquisitionTime' and 'EchoTime' or vice versa). I just noticed the nipype interface lacks these options, but that would be relatively easy to fix. |
@moloney I have 3600 DICOM files per trial: 600 repetitions X 20 slices X 3 echo times - as the DICOM files represent 2D maps, that makes my data 5D, right? I don't think I understand this:
I am currently getting one (4D) file for each echo time (which is what I believe I need for AFNI's |
Yes your data is 5D then. If you want to get one 4D output for each echo time you could use the Alternatively you could use Anyway, this isn't a bug in dcmstack. Trying to guess the 4th dimension is already somewhat tricky, but it is a common enough need that I think it is worthwhile. Trying to guess the desired 5D order (or how to group into multiple 4D outputs) is just not worth it. I would rather provide an informative error message and the ability to get the desired result by setting some basic parameters. |
Thanks again for the helpful info. But I guess there is no easy way to do this with nipype? I had a look over here and I couldn't really say how the interface could be extended to allow |
@moloney How can I control where |
I am using dcmstack via its nipype interface. I have reported my issues here, and it seems my problem stems from dcmstack not being able to deal with multi-EPI DICOMs automatically. As stated in the linked issue report, dcmstack works nicely with my anatomical DICOMS, for instance.
How can I do the conversion for my multi-EPIs with your software?
The text was updated successfully, but these errors were encountered: