compneuro-da / rsHRF

rsHRF: A Toolbox for Resting State HRF Deconvolution and Connectivity Analysis (MATLAB)
BSD 3-Clause "New" or "Revised" License
47 stars 15 forks source link

Error use rsHRF_estimation_temporal_basis #56

Closed L202123 closed 3 years ago

L202123 commented 3 years ago

I hope to get some help! I've tried Job1 of the demo jobs, but failed. The error messages are shown below. I just followed the rsHRF_manual_Matlab and don’t know how to solve the problem. Thank you for any help !

Error use rsHRF_estimation_temporal_basis (line 34) The source code for the parfor loop that attempted to execute the worker process could not be found (D:\MATLAB\toolbox\spm12\toolbox\rsHRF\rsHRF_estimation_temporal_basis.m) In file "D:\MATLAB\toolbox\spm12\toolbox\rsHRF\rsHRF_estimation_temporal_basis.m" (v4473), function "rsHRF_estimation_temporal_basis" at line 34. In file "D:\MATLAB\toolbox\spm12\toolbox\rsHRF\rsHRF_deconv_job.m" (???), function "rsHRF_deconv_job" at line 41. In file "D:\MATLAB\toolbox\spm12\toolbox\rsHRF\rsHRF.m" (???), function "rsHRF" at line 113. In file "D:\MATLAB\toolbox\spm12\toolbox\rsHRF\tbx_cfg_rsHRF.m" (???), function "wgr_vox_ROI_rsHRF_conn" at line 884. The following modules did not run: Failed: Voxel-wise HRF deconvolution

guorongwu commented 3 years ago

Hi, in this code (rsHRF_estimation_temporal_basis.m), you can change line 20 ('flag_parfor = 1'): flag_parfor = 0; it seems parfor did not work.

L202123 commented 3 years ago

Thank you. I have changed it,but it still doesn't work.  The error messege is shown in the figure.

------------------ 原始邮件 ------------------ 发件人: "compneuro-da/rsHRF" @.>; 发送时间: 2021年4月27日(星期二) 下午4:25 @.>; @.**@.>; 主题: Re: [compneuro-da/rsHRF] Error use rsHRF_estimation_temporal_basis (#56)

I hope to get some help! I've tried Job1 of the demo jobs, but failed. The error messages are shown below. I just followed the rsHRF_manual_Matlab and don’t know how to solve the problem. Thank you for any help !

Error use rsHRF_estimation_temporal_basis (line 34) The source code for the parfor loop that attempted to execute the worker process could not be found (D:\MATLAB\toolbox\spm12\toolbox\rsHRF\rsHRF_estimation_temporal_basis.m) In file "D:\MATLAB\toolbox\spm12\toolbox\rsHRF\rsHRF_estimation_temporal_basis.m" (v4473), function "rsHRF_estimation_temporal_basis" at line 34. In file "D:\MATLAB\toolbox\spm12\toolbox\rsHRF\rsHRF_deconv_job.m" (???), function "rsHRF_deconv_job" at line 41. In file "D:\MATLAB\toolbox\spm12\toolbox\rsHRF\rsHRF.m" (???), function "rsHRF" at line 113. In file "D:\MATLAB\toolbox\spm12\toolbox\rsHRF\tbx_cfg_rsHRF.m" (???), function "wgr_vox_ROI_rsHRF_conn" at line 884. The following modules did not run: Failed: Voxel-wise HRF deconvolution

Hi, in this code (rsHRF_estimation_temporal_basis.m), you can change line 20 ('flag_parfor = 1'): flag_parfor = 0; it seems parfor did not work.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

danielemarinazzo commented 3 years ago

Thanks, I don't seem to find a figure in your message, can you please try again? Also without the parfor loop it should be clearer to see where the error was, you can maybe just paste the error message again.

L202123 commented 3 years ago

Thanks The error message is in the picture.

------------------ 原始邮件 ------------------ 发件人: "compneuro-da/rsHRF" @.>; 发送时间: 2021年4月27日(星期二) 下午4:43 @.>; @.**@.>; 主题: Re: [compneuro-da/rsHRF] Error use rsHRF_estimation_temporal_basis (#56)

Thanks, I don't seem to find a figure in your message, can you please try again? Also without the parfor loop it should be clearer to see where the error was, you can maybe just paste the error message again.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

danielemarinazzo commented 3 years ago

I am really sorry, there's no picture to be seen. You should be able to drag it in the text, as I am doing below

rsHRF_logo

or just send it by email.

thanks

danielemarinazzo commented 3 years ago

if you are replying to these messages from the email thread, and attaching pictures there, they will apparently be lost in the process

L202123 commented 3 years ago

841695AC@54AE5535 DACD8760 jpg_recompress I am really sorry for the mistake, and thanks for your reminding. Now the picture is here.

danielemarinazzo commented 3 years ago

thanks a lot! Can you please run it again without the parfor, so we get to see exactly at which line the code breaks?

L202123 commented 3 years ago

Thank you very much, I'll give it a try. Maybe it will take some time. Thanks again!

danielemarinazzo commented 3 years ago

no problem, let us know if we can help. If you open the SPM GUI, can you properly see the rsHRF plugin?

you can check the videos here https://www.youtube.com/watch?v=oPUc6iKQ7WE&list=PL_q40YXhtno0-H50OzYqtKBVIvo7vwOZg

For the moment you could just put the parfor flag to zero as suggested by @guorongwu amd paste the error message again.

L202123 commented 3 years ago

image yes, I can see that and I will try again. Thanks fo the videos.

L202123 commented 3 years ago

I have put the parfor flag to zero as suggested, but the error message is the same as before.

danielemarinazzo commented 3 years ago

so it still mentions a parfor loop? that should not be the case

guorongwu commented 3 years ago

Hi, 你可以直接弄一个临时会议(比如腾讯会议),共享一下你的屏幕,我可以远程协助一下解决这个问题。

guorongwu commented 3 years ago

can you also paste some data reading information before the error happened? if the fMRI data was not at the same place in the Job1 demo, it will report an error.

L202123 commented 3 years ago

非常感谢老师!为了避免耽误您的时间,我先进一步学习一下,多看看使用手册多试试,把问题汇总一下,到时候找您约时间,集中向您请教可以吗?

guorongwu commented 3 years ago

ok

L202123 commented 3 years ago

Hi, the problem was solved without doing anything. It’s amazing. Maybe there was something wrong with the computer. Thanks a lot for your help. And I will learn more about the toolbox. Maybe there will be new problems and I will ask for help again. Thanks again.