help > Incompatible .node and .nii files?
Showing 1-2 of 2 posts
Display:
Results per page:
Feb 9, 2022  10:02 PM | johnck - Wayne State University
Incompatible .node and .nii files?
Hello,

I would like to visualize a set of nodes and the volume they were chosen from simultaneously.
Separately, there is no issue. I can visualize the .node file onto the surface, or the .nii file onto the surface without error.
I've attached my .node file, included the output of fslhd, as well as listed the matlab error below:

fslhd outputs:

sizeof_hdr 348
data_type FLOAT32
dim0 3
dim1 105
dim2 127
dim3 105
dim4 1
dim5 1
dim6 1
dim7 1
vox_units mm
time_units s
datatype 16
nbyper 4
bitpix 32
pixdim0 -1.000000
pixdim1 1.500000
pixdim2 1.500000
pixdim3 1.500000
pixdim4 0.000000
pixdim5 0.000000
pixdim6 0.000000
pixdim7 0.000000
vox_offset 352
cal_max 0.000000
cal_min 0.000000
scl_slope 1.000000
scl_inter 0.000000
phase_dim 0
freq_dim 0
slice_dim 0
slice_name Unknown
slice_code 0
slice_start 0
slice_end 0
slice_duration 0.000000
toffset 0.000000
intent Unknown
intent_code 0
intent_name
intent_p1 0.000000
intent_p2 0.000000
intent_p3 0.000000
qform_name Aligned Anat
qform_code 2
qto_xyz:1 -1.500000 0.000000 -0.000000 78.000000
qto_xyz:2 0.000000 1.500000 -0.000000 -112.000000
qto_xyz:3 0.000000 0.000000 1.500000 -70.000000
qto_xyz:4 0.000000 0.000000 0.000000 1.000000
qform_xorient Right-to-Left
qform_yorient Posterior-to-Anterior
qform_zorient Inferior-to-Superior
sform_name Aligned Anat
sform_code 2
sto_xyz:1 -1.500000 0.000000 0.000000 78.000000
sto_xyz:2 0.000000 1.500000 0.000000 -112.000000
sto_xyz:3 0.000000 0.000000 1.500000 -70.000000
sto_xyz:4 0.000000 0.000000 0.000000 1.000000
sform_xorient Right-to-Left
sform_yorient Posterior-to-Anterior
sform_zorient Inferior-to-Superior
file_type NIFTI-1+
file_code 1
descrip SPM{T}-filtered: u = 1.652, k = 0
aux_file

MATLAB error:

Reference to non-existent field 'test'.

Error in BrainNet_Option>Initialization (line 807)
if ~strcmp(surf.test,'No')
Error in BrainNet_Option>BrainNet_Option_OpeningFcn (line 79)
Initialization(handles);
Error in gui_mainfcn (line 220)
feval(gui_State.gui_OpeningFcn, gui_hFigure, [], guidata(gui_hFigure), varargin{:});
Error in BrainNet_Option (line 52)
[varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});
Error in BrainNet>LoadFile_ClickedCallback (line 4687)
H=BrainNet_Option;
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('LoadFile_ClickedCallback',hObject,eventdata,guidata(hObject))
Error while evaluating PushTool ClickedCallback.


Thanks for any help!
Attachment: conjunction.node
Jun 5, 2022  07:06 AM | Mingrui Xia
RE: Incompatible .node and .nii files?
Hi,

The node file looks good. Would you please provide more details about when this error occurred? A detailed operations with BNV.

Originally posted by johnck:
Hello,

I would like to visualize a set of nodes and the volume they were chosen from simultaneously.
Separately, there is no issue. I can visualize the .node file onto the surface, or the .nii file onto the surface without error.
I've attached my .node file, included the output of fslhd, as well as listed the matlab error below:

fslhd outputs:

sizeof_hdr 348
data_type FLOAT32
dim0 3
dim1 105
dim2 127
dim3 105
dim4 1
dim5 1
dim6 1
dim7 1
vox_units mm
time_units s
datatype 16
nbyper 4
bitpix 32
pixdim0 -1.000000
pixdim1 1.500000
pixdim2 1.500000
pixdim3 1.500000
pixdim4 0.000000
pixdim5 0.000000
pixdim6 0.000000
pixdim7 0.000000
vox_offset 352
cal_max 0.000000
cal_min 0.000000
scl_slope 1.000000
scl_inter 0.000000
phase_dim 0
freq_dim 0
slice_dim 0
slice_name Unknown
slice_code 0
slice_start 0
slice_end 0
slice_duration 0.000000
toffset 0.000000
intent Unknown
intent_code 0
intent_name
intent_p1 0.000000
intent_p2 0.000000
intent_p3 0.000000
qform_name Aligned Anat
qform_code 2
qto_xyz:1 -1.500000 0.000000 -0.000000 78.000000
qto_xyz:2 0.000000 1.500000 -0.000000 -112.000000
qto_xyz:3 0.000000 0.000000 1.500000 -70.000000
qto_xyz:4 0.000000 0.000000 0.000000 1.000000
qform_xorient Right-to-Left
qform_yorient Posterior-to-Anterior
qform_zorient Inferior-to-Superior
sform_name Aligned Anat
sform_code 2
sto_xyz:1 -1.500000 0.000000 0.000000 78.000000
sto_xyz:2 0.000000 1.500000 0.000000 -112.000000
sto_xyz:3 0.000000 0.000000 1.500000 -70.000000
sto_xyz:4 0.000000 0.000000 0.000000 1.000000
sform_xorient Right-to-Left
sform_yorient Posterior-to-Anterior
sform_zorient Inferior-to-Superior
file_type NIFTI-1+
file_code 1
descrip SPM{T}-filtered: u = 1.652, k = 0
aux_file

MATLAB error:

Reference to non-existent field 'test'.

Error in BrainNet_Option>Initialization (line 807)
if ~strcmp(surf.test,'No')
Error in BrainNet_Option>BrainNet_Option_OpeningFcn (line 79)
Initialization(handles);
Error in gui_mainfcn (line 220)
feval(gui_State.gui_OpeningFcn, gui_hFigure, [], guidata(gui_hFigure), varargin{:});
Error in BrainNet_Option (line 52)
[varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});
Error in BrainNet>LoadFile_ClickedCallback (line 4687)
H=BrainNet_Option;
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('LoadFile_ClickedCallback',hObject,eventdata,guidata(hObject))
Error while evaluating PushTool ClickedCallback.


Thanks for any help!