From c4ec74dfba383e02123d15fd47dd876db295cfa8 Mon Sep 17 00:00:00 2001 From: asterakin Date: Thu, 21 Jul 2016 11:37:46 -0700 Subject: [PATCH] consensus selection of cell file names correction --- Internal/getCellFiles.m | 4 +++- viz/makeConsensusArray.m | 2 +- viz/superSeggerViewerGui.m | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Internal/getCellFiles.m b/Internal/getCellFiles.m index a184d14..c78ee12 100644 --- a/Internal/getCellFiles.m +++ b/Internal/getCellFiles.m @@ -40,7 +40,9 @@ cellNames = {contents.name}'; rightCells=regexpi(cellNames,'[cC]ell\d+.mat','once'); -rightCellNames = cellNames(cell2mat(rightCells)); +ids = find(cell2mat(rightCells)); + +rightCellNames = {cellNames{ids}}; if numel(rightCellNames) == 0 error('No cell files found') diff --git a/viz/makeConsensusArray.m b/viz/makeConsensusArray.m index 1a6b85f..b9a1cad 100644 --- a/viz/makeConsensusArray.m +++ b/viz/makeConsensusArray.m @@ -90,7 +90,7 @@ end % Get the number of cells in the cell directory -cellNames = getCellFiles (cellDir,CONST) +cellNames = getCellFiles (cellDir,CONST); numCells = numel(cellNames); diff --git a/viz/superSeggerViewerGui.m b/viz/superSeggerViewerGui.m index 4ada1aa..462a77c 100644 --- a/viz/superSeggerViewerGui.m +++ b/viz/superSeggerViewerGui.m @@ -1439,7 +1439,7 @@ function makeFieldMovie(handles) [data_r, data_c, data_f] = intLoadDataViewer( handles.dirname_seg, ... handles.contents, ii, handles.num_im, handles.clist, handles.FLAGS); showSeggerImage( data_c, data_r, data_f, handles.FLAGS, handles.clist, handles.CONST, handles.axes1); - drawnow; + drawnow; mov(counter) = getframe; counter = counter + 1; handles.message.String = ['Frame number: ', num2str(ii)];