Hi, Dr. Yan,
While I used the DPABI_Utilities to extract values from the preprocessed images (gifti/nifti), an error as following occured. I tried to debug including: 1) change the version of dpabi; 2) runs on other computers; 3) change the other atlas; 4) re-set matlab path, however, the error still occured.
For nifti data:
IsMultipleLabel is set to 1: There are multiple labels in the ROI mask file.
Starting parallel pool (parpool) using the 'local' profile ...
connected to 8 workers.
Extracting ROI signals...
Reading images from "D:\Neuroimge\Test\ssub-HC001_space-fsaverage_hemi-L.thickness.gii" etc.
Load mask "".
Analyzing and transferring files to the workers ...done.
Extracting ROI signals...
Reading images from "D:\Neuroimge\Test\ssub-HC001_space-fsaverage_hemi-L.thickness.gii" etc.
Load mask "".
Error using y_ExtractROISignal_Surf (line 157)
An UndefinedFunction error was thrown on the workers for 'MaskROILabel'. This might be because the file containing 'MaskROILabel' is not accessible on
the workers. Use addAttachedFiles(pool, files) to specify the required files to be attached. See the documentation for
'parallel.Pool/addAttachedFiles' for more details.
Error in DPABI_ROISignalExtracter>ComputeButton_Callback (line 210)
parfor i=1:numel(ImgCells) %YAN Chao-Gan, 190105. Here don't need parfor. parfor i=1:numel(ImgCells)
Error in gui_mainfcn (line 95)
feval(varargin{:});
Error in DPABI_ROISignalExtracter (line 42)
gui_mainfcn(gui_State, varargin{:});
Error in
matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)DPABI_ROISignalExtracter('ComputeButton_Callback',hObject,eventdata,guidata(hObject))
Caused by:
Undefined function or variable 'MaskROILabel'.
Error while evaluating UIControl Callback.
For gifti data:
IsMultipleLabel is set to 1: There are multiple labels in the ROI mask file.
Starting parallel pool (parpool) using the 'local' profile ...
connected to 8 workers.
Extracting ROI signals...
Reading images from "D:\Neuroimge\Test\ssub-HC001_space-fsaverage_hemi-L.thickness.gii" etc.
Load mask "".
Analyzing and transferring files to the workers ...done.
Extracting ROI signals...
Reading images from "D:\Neuroimge\Test\ssub-HC001_space-fsaverage_hemi-L.thickness.gii" etc.
Load mask "".
Error using y_ExtractROISignal_Surf (line 157)
An UndefinedFunction error was thrown on the workers for 'MaskROILabel'. This might be because the file containing 'MaskROILabel' is not accessible on
the workers. Use addAttachedFiles(pool, files) to specify the required files to be attached. See the documentation for
'parallel.Pool/addAttachedFiles' for more details.
Error in DPABI_ROISignalExtracter>ComputeButton_Callback (line 210)
parfor i=1:numel(ImgCells) %YAN Chao-Gan, 190105. Here don't need parfor. parfor i=1:numel(ImgCells)
Error in gui_mainfcn (line 95)
feval(varargin{:});
Error in DPABI_ROISignalExtracter (line 42)
gui_mainfcn(gui_State, varargin{:});
Error in
matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)DPABI_ROISignalExtracter('ComputeButton_Callback',hObject,eventdata,guidata(hObject))
Caused by:
Undefined function or variable 'MaskROILabel'.
Error while evaluating UIControl Callback.
Forums
Predefined Types
How did you define your ROI
How did you define your ROI mask files? Should be something wrong there.
The ROI files I defined are
The ROI files I defined are from the folder "DPABI\Template".
I found that if I using DPABI_Utilities-ROI Signal Extractor to extract the signal (or time-series) of 4D nifti data with a time dimension (e.g., data in the folder FunVoluWCF), the results we expected can be successfully produced without reporting any error. However, if I extract the 3D nifti data (e.g., ReHo data in the folder ReHo_FunVoluWCF), the results can not be successfully produced, which report the error just as we presented above. But using the same 3D nifti data and same atlas, the results can be successfully produced in RESTPlus.
Since my goal is to extract the ROIs signal from surface files (e.g., AnatSurfLH\Thickness), we have also tested the DPABISurf_Utilities-ROI Signal Extractor. There is a similar situation that we can successfully extract time-series from the surface file with a time dimension (e.g., data in folder FunSurfWCF), while we cannot fully successfully extract the signal from other surface files (e.g., the file in FunSurLH\ReHo_FunSurfWCF).
Anyway, if we extract ROI signal, for example, for ReHo data either in nifti format or in gifti format using ROI Signal Extractor, the results can be partially produced (i.e., the generated file contains some ROI signals) but cannot be fully successfully produced.
I hope the further information I provide will be useful and looking forward to your reply.
You can try the developing
You can try the developing version at github: https://github.com/Chaogan-Yan/DPABI
Many thanks for your help,
Many thanks for your help, the bug has sucessfully been fixed.