Home > BiKEGG > GetKeggMaps.m

GetKeggMaps

PURPOSE ^

GetKeggMaps (GUI)

SYNOPSIS ^

function varargout = GetKeggMaps(varargin)

DESCRIPTION ^

 GetKeggMaps (GUI)
 Gets selected KEGG pathways of interest for the visualization purpose.

 O. Jamialahmadi
 TMU, Chem. Eng. Dept., Biotech. Group 
 Nov. 2015

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SUBFUNCTIONS ^

SOURCE CODE ^

0001 function varargout = GetKeggMaps(varargin)
0002 % GetKeggMaps (GUI)
0003 % Gets selected KEGG pathways of interest for the visualization purpose.
0004 %
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', @GetKeggMaps_OpeningFcn, ...
0014                    'gui_OutputFcn',  @GetKeggMaps_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 GetKeggMaps is made visible.
0030 function GetKeggMaps_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 GetKeggMaps (see VARARGIN)
0036 MapNames2 = getappdata(0,'MapNames2');
0037 set(handles.listbox1,'String',MapNames2);
0038 % Choose default command line output for GetKeggMaps
0039 handles.output = hObject;
0040 
0041 % Update handles structure
0042 guidata(hObject, handles);
0043 
0044 % UIWAIT makes GetKeggMaps wait for user response (see UIRESUME)
0045 % uiwait(handles.figure1);
0046 
0047 
0048 % --- Outputs from this function are returned to the command line.
0049 function varargout = GetKeggMaps_OutputFcn(hObject, eventdata, handles) 
0050 % varargout  cell array for returning output args (see VARARGOUT);
0051 % hObject    handle to figure
0052 % eventdata  reserved - to be defined in a future version of MATLAB
0053 % handles    structure with handles and user data (see GUIDATA)
0054 
0055 % Get default command line output from handles structure
0056 varargout{1} = handles.output;
0057 
0058 
0059 % --- Executes on selection change in listbox1.
0060 function listbox1_Callback(hObject, eventdata, handles)
0061 % hObject    handle to listbox1 (see GCBO)
0062 % eventdata  reserved - to be defined in a future version of MATLAB
0063 % handles    structure with handles and user data (see GUIDATA)
0064 % Hints: contents = cellstr(get(hObject,'String')) returns listbox1 contents as cell array
0065 %        contents{get(hObject,'Value')} returns selected item from listbox1
0066 ListChoice = get(handles.listbox1, 'Value');
0067 RxnList = getappdata(0,'RxnList');
0068 set(handles.uitable2,'Data',RxnList{ListChoice(1)});
0069 
0070 
0071 % --- Executes during object creation, after setting all properties.
0072 function listbox1_CreateFcn(hObject, eventdata, handles)
0073 % hObject    handle to listbox1 (see GCBO)
0074 % eventdata  reserved - to be defined in a future version of MATLAB
0075 % handles    empty - handles not created until after all CreateFcns called
0076 
0077 % Hint: listbox controls usually have a white background on Windows.
0078 %       See ISPC and COMPUTER.
0079 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
0080     set(hObject,'BackgroundColor','white');
0081 end
0082 
0083 
0084 % --- Executes on button press in pushbutton1.
0085 function pushbutton1_Callback(hObject, eventdata, handles)
0086 % hObject    handle to pushbutton1 (see GCBO)
0087 % eventdata  reserved - to be defined in a future version of MATLAB
0088 % handles    structure with handles and user data (see GUIDATA)
0089 ChkBoxVal =get(handles.checkbox1,'Value');
0090 MapNames2 = getappdata(0,'MapNames2');
0091 if ChkBoxVal
0092     AllChoices = 1:numel(MapNames2);
0093 else
0094     AllChoices = get(handles.listbox1, 'Value');
0095 end
0096 setappdata(0,'AllChoices',AllChoices)
0097 close(gcf)
0098 
0099 
0100 % --- Executes on button press in checkbox1.
0101 function checkbox1_Callback(hObject, eventdata, handles)
0102 % hObject    handle to checkbox1 (see GCBO)
0103 % eventdata  reserved - to be defined in a future version of MATLAB
0104 % handles    structure with handles and user data (see GUIDATA)
0105 
0106 % Hint: get(hObject,'Value') returns toggle state of checkbox1

Generated on Sat 16-Jul-2016 20:21:30 by m2html © 2005