Error loading Brain Regions File

Submitted by ERC on

I'm trying to use a 24 node network, and I'm having trouble getting my brain regions file to load.  When I try to use anything except the default AAL 119 regions, I get an error (which I've copied below).  I also attached the file that I'm trying to load in.

I tried several different varieties of this file.  For example, I replaced the . in the brain region names with an _ and got a slightly different error (see error version 2 below).  I also tried simply taking the AAL regions and deleting rows, which returned the same error.  I also tried keeping the whole length of the AAL but just replacing the labels with the labels that I want to use, but that also didn't work. 

Unfortunately, the manual isn't much help here ("As GraphVar is not limited to a specific number of nodes you can define your own brain parcellation scheme. When doing so by creating your own BrainRegions file, it is important to keep in line with the structure of the original sheets as GraphVar will refer to it (also refer to the “ROI_template” folder)"), because it doesn't make clear what the original sheets are and what the structure means or what it's trying to match or refer to.

I was able to load in the File with Variables just fine.

Thanks for your help.

----------------1st version of error-----------------------------

Error using cat
Dimensions of matrices being concatenated are not consistent.

Error in cell2mat (line 84)
            m{n} = cat(1,c{:,n});

Error in GraphVar_loadBrainRegions (line 20)
BrainCriteria = cell2mat(BrainMap(:,1));

Error in GraphVar>BrainSelect_Callback (line 228)
    [handles.BrainMap,handles.brain] = GraphVar_loadBrainRegions(hObject, eventdata,
    handles,Brain_Atlas);

Error in gui_mainfcn (line 96)
        feval(varargin{:});

Error in GraphVar (line 40)
    gui_mainfcn(gui_State, varargin{:});

Error in @(hObject,eventdata)GraphVar('BrainSelect_Callback',hObject,eventdata,guidata(hObject))

 
Error while evaluating uicontrol Callback

 

--------------2nd version of error---------------

Error using cell2mat (line 46)
All contents of the input cell array must be of the same data type.

Error in GraphVar_loadBrainRegions (line 20)
BrainCriteria = cell2mat(BrainMap(:,1));

Error in GraphVar>BrainSelect_Callback (line 228)
    [handles.BrainMap,handles.brain] = GraphVar_loadBrainRegions(hObject, eventdata,
    handles,Brain_Atlas);

Error in gui_mainfcn (line 96)
        feval(varargin{:});

Error in GraphVar (line 40)
    gui_mainfcn(gui_State, varargin{:});

Error in @(hObject,eventdata)GraphVar('BrainSelect_Callback',hObject,eventdata,guidata(hObject))

 
Error while evaluating uicontrol Callback

 

 

Attachment Size
My Brain Regions File 23 KB
Forums