clairelbromley / ZebrafishKymographing

Various software tools written for analysis of lumen opening and membrane retraction in zebrafish.
1 stars 0 forks source link

Inclusion data import prevents data that has not been QC'd previously from being opened #67

Closed clairelbromley closed 7 years ago

clairelbromley commented 7 years ago

Date = 280716, Embryo = 4b, Cut = 1 MException with properties:

identifier: 'MATLAB:catenate:structFieldBad'
   message: 'Number of fields in structure arrays being concatenated do not match. Concatenation of structure arrays requires that ...'
     cause: {0x1 cell}
     stack: [6x1 struct]

genericInclude 1737

listData_Callback 509

figure1_WindowKeyPressFcn 1958

gui_mainfcn 95

viewerMain 42

@(hObject,eventdata)viewerMain('figure1_WindowKeyPressFcn',hObject,eventdata,guidata(hObject)) 0

Attempted to access axHandles(6); index out of bounds because numel(axHandles)=2.

Error in viewerMain>listData_Callback (line 533) imagesc(zeros(5),'Parent',axHandles(ind));

Error in viewerMain>figure1_WindowKeyPressFcn (line 1958) listData_Callback(handles.listData, eventdata, handles)

Error in gui_mainfcn (line 95) feval(varargin{:});

Error in viewerMain (line 42) gui_mainfcn(gui_State, varargin{:});

Error in @(hObject,eventdata)viewerMain('figure1_WindowKeyPressFcn',hObject,eventdata,guidata(hObject))

Error while evaluating figure WindowKeyPressFcn

screen shot 2017-01-03 at 10 28 32

clairelbromley commented 7 years ago

I don't understand what is causing this issue

clairelbromley commented 7 years ago

Date = 280716, Embryo = 5, Cut = 1 MException with properties:

identifier: 'MATLAB:catenate:structFieldBad'
   message: 'Number of fields in structure arrays being concatenated do not match. Concatenation of structure arrays requires that ...'
     cause: {0x1 cell}
     stack: [5x1 struct]

genericInclude 1737

listData_Callback 506

gui_mainfcn 95

viewerMain 42

@(hObject,eventdata)viewerMain('listData_Callback',hObject,eventdata,guidata(hObject)) 0

Attempted to access axHandles(5); index out of bounds because numel(axHandles)=2.

Error in viewerMain>listData_Callback (line 533) imagesc(zeros(5),'Parent',axHandles(ind));

Error in gui_mainfcn (line 95) feval(varargin{:});

Error in viewerMain (line 42) gui_mainfcn(gui_State, varargin{:});

Error in @(hObject,eventdata)viewerMain('listData_Callback',hObject,eventdata,guidata(hObject))

Error while evaluating uicontrol Callback

clairelbromley commented 7 years ago

Ok, so it seems that after importing the inclusion data, the viewer is unable to open any file that didn't previously have QC'd data associated with it...

clairelbromley commented 7 years ago

Date = 190716, Embryo = 10, Cut = 1 MException with properties:

identifier: 'MATLAB:catenate:structFieldBad'
   message: 'Number of fields in structure arrays being concatenated do not match. Concatenation of structure arrays requires that ...'
     cause: {0x1 cell}
     stack: [5x1 struct]

genericInclude 1737

listData_Callback 506

gui_mainfcn 95

viewerMain 42

@(hObject,eventdata)viewerMain('listData_Callback',hObject,eventdata,guidata(hObject)) 0

Attempted to access axHandles(5); index out of bounds because numel(axHandles)=2.

Error in viewerMain>listData_Callback (line 533) imagesc(zeros(5),'Parent',axHandles(ind));

Error in gui_mainfcn (line 95) feval(varargin{:});

Error in viewerMain (line 42) gui_mainfcn(gui_State, varargin{:});

Error in @(hObject,eventdata)viewerMain('listData_Callback',hObject,eventdata,guidata(hObject))

Error while evaluating uicontrol Callback

same bug, when trying to import data from 190716

clairelbromley commented 7 years ago

In the case of 190716, the viewer cannot open a previous QC file, even when the extra columns for cut length and cut duration are added

clairelbromley commented 7 years ago

Issue reported in first part of this thread is distinct and is caused by loaded metadata not having the same fields (cut duration, length) as the new metadata being assigned by viewer.