Skip to content

Exporting fitting parameters #525

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

Merged
merged 4 commits into from
Dec 2, 2022
Merged

Conversation

JohnLaMaster
Copy link
Contributor

I have added two lines to op_eccKlose.m that add the eddy current correction to the container. Then I created and annotated osp_exportParams.m in utilities that combines the data fitting parameters and metadata and saves them as a .mat file. I was unable to test with MRSI data, but it works for SVS and multiple files.

@JohnLaMaster
Copy link
Contributor Author

As I work on the code for my project that uses osp_exportParams, I came across two things that I'm missing so far. In the MM fitting routine, is it just the amplitudes or also lineshapes that are optimized? If the lineshapes are included, where is the gaussianLB_mm saved? Secondly, I saw in the code somewhere that the current SNR calculations use the max height of the spectra instead of Cr (original implementation). But in MRSCont, it indicates that the SNR is wrt Cr. Is this label a remenant of the original implementation or is it infact the SNR of Cr?

@HJZollner HJZollner merged commit e319075 into schorschinho:develop Dec 2, 2022
@HJZollner
Copy link
Collaborator

HJZollner commented Dec 2, 2022

Hi John,

Sorry for the late reply. This one has slipped my mind. With regards to your questions:

  • The MM clean-up modeling does not use a lineshape model. I think it is still in the optimizer but not applied or used. I should remove this in the next release.
  • SNR is calculated from the 3-ppm creatine peak. However, the function for this is built from the FID-A original which uses the 2-ppm NAA peak and also names its variables that way, even if you are using a different ppm range.

I hope this answers your questions.

Thanks for your contribution!

Helge

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants