-
Notifications
You must be signed in to change notification settings - Fork 530
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
DcmStack interface and EPI sequences. #1072
Comments
just a quick first question - are these siemens dicoms? also you may want to take a look at: |
No, these are dicoms converted from some rather strange BRUKER format. They (the DICOMS, as I also have them here) can certainly be converted to NifTi successfully with a few MATLAB scripts that float around our lab, but I'd rather use a backend that is better supported and reviewed. I am pretty sure dcmstack should be able to do this, since it dealt with my anatomical scans from the same scanner nicely. Also, please read my last edit regarding multi-Echo. Wow. that is some seriously involved code. Is this what it takes to get some nice EPI conversion with dcmstack? Why didn't you add this functionality / this script to nipype? |
in this case i believe it's the grouping that it cannot do because of the multi-echo. iirc dicomstack has a way of specifying grouping variables. re: gist - actually i rely on dcm2nii to do the conversion - across scanners and sequences, i have found it to be the most stable and accurate. then i use dcmstack to essentially embed the metadata into the nifti header. most of the convoluted part has to do with arrangement of folder structure based on the heuristic file. i'm hoping this will be completely replaced by a db in the future, but for now this works really well in our lab. i have off and on considered adding it as a workflow - mostly laziness i think. |
Sorry to open this issue again, I have EPI sequence, and I have different machines( Siemens, GE, Philips), when I use dcmstack to convert these dicoms to nifti, it works well for Siemens GE(ok for DTI, phase and magnitude image), but not for Philips DTI, i got the same errors like above, do you have any suggestion??? |
@anbai106 - at this point we recommend that people use: https://github.com/nipy/heudiconv - it has the added advantage of being able to convert to a bids structure. there is even a docker image if you don't want to install things. https://hub.docker.com/r/nipy/heudiconv/ |
@satra -Nice, for the converter option with dcmstack, do you have the option to write json file for the metadata, which draws me interests. But my question is that even with heudiconv, you still use the dcmstack, for Philips DTI image, do we still have this errors? I saw there is an issue in the dcmstatck github : https://github.com/moloney/dcmstack/issues/48 Any way, i will try this:) |
actually we will soon be replacing the converter options with just dcm2niix for now - dcmstack was targeted at siemens scans. you should use the dcm2niix converter option. |
@satra -Yes I know that dcm2niix work fine for all the three machines with -b option, but content that dcm2niix created with -b option is not so complete compared dcmstack, Currently, when dealing with DWI data, we have to calculate the effective-echo-spacing and full-read-out-time, some parameters like this, what we want to do is to compute these parameters for preprocessing step(some times this is a little tricky for different machines), and rewrite these parameters into another json file in BIDS structure, So that is why I wanna use dcmstack to get more elaborate json file. |
@anbai106 - i completely understand. one of the things on the plate, but no resources at this time is to move some of the dicomstack functionality to nibabel or a standalone library:
|
@mgxd - Thanks for your reply, Finally, I think for Siemens, it is quite stable to calculate the parameters needed for preprocessing(like you showed in the post), but for Philips and GE, it is not the same, I think for Siemens, I have finished the scripts to calculate these parameters, and for dcm2niix, the json file looks like this:
But for Philips, the effective-echo-spacing is like this: Which dcm2niix's json file does not give the details from DTI image, and dcmstack doest not work for Philips DTI. I will try the dcmstack develop code to adapt them into Philips DTI image, Thanks for your advice good night |
@chrisfilo - this is relevant to bids. |
Hi, I am using the
nipype.interfaces.dcmstack
wrapper to turn some of my DICOM files into NifTi. This works nicely with my anatomical sequences, but not so much with my EPIs. My code is:And I get the following error:
Any ideas what I could do? I was thinking better ask here first instead of upstream at DcmStack, since I want to keep using your wrapper, and not their cli directly. Also, is there any way to see what CLI command the wrapper translates to
Also, my seuences are multi-EPI (3echoes X 20slices X 600 volumes) - if that makes any difference.
The text was updated successfully, but these errors were encountered: