-
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
Enhance support for GE data #132
Conversation
Add an if-then statement for sLASER datasets where the receiver phase was set
Added missing header fields for revisions 14, 15, and 16
Cosmetic edits to code
- Cleaned up code a bit in `ge_read_pfile.py` - Added support for a few other psd's
The last block of lines was previously within the `else` statement just above, which prevented those lines from running when `nechoes == 1`
Incorrect header fields were being used to determine `dataframes` and `refframes`
- Updated the `mult` and `multw` factors to match the current ones used in Gannet [NOTE: These have still not been completely finalized and may need to be adjusted in the future] - Some cosmetic edits
Amazing! Thanks so much @markmikkelsen. Is there a list of sequences or data we should add to the test set? I'm keen to do this now so that we protect against regressions later (I've got a couple of other bits and pieces for GE to do at some point). |
@wtclarke I could add some of the Big GABA GE data. However, a number of the datasets I tested these changes on cannot be shared. How do I go about adding the ones I can share? |
Yes, quite understand that some data can't be shared. For that which can be, please do send it to me and I'll add it to the test data repo (I hosted it on the WIN git to not get charged a lot by GitHub).
Sent from Outlook for Android<https://aka.ms/AAb9ysg>
…________________________________
From: Mark Mikkelsen ***@***.***>
Sent: Wednesday, March 13, 2024 4:25:48 PM
To: wtclarke/spec2nii ***@***.***>
Cc: William Clarke ***@***.***>; Mention ***@***.***>
Subject: Re: [wtclarke/spec2nii] Enhance support for GE data (PR #132)
@wtclarke<https://github.com/wtclarke> I could add some of the Big GABA GE data. However, a number of the datasets I tested these changes on cannot be shared. How do I go about adding the ones I can share?
—
Reply to this email directly, view it on GitHub<#132 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AFJJTTUALN5IPCLUPL5YV7LYYB4YZAVCNFSM6AAAAABES6QJQ2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSOJUHA3TKOBRGY>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Will send you a link via email :) |
Hi @markmikkelsen, I got the data successfully. For the various G{N} in the Big GABA datasets, is there any substantial difference? Or could I test everything of note by just including one of each of the PRESS and MPRESS? |
Hi @wtclarke, there are some subtle differences between the datasets related to the header revision number, how the data were encoded (e.g., whether or not the FIDs were summed over phase cycle), and the name of the PSD. A number of my edits help tease out these nuances. |
Good to know. I'll write some tests on this branch and we can check that it captures all the salient points then. |
Oh I see that the PRESS data that has the For the edited data, is there a way to read the editing frequency / pulse info from the p-file headers? It's nice to stick it in the NIfTI headers if it's there. |
Correct; the
Yes, but only the MEGA editing approaches provide accurate values. The HERMES/HERCULES approaches read in this info via a text file on the scanner that the user can manipulate. Unfortunately, these are (currently) not stored in the header. That said, they may be in more recent header revision versions/software releases, but we would need input from Ralph Noeske to be sure. But this is how one would get such info (adopted from
|
Is the Worth getting this right now, so I'll drop Ralph an email (with you cc'd) to see if there is a clear answer on the last point. |
That's correct; yep.
Makes sense! I think I tested something like that out, but I forgot that in the NIfTI-MRS reader, it didn't take into account that 180-deg phase difference. |
Ok, I've implemented the fix as you suggested. I'll wait to hear from Ralph to work on the editing pulse information. |
This PR includes changes to code for converting GE (P-file) datasets to the NIfTI-MRS format. I have tested these changes on multiple datasets of various types, including the MEGA-PRESS and PRESS data from the Big GABA dataset.
Changes include: