GetKeggTable (GUI) Identifies missed (unknown) reaction correspondences for the input BiGG model. Part of GetKEGG O. Jamialahmadi TMU, Chem. Eng. Dept., Biotech. Group Nov. 2015
0001 function varargout = GetKeggTable(varargin) 0002 % GetKeggTable (GUI) 0003 % Identifies missed (unknown) reaction correspondences for the input BiGG model. 0004 % Part of GetKEGG 0005 % O. Jamialahmadi 0006 % TMU, Chem. Eng. Dept., Biotech. Group 0007 % Nov. 2015 0008 0009 % Begin initialization code - DO NOT EDIT 0010 gui_Singleton = 1; 0011 gui_State = struct('gui_Name', mfilename, ... 0012 'gui_Singleton', gui_Singleton, ... 0013 'gui_OpeningFcn', @GetKeggTable_OpeningFcn, ... 0014 'gui_OutputFcn', @GetKeggTable_OutputFcn, ... 0015 'gui_LayoutFcn', [] , ... 0016 'gui_Callback', []); 0017 if nargin && ischar(varargin{1}) 0018 gui_State.gui_Callback = str2func(varargin{1}); 0019 end 0020 0021 if nargout 0022 [varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:}); 0023 else 0024 gui_mainfcn(gui_State, varargin{:}); 0025 end 0026 % End initialization code - DO NOT EDIT 0027 0028 0029 % --- Executes just before GetKeggTable is made visible. 0030 function GetKeggTable_OpeningFcn(hObject, eventdata, handles, varargin) 0031 % This function has no output args, see OutputFcn. 0032 % hObject handle to figure 0033 % eventdata reserved - to be defined in a future version of MATLAB 0034 % handles structure with handles and user data (see GUIDATA) 0035 % varargin command line arguments to GetKeggTable (see VARARGIN) 0036 0037 % Choose default command line output for GetKeggTable 0038 handles.output = hObject; 0039 0040 % Update handles structure 0041 guidata(hObject, handles); 0042 0043 % UIWAIT makes GetKeggTable wait for user response (see UIRESUME) 0044 % uiwait(handles.figure1); 0045 0046 0047 % --- Outputs from this function are returned to the command line. 0048 function varargout = GetKeggTable_OutputFcn(hObject, eventdata, handles) 0049 % varargout cell array for returning output args (see VARARGOUT); 0050 % hObject handle to figure 0051 % eventdata reserved - to be defined in a future version of MATLAB 0052 % handles structure with handles and user data (see GUIDATA) 0053 0054 % Get default command line output from handles structure 0055 varargout{1} = handles.output; 0056 0057 0058 % --- Executes on button press in DoneButton. 0059 function DoneButton_Callback(hObject, eventdata, handles) 0060 % hObject handle to DoneButton (see GCBO) 0061 % eventdata reserved - to be defined in a future version of MATLAB 0062 % handles structure with handles and user data (see GUIDATA) 0063 A=get(handles.Table1,'Data'); 0064 setappdata(0,'Final',A); 0065 close(gcf) 0066 0067 % --- Executes during object creation, after setting all properties. 0068 function Table1_CreateFcn(hObject, eventdata, handles) 0069 FirstClm = getappdata(0,'NotData'); 0070 SecClm = cell(1,numel(FirstClm)); 0071 SecClm(1:end) = {'Unknown'}; 0072 TabData = cell(numel(FirstClm),2); 0073 TabData(1:end,1) = FirstClm; TabData(1:end,2) = SecClm; 0074 set(hObject, 'Data', TabData); 0075 set(hObject, 'ColumnName', {'BiGG', 'KEGG'}) 0076 set(hObject, 'ColumnEditable', [true, true]); 0077 % hObject handle to Table1 (see GCBO) 0078 % eventdata reserved - to be defined in a future version of MATLAB 0079 % handles empty - handles not created until after all CreateFcns called 0080 0081 0082 % --- Executes when entered data in editable cell(s) in Table1. 0083 function Table1_CellEditCallback(hObject, eventdata, handles) 0084 % hObject handle to Table1 (see GCBO) 0085 % eventdata structure with the following fields (see UITABLE) 0086 % Indices: row and column indices of the cell(s) edited 0087 % PreviousData: previous data for the cell(s) edited 0088 % EditData: string(s) entered by the user 0089 % NewData: EditData or its converted form set on the Data property. Empty if Data was not changed 0090 % Error: error string when failed to convert EditData to appropriate value for Data 0091 % handles structure with handles and user data (see GUIDATA) 0092 RowChanged=eventdata.Indices(1); 0093 ColChanged=eventdata.Indices(2); 0094 newValue=eventdata.NewData; 0095 D =get(handles.Table1,'Data'); 0096 D{RowChanged,ColChanged}=newValue;