help
help > RE: Preprocessing failure, problem writing header
May 19, 2016 06:05 PM | Alfonso Nieto-Castanon - Boston University
RE: Preprocessing failure, problem writing header
Hi Jeremy,
Sorry for the long debugging, this is a really strange error. My best guess right now is that this may be caused by WFU Pickatlas overloading of the @file_array class used by SPM. Could you please try changing your Matlab path so that any SPM12 folder/subfolder is located above any WFUPickatlas folder/subfolder, and then trying preprocessing again? Also before running preprocessing please use the following command just to double-check that the correct @file_array class is being used:
which file_array
(if that points to anything other than ...../spm12/@file_array/file_array.m then try using "clear classes all", checking your path again, and issuing the above command again)
Best
Alfonso
Originally posted by Jeremy Hogeveen:
Sorry for the long debugging, this is a really strange error. My best guess right now is that this may be caused by WFU Pickatlas overloading of the @file_array class used by SPM. Could you please try changing your Matlab path so that any SPM12 folder/subfolder is located above any WFUPickatlas folder/subfolder, and then trying preprocessing again? Also before running preprocessing please use the following command just to double-check that the correct @file_array class is being used:
which file_array
(if that points to anything other than ...../spm12/@file_array/file_array.m then try using "clear classes all", checking your path again, and issuing the above command again)
Best
Alfonso
Originally posted by Jeremy Hogeveen:
Alright so now I have this in my command
window:
-------------
filename='C:\Users\cnl1796\Documents\Jeremy\tDCS_Patient_Study\Data\mri\Data\tDCS_TBI_01_01_A\SCANS\3\nii\cmrr_mb4_restingstateTE28.nii';
[fh,str]=fopen(filename,'r+','ieee-le');
disp(fh);
disp(str);
if fh>0, fclose(fh); end
3
filename='C:\Users\cnl1796\Documents\Jeremy\tDCS_Patient_Study\Data\mri\Data\tDCS_TBI_01_01_A\SCANS\3\nii\randomnewfilename.hdr';
[fh,str]=fopen(filename,'w+','ieee-le');
disp(fh);
disp(str);
if fh>0, fclose(fh); end
3
-------------
and a "randomnewfilename.hdr" file in the folder
-------------
filename='C:\Users\cnl1796\Documents\Jeremy\tDCS_Patient_Study\Data\mri\Data\tDCS_TBI_01_01_A\SCANS\3\nii\cmrr_mb4_restingstateTE28.nii';
[fh,str]=fopen(filename,'r+','ieee-le');
disp(fh);
disp(str);
if fh>0, fclose(fh); end
3
filename='C:\Users\cnl1796\Documents\Jeremy\tDCS_Patient_Study\Data\mri\Data\tDCS_TBI_01_01_A\SCANS\3\nii\randomnewfilename.hdr';
[fh,str]=fopen(filename,'w+','ieee-le');
disp(fh);
disp(str);
if fh>0, fclose(fh); end
3
-------------
and a "randomnewfilename.hdr" file in the folder
Threaded View
Title | Author | Date |
---|---|---|
Jeremy Hogeveen | May 12, 2016 | |
Or Duek | Jan 24, 2019 | |
Or Duek | Jan 23, 2019 | |
Alfonso Nieto-Castanon | May 13, 2016 | |
Jeremy Hogeveen | May 13, 2016 | |
Alfonso Nieto-Castanon | May 17, 2016 | |
Jeremy Hogeveen | May 19, 2016 | |
Alfonso Nieto-Castanon | May 19, 2016 | |
Jeremy Hogeveen | May 19, 2016 | |
Alfonso Nieto-Castanon | May 19, 2016 | |
Jeremy Hogeveen | May 19, 2016 | |
Alfonso Nieto-Castanon | May 20, 2016 | |
Jeremy Hogeveen | Jun 7, 2016 | |