help > read_hdr error
Feb 4, 2019  03:02 PM | Petr Adámek
read_hdr error
Dear Conn expert,

in preprocessing part of our data analysis i have these error. 

ERROR DESCRIPTION:

Error using read_hdr (line 32)
Error reading header file
"/hydradb/hydra_io/vypocty/ADAMEK/ART_DMN_conn/Source/cARTDM_C01490_20171002_1541_1/
0019_t1_sag_mpr_3D_CONNECTOM/20171002_154109t1sagmpr3DCONNECTOMs019a1001.nii".

Error in nifti (line 26)
vol = read_hdr(fname);
Error in spm_get_space (line 18)
N = nifti(P);
Error in conn_setup_preproc (line 2145)
spm_get_space(temp,M);
Error in conn (line 894)
ok=conn_setup_preproc('',varargin{2:end});
Error in conn_menumanager (line 120)
feval(CONN_MM.MENU{n0}.callback{n1}{1},CONN_MM.MENU{n0}.callback{n1}{2:end});
CONN v.17.f
SPM12 + DEM FieldMap MEEGtools
Matlab v.2015b
storage: 5107.9Gb available
spm @ /home/adamek/matlab/spm12
conn @ /home/adamek/matlab/conn_17f

i found older forum thread https://www.nitrc.org/forum/forum.php?th... but the solution not work. I try to change conn version from 17f to 18b, and the error is still the same. The main part of all these problem is in the data file path. Conn add "c" prefix to the name of folder not to the file. 

conn try to found file in these path with non existe folder with "c" prefix (red c in path):
"/hydradb/hydra_io/vypocty/ADAMEK/ART_DMN_conn/Source/cARTDM_C01490_20171002_1541_1/
0019_t1_sag_mpr_3D_CONNECTOM/20171002_154109t1sagmpr3DCONNECTOMs019a1001.nii".

but the right path for these file is:
"/hydradb/hydra_io/vypocty/ADAMEK/ART_DMN_conn/Source/ARTDM_C01490_20171002_1541_1/
0019_t1_sag_mpr_3D_CONNECTOM/20171002_154109t1sagmpr3DCONNECTOMs019a1001.nii".

without c prefix. 

im not able to found right solution. 

Thank you Petr

Threaded View

TitleAuthorDate
read_hdr error
Petr Adámek Feb 4, 2019
Petr Adámek Feb 5, 2019