Closed atstak closed 3 years ago
Hi Atsuko,
I suggest to also provide (a summary of) the e-mail exchange here for documentation. Also, I guess your issue is the consequence of an interaction between code, and data. What's the data that causes you problems?
Also - for reference - the code that gives you troubles is stuff that has to do with the following repo: https://github.com/JosePMarques/MP2RAGE-related-scripts
Hi Jan-Mathijs,
I just had a quick chat with Marcel by the canteen, and he suggested me to put this up by creating an issue so that he can work on it after he is back from the vacation. It is indeed the mp2rage related scripts, and it seems that Marcel’s wrapper does not assign correct numbers to be read out from the data header to be used in the script. The email correspondence is already summarized in the Expected behavior part. Let me know what further needs to be done (as I am not quite acquainted with this system…)
Atsuko
From: Jan-Mathijs Schoffelen @.> Sent: Tuesday, July 13, 2021 3:34 PM To: Donders-Institute/staff-scientists @.> Cc: Takashima, A. (Atsuko) @.>; Author @.> Subject: Re: [Donders-Institute/staff-scientists] bids_T1B1.m to correct mp2rage image does not run. (#4)
Hi Atsuko,
I suggest to also provide (a summary of) the e-mail exchange here for documentation. Also, I guess your issue is the consequence of an interaction between code, and data. What's the data that causes you problems?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https:/github.com/Donders-Institute/staff-scientists/issues/4*issuecomment-879092793__;Iw!!HJOPV4FYYWzcc1jazlU!vcaqgXM_K4wmQ9-WIseHPKU0C09bCIMev-ZIgqdLybq8QXdagra3sdzzx-hZgjKXyTFtcB4svA$, or unsubscribehttps://urldefense.com/v3/__https:/github.com/notifications/unsubscribe-auth/AMREBTKYSQNF2DNSD5CMXQDTXQ6FTANCNFSM5AJDYVPQ__;!!HJOPV4FYYWzcc1jazlU!vcaqgXM_K4wmQ9-WIseHPKU0C09bCIMev-ZIgqdLybq8QXdagra3sdzzx-hZgjKXyTHNtsIVqA$.
Let me make sure if I understand this correctly, you edited the code and inserted those numbers? Did you also try to pass the value to the NrShots
input argument of bids_T1B1correct()? Because that's what you should do if leaving it empty gives a wrong estimate...
The same holds for the TRFLASH, you can use the EchoSpacing
input argument there...
Dear Marcel,
So I should enter the values for MP2RAGE.NZslices (in my case [86 114]) in the second argument of the input (NrShots), and MP2RAGE.TRFLASH (in my case 0.0074) as the third argument of the input (EchoSpacing)? I did this, and this time the script ran.
My excuses that I did not know that NrShots meant the values for NZslices and EchoSpacing was about TRFLASH values.
Atsuko
From: Marcel Zwiers @.> Sent: Wednesday, August 4, 2021 8:03 PM To: Donders-Institute/staff-scientists @.> Cc: Takashima, A. (Atsuko) @.>; Author @.> Subject: Re: [Donders-Institute/staff-scientists] bids_T1B1.m to correct mp2rage image does not run. (#4)
Let me make sure if I understand this correctly, you edited the code and inserted those numbers? Did you also try to pass the value to the NrShots input argument of bids_T1B1correct()? Because that's what you should do if leaving it empty gives a wrong estimate...
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https:/github.com/Donders-Institute/staff-scientists/issues/4*issuecomment-892860726__;Iw!!HJOPV4FYYWzcc1jazlU!r6x6za2yalJGJxCyaoU8ort375AZk_GfvXoL_X5HmLWIFNhOuWEnHBpljlnsf387ooOBcozE6A$, or unsubscribehttps://urldefense.com/v3/__https:/github.com/notifications/unsubscribe-auth/AMREBTKLBSXYZSXNYSUTYB3T3F6FTANCNFSM5AJDYVPQ__;!!HJOPV4FYYWzcc1jazlU!r6x6za2yalJGJxCyaoU8ort375AZk_GfvXoL_X5HmLWIFNhOuWEnHBpljlnsf387ooPEtHGrVQ$. Triage notifications on the go with GitHub Mobile for iOShttps://urldefense.com/v3/__https:/apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675__;!!HJOPV4FYYWzcc1jazlU!r6x6za2yalJGJxCyaoU8ort375AZk_GfvXoL_X5HmLWIFNhOuWEnHBpljlnsf387ooOpCdJF1Q$ or Androidhttps://urldefense.com/v3/__https:/play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email__;!!HJOPV4FYYWzcc1jazlU!r6x6za2yalJGJxCyaoU8ort375AZk_GfvXoL_X5HmLWIFNhOuWEnHBpljlnsf387ooMxyHH2jA$.
Dear Marcel, So I should enter the values for MP2RAGE.NZslices (in my case [86 114]) in the second argument of the input (NrShots), and MP2RAGE.TRFLASH (in my case 0.0074) as the third argument of the input (EchoSpacing)? I did this, and this time the script ran. My excuses that I did not know that NrShots meant the values for NZslices and EchoSpacing was about TRFLASH values. Well, that's probably because Jose uses both terms through one another and he gave you the other one? In the help I use one term only... @JosePMarques what is the best here, do I need to update the help?
Basically my code is pre-BIDS (and is associated with the nomenclature used in my manuscript) and the BIDS wrappers are post BIDS… not sure what the best solution is. Maybe extending the help with some more examples on how the NrShots can be retrieved and mentioning that echo spacing is in this sequence equivalent to the TR of the FLASH readout would be the simplest solution.
From: Marcel Zwiers @.> Sent: Monday, 9 August 2021 19:11 To: Donders-Institute/staff-scientists @.> Cc: Marques, J.P. (José) @.>; Mention @.> Subject: Re: [Donders-Institute/staff-scientists] bids_T1B1.m to correct mp2rage image does not run. (#4)
Dear Marcel, So I should enter the values for MP2RAGE.NZslices (in my case [86 114]) in the second argument of the input (NrShots), and MP2RAGE.TRFLASH (in my case 0.0074) as the third argument of the input (EchoSpacing)? I did this, and this time the script ran. My excuses that I did not know that NrShots meant the values for NZslices and EchoSpacing was about TRFLASH values. Well, that's probably because Jose uses both terms through one another and he gave you the other one? In the help I use one term only... @JosePMarqueshttps://urldefense.com/v3/__https:/github.com/JosePMarques__;!!HJOPV4FYYWzcc1jazlU!oewOeNK_R9RS6XZJRAZuF0P1XUlgYEaBQsP_bhubgROblunGJlOd3qjxeWQ1NqWXJH9CTw$ what is the best here, do I need to update the help?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https:/github.com/Donders-Institute/staff-scientists/issues/4*issuecomment-895392822__;Iw!!HJOPV4FYYWzcc1jazlU!oewOeNK_R9RS6XZJRAZuF0P1XUlgYEaBQsP_bhubgROblunGJlOd3qjxeWQ1NqUJ34cn5g$, or unsubscribehttps://urldefense.com/v3/__https:/github.com/notifications/unsubscribe-auth/AEUDHP4TQ662HMA272OBRHLT4ADY3ANCNFSM5AJDYVPQ__;!!HJOPV4FYYWzcc1jazlU!oewOeNK_R9RS6XZJRAZuF0P1XUlgYEaBQsP_bhubgROblunGJlOd3qjxeWQ1NqUPYoNQxg$. Triage notifications on the go with GitHub Mobile for iOShttps://urldefense.com/v3/__https:/apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675__;!!HJOPV4FYYWzcc1jazlU!oewOeNK_R9RS6XZJRAZuF0P1XUlgYEaBQsP_bhubgROblunGJlOd3qjxeWQ1NqWQR-JqhQ$ or Androidhttps://urldefense.com/v3/__https:/play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email__;!!HJOPV4FYYWzcc1jazlU!oewOeNK_R9RS6XZJRAZuF0P1XUlgYEaBQsP_bhubgROblunGJlOd3qjxeWQ1NqVWUDkh1w$.
I changed the default for NrShots to: nr of z-slices and updated the help-text to avoid the confusion. See https://github.com/Donders-Institute/MP2RAGE-related-scripts/commit/aa924a0537eb7f48fb7e70d08e1d7b6bc7b42a84
Describe the issue While trying to run bids_T1B1.m on matlab, the script gives me an error message at line 191. Error message: Interpolation requires at least two sample points for each grid dimension. If numbers
Describe yourself
To Reproduce Steps to reproduce the behavior:
Error in interp1 (line 188) VqLite = matlab.internal.math.interp1(X,V,method,method,Xqcol);
Error in T1B1correctpackageTFL (line 128) MP2RAGEmatrix(k,:) = interp1(T1vector, Intensity, T1_vector);
Error in bids_T1B1correct (line 191) [T1map, MP2RAGECorr] = T1B1correctpackageTFL(B1img, MP2RAGEimg, [], MP2RAGE{n}, [], InvEff);
Expected behavior When given numbers recommended by José, after this line, the script runs smoothly. MP2RAGE.nZslices = [86 114] MP2RAGE.TRFLASH = 0.0074;
It seems with the current script, it uses MP2RAGE_lookuptable.m and gets the numbers MP2RAGE{1,1}.TRFLASH = 0.0066 MP2RAGE{1,1}.NZslices = 288
Screenshots
Environment and versions (please complete the following information):
Additional context This has been discussed between Marcel, José and me in the emails between 5th to 19th May 2021