-
Notifications
You must be signed in to change notification settings - Fork 23
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
Conversion failure on GE data #123
Comments
Hi Martin, What's the data specifically? SVS/MRSI? What particular sequence? Orientation etc? GE is definitely the vendor I have least experience with and least test data currently, so there is likely stuff I get not entirely right. Are you able to share the data? |
Hi, thanks for the response, still waiting to find out if I'm allowed to share the data, it's MRS but I don't know more details of the sequence, sorry, it's not my area of expertise! I will get back to you if I can find out some more details. |
If it turns out you can't share it we can do some digging here. You could:
|
I have the exact same issue with GE data. Interestingly, we run the same sequence with same voxel dimensions in three different locations and only one of them behaves like this. psd=probe-p hacking ge_pfile.py to force voxel_size to the expected dimensions [25,30,20] makes everything run fine and the stored voxel placement looks correct. Comparing the three voxels, the other two are placed close to the midline with mainly rotations around the x-axis (dorsal ACC and V1), while this one that causes trouble is placed at the dorsolateral PFC with much more rotations applied. Can that make a difference? |
Hi @JonteP , do you have access to the GE distributed pfile reading software? If so can you tell me if that also reads the wrong voxel sizes? I believe the sizes should be in: What version of scanner software are you on? |
I don't believe I have access to that software. I tried running Osprey's CoRegister function on the p-file with a t1 and it seems to read the voxel placement and dimensions fine. The software version listed in json sidecars from other sequences that were converted with dcm2niix is "27\LX\MR Software release:MP26.0_R02_1941.a". Hope that helps! |
Great, are you able to share the data? |
I'm sorry, I do not own the data. Maybe it helps to look at Osprey's GELoad.m? It identifies the version as 26.002 so the magic happens under
|
@mcraig-ibme and @JonteP I have a proposed fix, but without any test data and a matching image of what the voxel orientation should look like I don't know whether its right. Would you be so kind as to test the 123-conversion-failure-on-ge-data-1 branch on your data? @mcraig-ibme Your example data now generates a valid file, but I can't tell if the orientation information is correct. |
Ok, it might be that I need a larger test set to resolve, but I will also contact GE to see if they can help.
Sent from Outlook for Android<https://aka.ms/AAb9ysg>
…________________________________
From: JonteP ***@***.***>
Sent: Thursday, March 21, 2024 10:30:18 AM
To: wtclarke/spec2nii ***@***.***>
Cc: William Clarke ***@***.***>; Comment ***@***.***>
Subject: Re: [wtclarke/spec2nii] Conversion failure on GE data (Issue #123)
I just tried that branch and while it now converts without any issue, the voxel placement still seems problematic.
We have 3 voxel placements, 2 of which are in the dorsal ACC and medial occipital cortex. These are basically only rotated within a sagittal plane and both are oriented correctly after spec2nii conversion. The third voxel placement is within the dorsolateral PFC, and rotated in all three dimensions. These were problematic to convert before, and now appear to be oriented the wrong way. Note how it is elongated in the z-direction rather than y:
image.png (view on web)<https://github.com/wtclarke/spec2nii/assets/40265580/2db4b5f0-80f0-45e5-871c-360976b21d56>
—
Reply to this email directly, view it on GitHub<#123 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AFJJTTTIWS6CVQPJILJTGS3YZKZDVAVCNFSM6AAAAABAROFFBSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMJRHA3TCMRWG4>.
You are receiving this because you commented.Message ID: ***@***.***>
|
Ok, but I can't reverse engineer their entire code, especially without test data. I've just pushed another update to the same branch. It has similar logic now to osprey, but I don't know the exact ordering of the dimensions that will be needed. As such I've put some debug statements in which will tell me what is happening in your case. Would you be so kind as to run your three examples again an report back whether their orientations are correct and what the printed outputs are? |
Took a while, but I tested the latest code now and the voxel placement matches Osprey and looks correct. This is the debug output: |
Great, and thanks for coming back to me. Do the other cases still match? |
Yes, they look ok. The debug output for those that already worked previously is: |
Thanks. @markmikkelsen is collecting me some data to validate this on, at which point I'll get this included in the main release. |
Hi @wtclarke, Are there any plans to support the new GE format ScanArchives.h5? Thanks. |
I am getting a conversion failure on GE MRS data - the command line and backtrace are below, however the root cause seems to be zeros in one column of the affine matrix. If I print out the calculated affine I get:
Any ideas what might be going wrong, and whether there's any way to work around this?
Many thanks,
Martin
The text was updated successfully, but these errors were encountered: