help > RE: Error while merging jobs with project?
Nov 20, 2020  06:11 PM | Alfonso Nieto-Castanon - Boston University
RE: Error while merging jobs with project?
Hi Lilys,

It looks like the file "/work/bav1126/conn_project02/results/firstlevel/SBC_01/_list_sources.0018201119132320200.mat" may be corrupted for some reason. Could you try loading that file in Matlab to see if that works correctly? (e.g. simply typing "load /work/bav1126/conn_project02/results/firstlevel/SBC_01/_list_sources.0018201119132320200.mat" in Matlab's command-line). If it does not work, I would suggest deleting that file, and then running the following lines to re-create it:

   filename = '/work/bav1126/conn_project02/results/firstlevel/SBC_01/_list_sources.0018201119132320200.mat';
   str = fileread(conn_prepend('',filename,'.txt'));
   sourcenames = regexp(str,'Source\d+ = ([^\n]*)','tokens');
   sourcenames = [sourcenames{:}];
   save(filename, 'sourcenames');

Hope this helps
Alfonso
Originally posted by lilys:
Good evening,
I used this wonderful Toolbox to preprocess and analyze my resting state data. I chose the option "distributed processing - run on Slurm computer cluster", which is why I had to merge the finished jobs into the CONN project.
I ran a first-level analysis and the job finished correctly. However, every time I'm trying to merge the jobs into my CONN project, I get this error message:
Error using load
Unable to read MAT-file /work/bav1126/conn_project02/results/firstlevel/SBC_01/_list_sources.0018201119132320200.mat. Not a binary MAT-file. Try load -ASCII to read as text.
Error in conn_updatefolders (line 417)
load(filesourcenames,'sourcenames');
Error in conn_merge (line 46)
other{1+n1}.CONN_x=conn_updatefolders(other{1+n1}.CONN_x);
Error in conn_projectmanager (line 125)
conn_merge(allfiles);
Error in conn (line 850)
conn_projectmanager('updateproject',fromgui);
Error in conn_jobmanager (line 357)
conn('load',filename);
Error in conn (line 1093)
conn_jobmanager;
Error in conn_menumanager (line 120)
feval(CONN_MM.MENU{n0}.callback{n1}{1},CONN_MM.MENU{n0}.callback{n1}{2:end});
CONN19.c
SPM12 + DAiSS DEM FieldMap MEEGtools
Matlab v.2019b
project: CONN19.c
storage: 192763.7Gb available

spm @ /work/bav1126/software/spm12
conn @ /work/bav1126/software/conn19c/conn
saved /work/bav1126/conn_project02.mat

What can I do to fix this? I'm a bit lost here and I'd love some advice!
Many thanks,
lilys

Threaded View

TitleAuthorDate
lilys Nov 19, 2020
RE: Error while merging jobs with project?
Alfonso Nieto-Castanon Nov 20, 2020