diff --git a/massfuncs/readalltxt.m b/massfuncs/readalltxt.m index ad57f86..d141930 100644 --- a/massfuncs/readalltxt.m +++ b/massfuncs/readalltxt.m @@ -53,7 +53,13 @@ for i2 = 2:Markers.nsegs(cidx) idx_count = idx_count + 1; x = [Markers.all{cidx},'_',num2str(i2)]; - [v3{idx_count},units3] = readtxt(filename,x, wd, layers); %#ok + try + [v3{idx_count},units3] = readtxt(filename,x, wd, layers); %#ok + catch + e_code = 19; + return + end + if ~strcmp(units3, units(cidx)) e_code = 16; return diff --git a/shared/err_handl_tables.m b/shared/err_handl_tables.m index b509470..3156264 100644 --- a/shared/err_handl_tables.m +++ b/shared/err_handl_tables.m @@ -100,6 +100,9 @@ 'Make sure all cell seg data files are concurrent with '... 'binary seg maps of their segmentation heirarchy.']; e_code = 1; + case 19 + err_str = ['ERROR: Cell segmentation file missing']; + e_code = 1; end % %disp([sname, ';',err_str])