help > Error while uploading ROIs in setup
Showing 1-2 of 2 posts
Display:
Results per page:
May 23, 2017  05:05 AM | Kulpreet Cheema - University of Alberta
Error while uploading ROIs in setup
Hello everyone,

I created ROIs using the Mango program and added 8 ROIs in the setup for all subjects, I wish to add two more but I am getting the following error when I am uploading them. Is there a limit to how many ROIs can be added or is there something wrong with the ROIs themselves? I have attached one of the ROI nii files here too.

ERROR DESCRIPTION:

Error using read_hdr (line 52)
Unrecognised datatype (12053.000000) for "C:\Users\jclab\Desktop\spelling_study_2017\STG_roi.nii".
Error in nifti (line 26)
vol = read_hdr(fname);
Error in spm_vol_nifti (line 19)
N = nifti(P);
Error in spm_vol>spm_vol_hdr (line 128)
V = spm_vol_nifti(p,n);
Error in spm_vol (line 61)
v = spm_vol_hdr(deblank(P(i,:)));
Error in conn_getinfo (line 18)
V=spm_vol(filename);
Error in conn_file (line 3)
[V,str,icon,filename]=conn_getinfo(filename);
Error in conn (line 1734)
V=conn_file(deblank(filename(n1,:)));
Error in conn_filesearchtool (line 86)
if length(h.callback)>1, feval(h.callback{1},h.callback{2:end},names); else, feval(h.callback{1},names); end

Thanks for your help!
Attachment: STG_roi.nii
May 24, 2017  03:05 AM | Alfonso Nieto-Castanon - Boston University
RE: Error while uploading ROIs in setup
Hi Kulpreet,

The attached STG_roi.nii file does not look like a valid nifti file (it does not seem to have the expected size nor any of the default headers fields expected in a validly-formatted nifti volume). Could you please elaborate on how this file was constructed?

Best
Alfonso
Originally posted by Kulpreet Cheema:
Hello everyone,

I created ROIs using the Mango program and added 8 ROIs in the setup for all subjects, I wish to add two more but I am getting the following error when I am uploading them. Is there a limit to how many ROIs can be added or is there something wrong with the ROIs themselves? I have attached one of the ROI nii files here too.

ERROR DESCRIPTION:

Error using read_hdr (line 52)
Unrecognised datatype (12053.000000) for "C:\Users\jclab\Desktop\spelling_study_2017\STG_roi.nii".
Error in nifti (line 26)
vol = read_hdr(fname);
Error in spm_vol_nifti (line 19)
N = nifti(P);
Error in spm_vol>spm_vol_hdr (line 128)
V = spm_vol_nifti(p,n);
Error in spm_vol (line 61)
v = spm_vol_hdr(deblank(P(i,:)));
Error in conn_getinfo (line 18)
V=spm_vol(filename);
Error in conn_file (line 3)
[V,str,icon,filename]=conn_getinfo(filename);
Error in conn (line 1734)
V=conn_file(deblank(filename(n1,:)));
Error in conn_filesearchtool (line 86)
if length(h.callback)>1, feval(h.callback{1},h.callback{2:end},names); else, feval(h.callback{1},names); end

Thanks for your help!