help > Error rendering Nodes and Edges
Showing 1-2 of 2 posts
Jan 25, 2023 06:01 PM | boergertf
Error rendering Nodes and Edges
To whom it may concern,
I'm having some issues generating nodes and edges for a correlation matrix 453*453. Is there an upper limit of how many nodes can be displayed in BNV?
This was created by taking the 400 nodes from the Schaeffer 17 Network Cortical atlas and appending 53 nodes containing the cerebellum,
Notably, when I've tried to render just the nodes, it doesn't display the cerebellum nodes. Yet, when I put the cerebellar nodes into their own *.node file, they render fine.
Also, when rendering the nodes and adjacency matrix, several of the nodes and edges *sort of* render, and then I get the error.
Node file attached, but I'd be glad to upload the *.edge file as well or demos of the failed renderings.
Error in Matlab Command Window:
Index in position 1 exceeds array bounds (must not exceed 406).
Error in BrainNet>DrawLine (line 3388)
length_cyl=norm(sphere(surf.cylinder(i,2),1:3)-sphere(surf.cylinder(i,1),1:3))-sphere(surf.cylinder(i,2),7)-sphere(surf.cylinder(i,1),7);
Error in BrainNet>PlotLine1 (line 3021)
DrawLine(surf,j,1,1);
Error in BrainNet>FileView (line 3824)
PlotLine1(surf);
Error in BrainNet>NV_m_LF_Callback (line 4793)
a=FileView;
Error in gui_mainfcn (line 95)
feval(varargin{:});
Error in BrainNet (line 53)
gui_mainfcn(gui_State, varargin{:});
Error in matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)BrainNet('NV_m_LF_Callback',hObject,eventdata,guidata(hObject))
Error while evaluating Menu Callback.
Reference to non-existent field 'cylinder'.
Error in BrainNet>PlotNode1 (line 2045)
if ~isempty(find(surf.cylinder(:,1:2)==j, 1))
Error in BrainNet>FileView (line 3804)
a=PlotNode1(surf,a,2,EC);
Error in BrainNet>NV_m_LF_Callback (line 4793)
a=FileView;
Error in gui_mainfcn (line 95)
feval(varargin{:});
Error in BrainNet (line 53)
gui_mainfcn(gui_State, varargin{:});
Error in matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)BrainNet('NV_m_LF_Callback',hObject,eventdata,guidata(hObject))
Error while evaluating Menu Callback.
I'm having some issues generating nodes and edges for a correlation matrix 453*453. Is there an upper limit of how many nodes can be displayed in BNV?
This was created by taking the 400 nodes from the Schaeffer 17 Network Cortical atlas and appending 53 nodes containing the cerebellum,
Notably, when I've tried to render just the nodes, it doesn't display the cerebellum nodes. Yet, when I put the cerebellar nodes into their own *.node file, they render fine.
Also, when rendering the nodes and adjacency matrix, several of the nodes and edges *sort of* render, and then I get the error.
Node file attached, but I'd be glad to upload the *.edge file as well or demos of the failed renderings.
Error in Matlab Command Window:
Index in position 1 exceeds array bounds (must not exceed 406).
Error in BrainNet>DrawLine (line 3388)
length_cyl=norm(sphere(surf.cylinder(i,2),1:3)-sphere(surf.cylinder(i,1),1:3))-sphere(surf.cylinder(i,2),7)-sphere(surf.cylinder(i,1),7);
Error in BrainNet>PlotLine1 (line 3021)
DrawLine(surf,j,1,1);
Error in BrainNet>FileView (line 3824)
PlotLine1(surf);
Error in BrainNet>NV_m_LF_Callback (line 4793)
a=FileView;
Error in gui_mainfcn (line 95)
feval(varargin{:});
Error in BrainNet (line 53)
gui_mainfcn(gui_State, varargin{:});
Error in matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)BrainNet('NV_m_LF_Callback',hObject,eventdata,guidata(hObject))
Error while evaluating Menu Callback.
Reference to non-existent field 'cylinder'.
Error in BrainNet>PlotNode1 (line 2045)
if ~isempty(find(surf.cylinder(:,1:2)==j, 1))
Error in BrainNet>FileView (line 3804)
a=PlotNode1(surf,a,2,EC);
Error in BrainNet>NV_m_LF_Callback (line 4793)
a=FileView;
Error in gui_mainfcn (line 95)
feval(varargin{:});
Error in BrainNet (line 53)
gui_mainfcn(gui_State, varargin{:});
Error in matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)BrainNet('NV_m_LF_Callback',hObject,eventdata,guidata(hObject))
Error while evaluating Menu Callback.
Apr 14, 2023 03:04 AM | boergertf
RE: Error rendering Nodes and Edges
Hello,
I'm still interested in rendering figures using >400 nodes. If anyone has dealt with similar issues and has a solution, I would live to hear it.
I'm still interested in rendering figures using >400 nodes. If anyone has dealt with similar issues and has a solution, I would live to hear it.