help > Error- Results
Showing 1-14 of 14 posts
Display:
Results per page:
Apr 15, 2016  03:04 PM | Liat Levita
Error- Results
Thank you so much for this great toolbox. Before the most recent  update i ran through the tutorial in the manual with no problem.

However, now at first level analysis 'results' I keep coming up with this error  see below. I am running spm_fnirs on matlab 2015a (I tried 2016a on which it doesn't work at all, and with 2014a there were issues when i tried to do temporal processing). 

This is the error message that i get
-----
Error using cd
Cannot CD to HbO (Name is nonexistent or not a directory).

Error in spm_fnirs_contrasts (line 30)
cd(swd);
Error in spm_fnirs_viewer_stat>push_contrast_Callback (line 143)
SPM = spm_fnirs_contrasts(SPM, ic);
Error in gui_mainfcn (line 95)
feval(varargin{:});
Error in spm_fnirs_viewer_stat (line 35)
gui_mainfcn(gui_State, varargin{:});
Error in
@(hObject,eventdata)spm_fnirs_viewer_stat('push_contrast_Callback',hObject,eventdata,guidata(hObject))
Error while evaluating UIControl Callback
----
Any ideas?  Any help would be much appreciated. 

With best wishes, 

Liat
Apr 18, 2016  12:04 PM | Sungho Tak - Wellcome Trust Centre for Neuroimaging, UCL
RE: Error- Results
Dear Liat, 

Thank you for using our toolbox. Could you send me your data by email (s.tak@ucl.ac.uk; stak@kbsi.re.kr)? 

It will help me understand the problem. 

Best wishes, 

Sungho 
Originally posted by Liat Levita:
Thank you so much for this great toolbox. Before the most recent  update i ran through the tutorial in the manual with no problem.

However, now at first level analysis 'results' I keep coming up with this error  see below. I am running spm_fnirs on matlab 2015a (I tried 2016a on which it doesn't work at all, and with 2014a there were issues when i tried to do temporal processing). 

This is the error message that i get
-----
Error using cd
Cannot CD to HbO (Name is nonexistent or not a directory).

Error in spm_fnirs_contrasts (line 30)
cd(swd);
Error in spm_fnirs_viewer_stat>push_contrast_Callback (line 143)
SPM = spm_fnirs_contrasts(SPM, ic);
Error in gui_mainfcn (line 95)
feval(varargin{:});
Error in spm_fnirs_viewer_stat (line 35)
gui_mainfcn(gui_State, varargin{:});
Error in
@(hObject,eventdata)spm_fnirs_viewer_stat('push_contrast_Callback',hObject,eventdata,guidata(hObject))
Error while evaluating UIControl Callback
----
Any ideas?  Any help would be much appreciated. 

With best wishes, 

Liat
May 2, 2016  02:05 PM | Liat Levita
RE: Error- Results
Thank You Sungho.

After emailing you the the file requested,  I tried to run again on a different computers, and have now had success a computer running matlab2014b, and all seemed to work for the Results step (which is great, but still don't understand what was the issue before). 

However, I now get an error at the last stage - computation of individual contrast images

When I try the computation of 2D contrast images- i get the following error.

>> spm_fnirs_con2d
Error using load
Unable to read file '/Applications/sample_fnirs/stroop/meas/HbO/eeg_128sens.mat'. No such file
or directory.

Error in spm_fnirs_2dtopo (line 42)
load(fullfile(cd, 'eeg_128sens.mat'));
Error in spm_fnirs_con2d (line 18)
[N, interpY] = spm_fnirs_2dtopo(S, fname_c);

Doesn't much make sense (its calling an eeg_128sens.mat file)

When I try  computation of the 3D contrast I get the following error

>> spm_fnirs_con3d
Undefined function 'vert_mindist' for input arguments of type 'single'.

Error in spm_fnirs_roivert (line 29)
[xyz, vert] = vert_mindist(xyz_ch(i,:), Mh.vertices, r);
Error in spm_fnirs_con3d (line 24)
vinterp = spm_fnirs_roivert(pos, r);

This I assume is a matlab version issue?

Your help will be much appreciated. Once I get this, the road will be open to do group analysis on SPM with our own data, which will be fantastic. 

Thank you for your help in advance. 

Regards, 

Liat
May 5, 2016  07:05 AM | harleen chhabra - National Institute of Mental Health and Neurosciences (NIMHANS)
RE: Error- Results
Dr Sungho,

As stated by Liat, I am also facing the same problem with group level analysis.
It would be of great help if you can guide us.

Thanking you,
Harleen Chhabra
May 5, 2016  10:05 AM | Sungho Tak - Wellcome Trust Centre for Neuroimaging, UCL
RE: Error- Results
Dear Liat, 

I am sorry that there were bugs in the codes:
spm_fnirs_2dtopo.m and spm_fnirs_con3d.m - incorrect directories were chosen to read *.mat files. 
spm_fnirs_roivert.m - incorrect function was called. 

The problems were fixed. Please download the attached files, and replace files in a directory of '/spm_fnirs/gen_conimg' with new files. 

Best wishes, 

Sungho

Originally posted by Liat Levita:
Thank You Sungho.

After emailing you the the file requested,  I tried to run again on a different computers, and have now had success a computer running matlab2014b, and all seemed to work for the Results step (which is great, but still don't understand what was the issue before). 

However, I now get an error at the last stage - computation of individual contrast images

When I try the computation of 2D contrast images- i get the following error.

>> spm_fnirs_con2d
Error using load
Unable to read file '/Applications/sample_fnirs/stroop/meas/HbO/eeg_128sens.mat'. No such file
or directory.

Error in spm_fnirs_2dtopo (line 42)
load(fullfile(cd, 'eeg_128sens.mat'));
Error in spm_fnirs_con2d (line 18)
[N, interpY] = spm_fnirs_2dtopo(S, fname_c);

Doesn't much make sense (its calling an eeg_128sens.mat file)

When I try  computation of the 3D contrast I get the following error

>> spm_fnirs_con3d
Undefined function 'vert_mindist' for input arguments of type 'single'.

Error in spm_fnirs_roivert (line 29)
[xyz, vert] = vert_mindist(xyz_ch(i,:), Mh.vertices, r);
Error in spm_fnirs_con3d (line 24)
vinterp = spm_fnirs_roivert(pos, r);

This I assume is a matlab version issue?

Your help will be much appreciated. Once I get this, the road will be open to do group analysis on SPM with our own data, which will be fantastic. 

Thank you for your help in advance. 

Regards, 

Liat
May 5, 2016  10:05 AM | Sungho Tak - Wellcome Trust Centre for Neuroimaging, UCL
RE: Error- Results
Dear Harleen, 

Please see my reply to Liat's post. 

Best wishes, 

Sungho 
Originally posted by harleen chhabra:
Dr Sungho,

As stated by Liat, I am also facing the same problem with group level analysis.
It would be of great help if you can guide us.

Thanking you,
Harleen Chhabra
May 5, 2016  12:05 PM | harleen chhabra - National Institute of Mental Health and Neurosciences (NIMHANS)
RE: Error- Results
Dear Dr. Sungho,

Thankyou for such a prompt reply.
But even after using the new codes you have sent the same errors persists.
Matlab version is 2014b. I am attaching one subject data for your reference for whom data is processed till level one.

Sincerely,
Harleen
Attachment: 2016-03-22_003.rar
May 5, 2016  01:05 PM | Sungho Tak - Wellcome Trust Centre for Neuroimaging, UCL
RE: Error- Results
Dear Harleen, 

I think you might have saved new files (related to group analysis) in a directory of 'spm_fnirs'. 

Please replace files in a directory of '/spm_fnirs/gen_conimg' with new files. 

Best wishes, 

Sungho 

Originally posted by harleen chhabra:
Dear Dr. Sungho,

Thankyou for such a prompt reply.
But even after using the new codes you have sent the same errors persists.
Matlab version is 2014b. I am attaching one subject data for your reference for whom data is processed till level one.

Sincerely,
Harleen
May 6, 2016  12:05 PM | Liat Levita
RE: Error- Results
So many thanks! It works.

With best wishes,

Liat

PS. as you said in previous post this update needs to be placed in the gen_conimg folder
Aug 19, 2017  01:08 PM | Wenhai Zhang
RE: Error- Results
Dear Harleen,
 Although I replaced the spm_fnirs_spm_interp with the update you uploaded before, I stiil meet a problem when I ran the last step (Results button) with the sample data (Stroop) as follows. My matlab version is R2013a. Can you help me ? Thank you very much.
 
Wenhai Zhang
   Statistical Parametric Mapping for Functional Near-Infrared Spectroscopy.
---------------------------------------------------------
Interpolate GLM parameters over brain surfaces...
---------------------------------------------------------
Load channel-wise parameters...
Reference to non-existent field 'Vres'.
Error in spm_fnirs_spm_interp (line 49)
load(SPM.Vres);
Error in spm_fnirs_results_ui (line 31)
    [SPM] = spm_fnirs_spm_interp(SPM);
Error in spm_fnirs>push_results_Callback (line 88)
spm_fnirs_results_ui;
Error in gui_mainfcn (line 96)
        feval(varargin{:});
Error in spm_fnirs (line 25)
    gui_mainfcn(gui_State, varargin{:});
Error in
@(hObject,eventdata)spm_fnirs('push_results_Callback',hObject,eventdata,guidata(hObject))
 
Error while evaluating uicontrol Callback
Aug 19, 2017  01:08 PM | Wenhai Zhang
RE: Error- Results
Originally posted by Wenhai Zhang:
Dear Sungho,
 Although I replaced the spm_fnirs_spm_interp with the update you uploaded before, I stiil meet a problem when I ran the last step (Results button) with the sample data (Stroop) as follows. My matlab version is R2013a. Can you help me ? Thank you very much.
 
Wenhai Zhang
   Statistical Parametric Mapping for Functional Near-Infrared Spectroscopy.
---------------------------------------------------------
Interpolate GLM parameters over brain surfaces...
---------------------------------------------------------
Load channel-wise parameters...
Reference to non-existent field 'Vres'.
Error in spm_fnirs_spm_interp (line 49)
load(SPM.Vres);
Error in spm_fnirs_results_ui (line 31)
    [SPM] = spm_fnirs_spm_interp(SPM);
Error in spm_fnirs>push_results_Callback (line 88)
spm_fnirs_results_ui;
Error in gui_mainfcn (line 96)
        feval(varargin{:});
Error in spm_fnirs (line 25)
    gui_mainfcn(gui_State, varargin{:});
Error in
@(hObject,eventdata)spm_fnirs('push_results_Callback',hObject,eventdata,guidata(hObject))
 
Error while evaluating uicontrol Callback
Aug 19, 2017  03:08 PM | Sungho Tak - Wellcome Trust Centre for Neuroimaging, UCL
RE: Error- Results
Dear Wenhai, 

Could you please confirm if you have been using the codes: spm_fnirs.zip and code_updates_r3.zip (https://www.nitrc.org/frs/shownotes.php?...) in your analysis?

I would appreciate it if you could analyse the sample data again, using the latest version of SPM for fNIRS toolbox. 

If the same error occurs, please upload the files (NIRS.mat and SPM.mat). 

Best wishes, 

Sungho 

Originally posted by Wenhai Zhang:
Originally posted by Wenhai Zhang:
Dear Sungho,
 Although I replaced the spm_fnirs_spm_interp with the update you uploaded before, I stiil meet a problem when I ran the last step (Results button) with the sample data (Stroop) as follows. My matlab version is R2013a. Can you help me ? Thank you very much.
 
Wenhai Zhang
   Statistical Parametric Mapping for Functional Near-Infrared Spectroscopy.
---------------------------------------------------------
Interpolate GLM parameters over brain surfaces...
---------------------------------------------------------
Load channel-wise parameters...
Reference to non-existent field 'Vres'.
Error in spm_fnirs_spm_interp (line 49)
load(SPM.Vres);
Error in spm_fnirs_results_ui (line 31)
    [SPM] = spm_fnirs_spm_interp(SPM);
Error in spm_fnirs>push_results_Callback (line 88)
spm_fnirs_results_ui;
Error in gui_mainfcn (line 96)
        feval(varargin{:});
Error in spm_fnirs (line 25)
    gui_mainfcn(gui_State, varargin{:});
Error in
@(hObject,eventdata)spm_fnirs('push_results_Callback',hObject,eventdata,guidata(hObject))
 
Error while evaluating uicontrol Callback
Aug 24, 2017  12:08 PM | Wenhai Zhang
RE: Error- Results
Dear Sungho,
    My student met a problem as follows when she performed result processing using sample data (Stroop). Her computer is MaC OS 64 bit. Matlab version is R2014b, Can you help us? Thank you very much!  
   Wenhai

Error using cd
Cannot CD to HbO (Name is nonexistent or not a directory).

Error in spm_fnirs_viewer_stat>push_contrast_Callback (line 136)
cd(SPM.swd);
Error in gui_mainfcn (line 95)
feval(varargin{:});
Error in spm_fnirs_viewer_stat (line 35)
gui_mainfcn(gui_State, varargin{:});
Error in
@(hObject,eventdata)spm_fnirs_viewer_stat('push_contrast_Callback',hObject,eventdata,guidata(hObject))
Aug 24, 2017  02:08 PM | Wenhai Zhang
RE: Error- Results
Dear Sungho,
    Thank you for your reply! Let me try
Wenhai