EZviewGui.m 69 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148
  1. function varargout = EZviewGui(varargin)
  2. % EZVIEWGUI MATLAB code for EZviewGui.fig
  3. % EZVIEWGUI, by itself, creates a new EZVIEWGUI or raises the existing
  4. % singleton*.
  5. %
  6. % H=EZVIEWGUI returns the handle to a new EZVIEWGUI or the handle to
  7. % the existing singleton*.
  8. %
  9. % EZVIEWGUI('CALLBACK',hObject,eventData,handles,...) calls the local
  10. % function named CALLBACK in EZVIEWGUI.M with the given input arguments.
  11. %
  12. % EZVIEWGUI('Property','Value',...) creates a new EZVIEWGUI or raises the
  13. % existing singleton*. Starting from the left, property value pairs are
  14. % applied to the GUI before EZviewGui_OpeningFcn gets called. An
  15. % unrecognized property name or invalid value makes property application
  16. % stop. All inputs are passed to EZviewGui_OpeningFcn via varargin.
  17. %
  18. % *See GUI Options on GUIDE's Tools menu. Choose "GUI allows only one
  19. % instance to run (singleton)".
  20. %
  21. % See also: GUIDE, GUIDATA, GUIHANDLES
  22. gui_Singleton=0;
  23. gui_State=struct( ...
  24. 'gui_Name', mfilename, ...
  25. 'gui_Singleton', gui_Singleton, ...
  26. 'gui_OpeningFcn', @EZviewGui_OpeningFcn, ...
  27. 'gui_OutputFcn', @EZviewGui_OutputFcn, ...
  28. 'gui_LayoutFcn', [] , ...
  29. 'gui_Callback', []);
  30. if nargin && ischar(varargin{1})
  31. gui_State.gui_Callback=str2func(varargin{1});
  32. end
  33. if nargout
  34. [varargout{1:nargout}]=gui_mainfcn(gui_State, varargin{:});
  35. else
  36. try
  37. gui_mainfcn(gui_State, varargin{:});
  38. catch
  39. end
  40. end
  41. end
  42. % Executes just before EZviewGui is made visible.
  43. function EZviewGui_OpeningFcn(hObject, eventdata, handles, varargin)
  44. % This function has no output args, see OutputFcn.
  45. % hObject handle to figure
  46. % eventdata reserved - to be defined in a future version of MATLAB
  47. % handles structure with handles and user data (see GUIDATA)
  48. % varargin command line arguments to EZviewGui (see VARARGIN)
  49. % Choose default command line output for EZviewGui
  50. handles.output=hObject;
  51. % Update handles structure
  52. guidata(hObject, handles);
  53. % This sets up the initial plot - only do when we are invisible
  54. % so window can get raised using EZviewGui.
  55. if strcmp(get(hObject,'Visible'),'off')
  56. %plot(rand(5));
  57. end
  58. % Special disabling of version for this later install of Matlab 2011a:
  59. % The ver output changed and no longer works for the simple code that follows
  60. %{
  61. % MatLab Version detection
  62. qv=ver;
  63. mlver=qv(17).Version
  64. mlRel=qv(17).Release
  65. if str2double(mlver)>8.3
  66. newMLgraph=1
  67. else
  68. newMLgraph=0
  69. end
  70. %}
  71. % Load experiment data ....
  72. EZvInitLoad
  73. % Func Call setup for @myupdatfcn
  74. dcm_obj=datacursormode(gcf);
  75. % datacursormode on;
  76. set(dcm_obj,'DisplayStyle','window')
  77. set(dcm_obj,'UpdateFcn', @myupdatefcn);
  78. % UIWAIT makes EZviewGui wait for user response (see UIRESUME)
  79. % uiwait(handles.figure1);
  80. % global MPsel
  81. % MPsel=50;
  82. end
  83. % Outputs from this function are returned to the command line.
  84. function varargout=EZviewGui_OutputFcn(hObject, eventdata, handles)
  85. % varargout cell array for returning output args (see VARARGOUT);
  86. % hObject handle to figure
  87. % eventdata reserved - to be defined in a future version of MATLAB
  88. % handles structure with handles and user data (see GUIDATA)
  89. % Get default command line output from handles structure
  90. varargout{1}=handles.output;
  91. end
  92. % Menu bar
  93. function FileMenu_Callback(hObject, eventdata, handles)
  94. % hObject handle to FileMenu (see GCBO)
  95. % eventdata reserved - to be defined in a future version of MATLAB
  96. % handles structure with handles and user data (see GUIDATA)
  97. end
  98. function OpenMenuItem_Callback(hObject, eventdata, handles)
  99. % hObject handle to OpenMenuItem (see GCBO)
  100. % eventdata reserved - to be defined in a future version of MATLAB
  101. % handles structure with handles and user data (see GUIDATA)
  102. file=uigetfile('*.fig');
  103. if ~isequal(file, 0)
  104. open(file);
  105. end
  106. end
  107. function PrintMenuItem_Callback(hObject, eventdata, handles)
  108. % hObject handle to PrintMenuItem (see GCBO)
  109. % eventdata reserved - to be defined in a future version of MATLAB
  110. % handles structure with handles and user data (see GUIDATA)
  111. printdlg(handles.figure1)
  112. end
  113. % --------------------------------------------------------------------
  114. function CloseMenuItem_Callback(hObject, eventdata, handles)
  115. % hObject handle to CloseMenuItem (see GCBO)
  116. % eventdata reserved - to be defined in a future version of MATLAB
  117. % handles structure with handles and user data (see GUIDATA)
  118. selection=questdlg(...
  119. ['Close ' get(handles.figure1,'Name') '?'],...
  120. ['Close ' get(handles.figure1,'Name') '...'],...
  121. 'Yes','No','Yes');
  122. if strcmp(selection,'No')
  123. return;
  124. end
  125. delete(handles.figure1);
  126. end
  127. % Executes on mouse press over figure background.
  128. function figure1_ButtonDownFcn(hObject, eventdata, handles)
  129. % hObject handle to figure1 (see GCBO)
  130. % eventdata reserved - to be defined in a future version of MATLAB
  131. % handles structure with handles and user data (see GUIDATA)
  132. end
  133. % Begin user code
  134. function [output_txt]=myupdatefcn(obj,event_obj)
  135. global ghandles
  136. global Exp
  137. [output_txt]=datatipp(obj,event_obj); % datatipp is a Matlab function
  138. gcf=Exp(4).guiFig; % gcf=ghandles.figure1 Mathworks Provided this line for Apple issue
  139. clkPos=getCursorInfo(datacursormode(gcf));
  140. cpos=clkPos.Position;
  141. htargetAxes=clkPos.Target;
  142. % datacursormode(gcf)
  143. if ghandles.Iaxes1==get(htargetAxes,'Parent')||...
  144. ghandles.Iaxes2==get(htargetAxes,'Parent')||...
  145. ghandles.Iaxes3==get(htargetAxes,'Parent')||...
  146. ghandles.OLaxes1==get(htargetAxes,'Parent')||...
  147. ghandles.OLaxes2==get(htargetAxes,'Parent')||...
  148. ghandles.OLaxes3==get(htargetAxes,'Parent')||...
  149. ghandles.HtMap1==get(htargetAxes,'Parent')||...
  150. ghandles.HtMap2==get(htargetAxes,'Parent')||...
  151. ghandles.HtMap3==get(htargetAxes,'Parent'),
  152. EZvDatatip
  153. %datacursormode off
  154. %datacursormode on
  155. %waitforbuttonpress
  156. %[output_txt]=output_txt; %datatipp(obj,event_obj);
  157. end
  158. prntHt=0; % added 210205 for Print Heatmap buttons [P]
  159. end
  160. % Executes on slider movement.
  161. function MPsldr1_Callback(hObject, eventdata, handles)
  162. % hObject handle to MPsldr1 (see GCBO)
  163. global Exp
  164. expN=1;
  165. input=floor(get(hObject,'value'));
  166. display(input)
  167. set(handles.MPed1,'string',num2str(round(input)));
  168. EZVimDisplay
  169. % Executes during object creation, after setting all properties.
  170. %{
  171. %Migration edits 230814
  172. function MPsldr1_CreateFcn(hObject, eventdata, handles)
  173. % Hint: slider controls usually have a light gray background.
  174. if isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
  175. set(hObject,'BackgroundColor',[.9 .9 .9]);
  176. end
  177. end
  178. %}
  179. end
  180. function MPed1_Callback(hObject, eventdata, handles)
  181. % hObject handle to MPed1 (see GCBO)
  182. global Exp
  183. global zonePB
  184. global ghandles
  185. expN=1;
  186. zonePB=expN;
  187. input=get(hObject,'String');
  188. Max=floor(get(handles.MPsldr1,'max'));
  189. Min=floor(get(handles.MPsldr1,'min'));
  190. if str2num(input) >=Min && str2num(input) <=Max
  191. display(input)
  192. set(handles.MPsldr1,'value',str2double(input));
  193. else
  194. if str2double(input) >=Max, set(handles.MPsldr1,'value',Max); set(handles.MPed1,'string',num2str(Max));end
  195. if str2double(input) <=Min, set(handles.MPsldr1,'value',Min),set(handles.MPed1,'string',num2str(Min));end
  196. end
  197. EZVimDisplay
  198. ghandles.guiFig=gcf;
  199. Exp(4).guiFig=gcf;
  200. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
  201. set(hObject,'BackgroundColor','white');
  202. end
  203. % Executes during object creation, after setting all properties.
  204. %{
  205. function MPed1_CreateFcn(hObject, eventdata, handles)
  206. global ghandles
  207. global Exp
  208. ghandles.guiFig=gcf;
  209. Exp(4).guiFig=gcf;
  210. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
  211. set(hObject,'BackgroundColor','white');
  212. end
  213. end
  214. %}
  215. end
  216. % Executes on slider movement.
  217. function DMsldr1_Callback(hObject, eventdata, handles)
  218. % hObject handle to DMsldr1 (see GCBO)
  219. global Exp
  220. expN=1;
  221. input=floor(get(hObject,'value'));
  222. display(input)
  223. set(handles.DMed1,'string',num2str(round(input)));
  224. EZVimDisplay
  225. % Executes during object creation, after setting all properties.
  226. %{
  227. function DMsldr1_CreateFcn(hObject, eventdata, handles)
  228. % hObject handle to DMsldr1 (see GCBO)
  229. global Exp
  230. if isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
  231. set(hObject,'BackgroundColor',[.9 .9 .9]);
  232. end
  233. end
  234. %}
  235. end
  236. function DMed1_Callback(hObject, eventdata, handles)
  237. % hObject handle to DMed1 (see GCBO)
  238. global Exp
  239. expN=1;
  240. Max=floor(get(handles.DMsldr1,'max'));
  241. Min=floor(get(handles.DMsldr1,'min'));
  242. input=get(hObject,'String')
  243. if str2num(input) >=Min && str2num(input) <=Max
  244. display(input)
  245. set(handles.DMsldr1,'value',str2double(input))
  246. else
  247. if str2num(input) >=Max, set(handles.DMsldr1,'value',Max); set(handles.DMed1,'string',num2str(Max));end
  248. if str2num(input) <=Min, set(handles.DMsldr1,'value',Min),set(handles.DMed1,'string',num2str(Min));end
  249. end
  250. EZVimDisplay
  251. end
  252. % Executes during object creation, after setting all properties.
  253. function DMed1_CreateFcn(hObject, eventdata, handles)
  254. % hObject handle to DMed1 (see GCBO)
  255. % See ISPC and COMPUTER.
  256. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
  257. set(hObject,'BackgroundColor','white');
  258. end
  259. end
  260. % Executes on slider movement.
  261. function Tptsldr1_Callback(hObject, eventdata, handles)
  262. % hObject handle to Tptsldr1 (see GCBO)
  263. global Exp
  264. expN=1;
  265. input=floor(get(hObject,'value'));
  266. display(input)
  267. set(handles.Tpted1,'string',num2str(floor(input)))
  268. prntHt=0;
  269. EZVimDisplay
  270. % Executes during object creation, after setting all properties.
  271. %{
  272. function Tptsldr1_CreateFcn(hObject, eventdata, handles)
  273. % hObject handle to Tptsldr1 (see GCBO)
  274. if isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
  275. set(hObject,'BackgroundColor',[.9 .9 .9]);
  276. end
  277. end
  278. %}
  279. end
  280. function Tpted1_Callback(hObject, eventdata, handles)
  281. % hObject handle to Tpted1 (see GCBO)
  282. global Exp
  283. expN=1;
  284. input=get(hObject,'String')
  285. Max=floor(get(handles.Tptsldr1,'max'));
  286. Min=floor(get(handles.Tptsldr1,'min'));
  287. if str2double(input) >=Min && str2double(input) <=Max
  288. display(input)
  289. set(handles.Tptsldr1,'value',str2double(input))
  290. else
  291. if str2num(input) >=Max, set(handles.Tptsldr1,'value',Max); set(handles.Tpted1,'string',num2str(Max));end
  292. if str2num(input) <=Min, set(handles.Tptsldr1,'value',Min),set(handles.Tpted1,'string',num2str(Min));end
  293. end
  294. EZVimDisplay
  295. end
  296. % Executes during object creation, after setting all properties.
  297. function Tpted1_CreateFcn(hObject, eventdata, handles)
  298. % hObject handle to Tpted1 (see GCBO)
  299. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
  300. set(hObject,'BackgroundColor','white');
  301. end
  302. %}
  303. end
  304. % Executes on button press in expSelPB1.
  305. function expSelPB1_Callback(hObject, eventdata, handles)
  306. % hObject handle to expSelPB1 (see GCBO)
  307. global Exp
  308. expN=1;
  309. prntHt=0;
  310. EZexpSel
  311. end
  312. % Executes on button press in rotPB1.
  313. function rotPB1_Callback(hObject, eventdata, handles)
  314. % hObject handle to rotPB1 (see GCBO)
  315. % eventdata reserved - to be defined in a future version of MATLAB
  316. % handles structure with handles and user data (see GUIDATA)
  317. global ghandles
  318. ghandles=handles;
  319. end
  320. % Executes on button press in clrOlay1.
  321. function clrOlay1_Callback(hObject, eventdata, handles)
  322. % hObject handle to clrOlay1 (see GCBO)
  323. global Exp
  324. global ghandles
  325. set(ghandles.OLay1,'string',{' '})
  326. set(ghandles.OLexp1,'string',{''})
  327. cla(ghandles.OLaxes1)
  328. Exp(1).traceN=0;
  329. %Exp(1).cTraceN=0;
  330. Exp(1).hOL=[]; Exp(1).hOLb=[];
  331. Exp(1).hOLname={}; Exp(1).hOLexpNm={}; Exp(1).hOLresDir={};
  332. Exp(1).hOLplateNum=[];
  333. Exp(1).hOLresDir={};
  334. cla(ghandles.Dlaxes1); cla(ghandles.Dkaxes1); cla(ghandles.Draxes1);
  335. cla(ghandles.DNLaxes1);
  336. Exp(1).hL =[]; Exp(1).hLb=[];
  337. Exp(1).hLRF1=[]; Exp(1).hLRF2=[];
  338. Exp(1).hK =[]; Exp(1).hKb=[];
  339. Exp(1).hKRF1=[]; Exp(1).hKRF2=[];
  340. Exp(1).hr =[]; Exp(1).hrb=[];
  341. Exp(1).rRF1=[]; Exp(1).hrRF2=[];
  342. Exp(1).hintL =[]; Exp(1).hintLb=[]; % 2016_0222
  343. Exp(1).hintLadj =[]; Exp(1).hintLadjb=[]; % 2016_0222
  344. % reset Composite Overlay plot to initialization values
  345. Exp(1).cTraceN=1;
  346. Exp(1).ll=[]; Exp(1).rr=[]; Exp(1).kk=[];
  347. Exp(1).cLmean=[]; Exp(1).cRmean=[]; Exp(1).cKmean=[];
  348. Exp(1).cTraceIndx=1;
  349. Exp(1).hCmean=[];
  350. Exp(1).hBound1=[];
  351. Exp(1).hBound2=[];
  352. Exp(1).CompositPlot=0;
  353. Exp(1).Trace=[]; %added for Trend BoxPlot data 17_1114
  354. end
  355. % Executes on slider movement.
  356. function MPsldr2_Callback(hObject, eventdata, handles)
  357. % hObject handle to MPsldr2 (see GCBO)
  358. global Exp
  359. expN=2;
  360. input=floor(get(hObject,'value'));
  361. display(input)
  362. set(handles.MPed2,'string',num2str(round(input)));
  363. EZVimDisplay
  364. end
  365. % Executes during object creation, after setting all properties.
  366. %{
  367. %Migration edits 230814
  368. function MPsldr2_CreateFcn(hObject, eventdata, handles)
  369. % hObject handle to MPsldr2 (see GCBO)
  370. if isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
  371. set(hObject,'BackgroundColor',[.9 .9 .9]);
  372. end
  373. end
  374. %}
  375. function MPed2_Callback(hObject, eventdata, handles)
  376. % hObject handle to MPed2 (see GCBO)
  377. global Exp
  378. global zonePB
  379. global ghandles
  380. expN=2;
  381. zonePB=expN;
  382. input=get(hObject,'String');
  383. Max=floor(get(handles.MPsldr2,'max'));
  384. Min=floor(get(handles.MPsldr2,'min'));
  385. if str2num(input) >=Min && str2num(input) <=Max
  386. display(input)
  387. set(handles.MPsldr2,'value',str2double(input));
  388. else
  389. if str2num(input) >=Max, set(handles.MPsldr2,'value',Max); set(handles.MPed2,'string',num2str(Max));end
  390. if str2num(input) <=Min, set(handles.MPsldr2,'value',Min),set(handles.MPed2,'string',num2str(Min));end
  391. end
  392. EZVimDisplay
  393. ghandles.guiFig=gcf;
  394. Exp(4).guiFig=gcf;
  395. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
  396. set(hObject,'BackgroundColor','white');
  397. end
  398. end
  399. % Executes during object creation, after setting all properties.
  400. %{
  401. function MPed2_CreateFcn(hObject, eventdata, handles)
  402. % hObject handle to MPed2 (see GCBO)
  403. global ghandles
  404. global Exp
  405. ghandles.guiFig=gcf;
  406. Exp(4).guiFig=gcf;
  407. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
  408. set(hObject,'BackgroundColor','white');
  409. end
  410. end
  411. %}
  412. % Executes on slider movement.
  413. function DMsldr2_Callback(hObject, eventdata, handles)
  414. % hObject handle to DMsldr2 (see GCBO)
  415. global Exp
  416. expN=2;
  417. input=floor(get(hObject,'value'));
  418. display(input)
  419. set(handles.DMed2,'string',num2str(round(input)))
  420. EZVimDisplay
  421. end
  422. % Executes during object creation, after setting all properties.
  423. %{
  424. function DMsldr2_CreateFcn(hObject, eventdata, handles)
  425. % hObject handle to DMsldr2 (see GCBO)
  426. global Exp
  427. if isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
  428. set(hObject,'BackgroundColor',[.9 .9 .9]);
  429. end
  430. end
  431. %}
  432. function DMed2_Callback(hObject, eventdata, handles)
  433. % hObject handle to DMed2 (see GCBO)
  434. global Exp
  435. expN=2;
  436. Max=floor(get(handles.DMsldr2,'max'));
  437. Min=floor(get(handles.DMsldr2,'min'));
  438. input=get(hObject,'String')
  439. if str2double(input) >=Min && str2double(input) <=Max
  440. display(input)
  441. set(handles.DMsldr2,'value',str2double(input))
  442. else
  443. if str2double(input) >=Max, set(handles.DMsldr2,'value',Max); set(handles.DMed2,'string',num2str(Max));end
  444. if str2double(input) <=Min, set(handles.DMsldr2,'value',Min),set(handles.DMed2,'string',num2str(Min));end
  445. end
  446. EZVimDisplay
  447. end
  448. % Executes during object creation, after setting all properties.
  449. function DMed2_CreateFcn(hObject, eventdata, handles)
  450. % hObject handle to DMed2 (see GCBO)
  451. % Hint: edit controls usually have a white background on Windows.
  452. % See ISPC and COMPUTER.
  453. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
  454. set(hObject,'BackgroundColor','white');
  455. end
  456. end
  457. % --- Executes on slider movement.
  458. function Tptsldr2_Callback(hObject, eventdata, handles)
  459. % hObject handle to Tptsldr2 (see GCBO)
  460. global Exp
  461. expN=2;
  462. input=floor(get(hObject,'value'));
  463. display(input)
  464. set(handles.Tpted2,'string',num2str(floor(input)))
  465. prntHt=0;
  466. EZVimDisplay
  467. end
  468. % --- Executes during object creation, after setting all properties.
  469. %{
  470. function Tptsldr2_CreateFcn(hObject, eventdata, handles)
  471. % hObject handle to Tptsldr2 (see GCBO)
  472. if isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
  473. set(hObject,'BackgroundColor',[.9 .9 .9]);
  474. end
  475. end
  476. %}
  477. function Tpted2_Callback(hObject, eventdata, handles)
  478. % hObject handle to Tpted2 (see GCBO)
  479. global Exp
  480. expN=2;
  481. input=get(hObject,'String')
  482. Max=floor(get(handles.Tptsldr2,'max'));
  483. Min=floor(get(handles.Tptsldr2,'min'));
  484. if str2double(input) >=Min && str2double(input) <=Max
  485. display(input)
  486. set(handles.Tptsldr2,'value',str2double(input))
  487. else
  488. if str2num(input) >=Max, set(handles.Tptsldr2,'value',Max); set(handles.Tpted2,'string',num2str(Max));end
  489. if str2num(input) <=Min, set(handles.Tptsldr2,'value',Min),set(handles.Tpted2,'string',num2str(Min));end
  490. end
  491. EZVimDisplay
  492. end
  493. % Executes during object creation, after setting all properties.
  494. function Tpted2_CreateFcn(hObject, eventdata, handles)
  495. % hObject handle to Tpted2 (see GCBO)
  496. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
  497. set(hObject,'BackgroundColor','white');
  498. end
  499. end
  500. % Executes on button press in expSelPB2.
  501. function expSelPB2_Callback(hObject, eventdata, handles)
  502. % hObject handle to expSelPB2 (see GCBO)
  503. global Exp
  504. expN=2;
  505. prntHt=0;
  506. EZexpSel
  507. end
  508. % Executes on button press in rotPB2.
  509. function rotPB2_Callback(hObject, eventdata, handles)
  510. % hObject handle to rotPB2 (see GCBO)
  511. % eventdata reserved - to be defined in a future version of MATLAB
  512. % handles structure with handles and user data (see GUIDATA)
  513. global ghandles
  514. ghandles=handles;
  515. end
  516. % Executes on button press in clrOlay2.
  517. function clrOlay2_Callback(hObject, eventdata, handles)
  518. % hObject handle to clrOlay2 (see GCBO)
  519. global ghandles
  520. global Exp
  521. set(ghandles.OLay2,'string',{''})
  522. set(ghandles.OLexp2,'string',{''})
  523. cla(ghandles.OLaxes2)
  524. Exp(2).traceN=0;
  525. %Exp(2).cTraceN=0;
  526. Exp(2).hOL =[]; Exp(2).hOLb=[];
  527. Exp(2).hOLname={}; Exp(2).hOLexpNm={}; Exp(2).hOLresDir={}
  528. Exp(2).hOLplateNum=[];
  529. Exp(2).hOLresDir={};
  530. cla(ghandles.Dlaxes2); cla(ghandles.Dkaxes2); cla(ghandles.Draxes2);
  531. cla(ghandles.DNLaxes2); % 2016_0222
  532. Exp(2).hL =[]; Exp(2).hLb=[];
  533. Exp(2).LRF1=[]; Exp(2).hLRF2=[];
  534. Exp(2).hK =[]; Exp(2).hKb=[];
  535. Exp(2).hKRF1=[]; Exp(2).hKRF2=[];
  536. Exp(2).hr =[]; Exp(2).hrb=[];
  537. Exp(2).rRF1=[]; Exp(2).hrRF2=[];
  538. %reset Composite Overlay plot to initialization values
  539. Exp(2).cTraceN=1;
  540. Exp(2).ll=[]; Exp(2).rr=[]; Exp(2).kk=[];
  541. Exp(2).cLmean=[]; Exp(2).cRmean=[]; Exp(2).cKmean=[];
  542. Exp(2).cTraceIndx=1;
  543. Exp(2).hCmean=[];
  544. Exp(2).hBound1=[];
  545. Exp(2).hBound2=[];
  546. Exp(2).CompositPlot=0;
  547. Exp(2).Trace=[]; %added for Trend BoxPlot data 17_1114
  548. end
  549. % Executes on slider movement
  550. function MPsldr3_Callback(hObject, eventdata, handles)
  551. % hObject handle to MPsldr3 (see GCBO)
  552. global Exp
  553. expN=3;
  554. input=floor(get(hObject,'value'));
  555. display(input)
  556. set(handles.MPed3,'string',num2str(round(input)));
  557. EZVimDisplay
  558. end
  559. % Executes during object creation, after setting all properties.
  560. %{
  561. function MPsldr3_CreateFcn(hObject, eventdata, handles)
  562. % hObject handle to MPsldr3 (see GCBO)
  563. if isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
  564. set(hObject,'BackgroundColor',[.9 .9 .9]);
  565. end
  566. end
  567. %}
  568. function MPed3_Callback(hObject, eventdata, handles)
  569. % hObject handle to MPed3 (see GCBO)
  570. global Exp
  571. global zonePB
  572. global ghandles
  573. expN=3;
  574. zonePB=expN;
  575. input=get(hObject,'String');
  576. Max=floor(get(handles.MPsldr3,'max'));
  577. Min=floor(get(handles.MPsldr3,'min'));
  578. if str2num(input) >=Min && str2num(input) <=Max
  579. display(input)
  580. set(handles.MPsldr3,'value',str2double(input));
  581. else
  582. if str2num(input) >=Max, set(handles.MPsldr3,'value',Max); set(handles.MPed3,'string',num2str(Max));end
  583. if str2num(input) <=Min, set(handles.MPsldr3,'value',Min),set(handles.MPed3,'string',num2str(Min));end
  584. end
  585. EZVimDisplay
  586. ghandles.guiFig=gcf;
  587. Exp(4).guiFig=gcf;
  588. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
  589. set(hObject,'BackgroundColor','white');
  590. end
  591. end
  592. % Executes during object creation, after setting all properties.
  593. %{
  594. function MPed3_CreateFcn(hObject, eventdata, handles)
  595. global ghandles
  596. global Exp
  597. ghandles.guiFig=gcf;
  598. Exp(4).guiFig=gcf;
  599. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
  600. set(hObject,'BackgroundColor','white');
  601. end
  602. end
  603. %}
  604. % --- Executes on slider movement.
  605. function DMsldr3_Callback(hObject, eventdata, handles)
  606. % hObject handle to DMsldr3 (see GCBO)
  607. global Exp
  608. expN=3;
  609. input=floor(get(hObject,'value'));
  610. display(input)
  611. set(handles.DMed3,'string',num2str(round(input)))
  612. EZVimDisplay
  613. end
  614. % Executes during object creation, after setting all properties.
  615. %{
  616. function DMsldr3_CreateFcn(hObject, eventdata, handles)
  617. % hObject handle to DMsldr3 (see GCBO)
  618. global Exp
  619. if isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
  620. set(hObject,'BackgroundColor',[.9 .9 .9]);
  621. end
  622. end
  623. %}
  624. function DMed3_Callback(hObject, eventdata, handles)
  625. % hObject handle to DMed3 (see GCBO)
  626. global Exp
  627. expN=3;
  628. Max=floor(get(handles.DMsldr3,'max'));
  629. Min=floor(get(handles.DMsldr3,'min'));
  630. input=get(hObject,'String')
  631. if str2num(input) >=Min && str2num(input) <=Max
  632. display(input)
  633. set(handles.DMsldr3,'value',str2double(input))
  634. else
  635. if str2num(input) >=Max, set(handles.DMsldr3,'value',Max); set(handles.DMed3,'string',num2str(Max));end
  636. if str2num(input) <=Min, set(handles.DMsldr3,'value',Min),set(handles.DMed3,'string',num2str(Min));end
  637. end
  638. EZVimDisplay
  639. end
  640. % Executes during object creation, after setting all properties.
  641. function DMed3_CreateFcn(hObject, eventdata, handles)
  642. % hObject handle to DMed3 (see GCBO)
  643. % See ISPC and COMPUTER.
  644. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
  645. set(hObject,'BackgroundColor','white');
  646. end
  647. end
  648. % Executes on slider movement.
  649. function Tptsldr3_Callback(hObject, eventdata, handles)
  650. % hObject handle to Tptsldr3 (see GCBO)
  651. global Exp
  652. expN=3;
  653. input=floor(get(hObject,'value'));
  654. display(input)
  655. set(handles.Tpted3,'string',num2str(floor(input)))
  656. prntHt=0;
  657. EZVimDisplay
  658. end
  659. % Executes during object creation, after setting all properties.
  660. %{
  661. function Tptsldr3_CreateFcn(hObject, eventdata, handles)
  662. % hObject handle to Tptsldr3 (see GCBO)
  663. if isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
  664. set(hObject,'BackgroundColor',[.9 .9 .9]);
  665. end
  666. end
  667. %}
  668. function Tpted3_Callback(hObject, eventdata, handles)
  669. % hObject handle to Tpted3 (see GCBO)
  670. global Exp
  671. expN=3;
  672. input=get(hObject,'String')
  673. Max=floor(get(handles.Tptsldr3,'max'));
  674. Min=floor(get(handles.Tptsldr3,'min'));
  675. if str2double(input) >=Min && str2double(input) <=Max
  676. display(input)
  677. set(handles.Tptsldr3,'value',str2double(input))
  678. else
  679. if str2num(input) >=Max, set(handles.Tptsldr3,'value',Max); set(handles.Tpted3,'string',num2str(Max));end
  680. if str2num(input) <=Min, set(handles.Tptsldr3,'value',Min),set(handles.Tpted3,'string',num2str(Min));end
  681. end
  682. EZVimDisplay
  683. end
  684. % Executes during object creation, after setting all properties.
  685. function Tpted3_CreateFcn(hObject, eventdata, handles)
  686. % hObject handle to Tpted3 (see GCBO)
  687. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
  688. set(hObject,'BackgroundColor','white');
  689. end
  690. end
  691. % Executes on button press in expSelPB3.
  692. function expSelPB3_Callback(hObject, eventdata, handles)
  693. % hObject handle to expSelPB3 (see GCBO)
  694. global Exp
  695. expN=3;
  696. prntHt=0;
  697. EZexpSel
  698. end
  699. % Executes on button press in rotPB3.
  700. function rotPB3_Callback(hObject, eventdata, handles)
  701. % hObject handle to rotPB3 (see GCBO)
  702. % eventdata reserved - to be defined in a future version of MATLAB
  703. % handles structure with handles and user data (see GUIDATA)
  704. global ghandles
  705. ghandles=handles;
  706. end
  707. % Executes on button press in clrOlay3.
  708. function clrOlay3_Callback(hObject, eventdata, handles)
  709. % hObject handle to clrOlay3 (see GCBO)
  710. global ghandles
  711. global Exp
  712. set(ghandles.OLay3,'string',{''})
  713. set(ghandles.OLexp3,'string',{''})
  714. cla(ghandles.OLaxes3);
  715. Exp(3).traceN=0;
  716. %Exp(3).cTraceN=0;
  717. Exp(3).hOL =[]; Exp(3).hOLb=[];
  718. Exp(3).hOLname={}; Exp(3).hOLexpNm={}; Exp(3).hOLresDir={}
  719. Exp(3).hOLplateNum=[];
  720. Exp(3).hOLresDir={};
  721. cla(ghandles.Dlaxes3); cla(ghandles.Dkaxes3); cla(ghandles.Draxes3);
  722. cla(ghandles.DNLaxes3);% 2016_0222
  723. Exp(3).hL =[]; Exp(3).hLb=[];
  724. Exp(3).hLRF1=[]; Exp(3).hLRF2=[];
  725. Exp(3).hK =[]; Exp(3).hKb=[];
  726. Exp(3).hKRF1=[]; Exp(3).hKRF2=[];
  727. Exp(3).hr =[]; Exp(3).hrb=[];
  728. Exp(3).rRF1=[]; Exp(3).hrRF2=[];
  729. % Reset Composite Overlay plot to initialization values
  730. Exp(3).cTraceN=1;
  731. Exp(3).ll=[]; Exp(3).rr=[]; Exp(3).kk=[];
  732. Exp(3).cLmean=[]; Exp(3).cRmean=[]; Exp(3).cKmean=[];
  733. Exp(3).cTraceIndx=1;
  734. Exp(3).hCmean=[];
  735. Exp(3).hBound1=[];
  736. Exp(3).hBound2=[];
  737. Exp(3).CompositPlot=0;
  738. Exp(3).Trace=[]; % added for Trend BoxPlot data 17_1114
  739. % set(handles.expName3,'string',char(Exp(expN).resDir));
  740. end
  741. % Executes during object creation, after setting all properties.
  742. function Paxes1_CreateFcn(hObject, eventdata, handles)
  743. % hObject handle to Paxes1 (see GCBO)
  744. end
  745. % Executes on selection change in listboxGnOrf.
  746. function listboxGnOrf_Callback(hObject, eventdata, handles)
  747. global Exp
  748. global ghandles
  749. global zonePB
  750. % orfLstSel=0;
  751. datacursormode off;
  752. zoneSel=1;
  753. %{
  754. if get(handles.zonePB1,'value')==1,
  755. zoneSel=1;
  756. elseif get(handles.zonePB2,'value')==1,
  757. zoneSel=2;
  758. elseif get(handles.zonePB3,'value')==1
  759. zoneSel=3;
  760. end
  761. %}
  762. zoneSel=zonePB
  763. orfLstSel=get(handles.GeneOrfTog,'value')
  764. % zoneSel=get(handles.zonePB1,'value')
  765. expN=zoneSel;
  766. OLay=zoneSel;
  767. usrInxSel=get(hObject,'Value');
  768. % selGnOrf=Exp(zoneSel).Dexp(DexpN).srtGnLst(usrInxSel); %selGnOrf=Exp(zoneSel).srtGnLst(usrInxSel);
  769. listboxGnOrf=get(handles.listboxGnOrf,'string');
  770. selGnOrf=listboxGnOrf(usrInxSel);
  771. tempLB=str2mat(selGnOrf)
  772. if isequal(tempLB(4:6),'cmp')||isequal(tempLB(3:6),'cmpG')
  773. lstBoxCmpFlg=1;
  774. EZlstBoxCmpExt %Added for RF composite behavior 17_1010
  775. else
  776. LBdlims=strfind(selGnOrf,':')
  777. LBmp=str2num(selGnOrf{1}((LBdlims{:,:}(1))+1:(LBdlims{:,:}(2))-1))
  778. LBr=str2num(selGnOrf{1}((LBdlims{:,:}(2))+1:(LBdlims{:,:}(3))-1))
  779. LBc=str2num(selGnOrf{1}((LBdlims{:,:}(3))+1:end))
  780. lstBoxCmpFlg=0;
  781. EZlstBoxExt
  782. end
  783. datacursormode on;
  784. end
  785. % Executes during object creation, after setting all properties.
  786. function listboxGnOrf_CreateFcn(hObject, eventdata, handles)
  787. % hObject handle to listboxGnOrf (see GCBO)
  788. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
  789. set(hObject,'BackgroundColor','white');
  790. end
  791. end
  792. % Executes on button press in GeneOrfTog.
  793. function GeneOrfTog_Callback(hObject, eventdata, handles)
  794. global Exp
  795. orfLstSel=get(hObject,'value')
  796. %zoneSel=get(handles.zonePB1,'value')
  797. zoneSel=1;
  798. if get(handles.zonePB1,'value')==1,
  799. zoneSel=1;
  800. elseif get(handles.zonePB2,'value')==1,
  801. zoneSel=2;
  802. elseif get(handles.zonePB3,'value')==1
  803. zoneSel=3;
  804. end
  805. orfLstSel=get(handles.GeneOrfTog,'value');
  806. %zoneSel=get(handles.zonePB1,'value')
  807. expN=zoneSel;
  808. if zoneSel==1,DexpN=(get(handles.DN1,'value')); cmpTog=get(handles.CompositeTog1,'value'); end
  809. if zoneSel==2,DexpN=(get(handles.DN2,'value')); cmpTog=get(handles.CompositeTog2,'value'); end
  810. if zoneSel==3,DexpN=(get(handles.DN3,'value')); cmpTog=get(handles.CompositeTog3,'value'); end
  811. if orfLstSel==1 && cmpTog~=1
  812. set(handles.listboxGnOrf,'value',1)
  813. set(handles.listboxGnOrf,'string',Exp(zoneSel).Dexp(DexpN).srtOrfLst) %set(handles.listboxGnOrf,'string',Exp(zoneSel).srtOrfLst)
  814. else
  815. set(handles.listboxGnOrf,'value',1)
  816. set(handles.listboxGnOrf,'string',Exp(zoneSel).Dexp(DexpN).srtGnLst) %set(handles.listboxGnOrf,'string',Exp(zoneSel).srtGnLst)
  817. end
  818. end
  819. % Executes on button press in InfoToggle.
  820. function InfoToggle_Callback(hObject, eventdata, handles)
  821. % --- Executes on button press in zonePB1.
  822. end
  823. % Executes on button press in semiLog.
  824. function semiLog_Callback(hObject, eventdata, handles)
  825. global Exp
  826. semiLog=get(handles.semiLog,'value')
  827. if semiLog==1
  828. set(handles.semiLog,'BackgroundColor',[1.0 0.6 0.6])
  829. set(handles.semiLog,'ForegroundColor',[1.0 0.0, 0.0])
  830. set(handles.Paxes1,'YScale','log')
  831. set(handles.Paxes2,'YScale','log')
  832. set(handles.Paxes3,'YScale','log')
  833. set(handles.OLaxes1,'YScale','log')
  834. set(handles.OLaxes2,'YScale','log')
  835. set(handles.OLaxes3,'YScale','log')
  836. else
  837. set(handles.semiLog,'BackgroundColor',[1.0 0.8, 0.8])
  838. set(handles.semiLog,'ForegroundColor',[0.0 0.0, 0.0])
  839. set(handles.Paxes1,'YScale','linear')
  840. set(handles.Paxes2,'YScale','linear')
  841. set(handles.Paxes3,'YScale','linear')
  842. set(handles.OLaxes1,'YScale','linear')
  843. set(handles.OLaxes2,'YScale','linear')
  844. set(handles.OLaxes3,'YScale','linear')
  845. end
  846. end
  847. % Executes on button press in spotTog.
  848. function spotTog_Callback(hObject, eventdata, handles)
  849. % Hint: get(hObject,'Value') returns toggle state of spotTog
  850. global Exp
  851. global ghandles
  852. spotTog=get(handles.spotTog,'value');
  853. ghandles=handles
  854. if spotTog==1
  855. set(handles.spotTog,'BackgroundColor',[0.0 0.75 0.75])
  856. set(handles.spotTog,'ForegroundColor',[0.0 0.0, 0.0])
  857. else
  858. set(handles.spotTog,'BackgroundColor',[.941 0.941, 0.941])
  859. set(handles.spotTog,'ForegroundColor',[0.0 0.0, 0.0])
  860. end
  861. end
  862. function quickView_Callback(hObject, eventdata, handles) %function quickView_Callback(hObject, eventdata, handles)
  863. % hObject handle to quickView (see GCBO)
  864. % eventdata reserved - to be defined in a future version of MATLAB
  865. % handles structure with handles and user data (see GUIDATA)
  866. global Exp
  867. try
  868. QkVexps % Quickview
  869. catch
  870. end
  871. end
  872. % Executes on button press in printOL1.
  873. function printOL1_Callback(hObject, eventdata, handles)
  874. % hObject handle to printOL1 (see GCBO)
  875. % eventdata reserved - to be defined in a future version of MATLAB
  876. % handles structure with handles and user data (see GUIDATA)
  877. % If Enable =='on', executes on mouse press in 5 pixel border.
  878. % Otherwise, executes on mouse press in 5 pixel border or over printol1.
  879. global Exp
  880. global ghandles
  881. ads1=0
  882. EZvFigPrint
  883. set(handles.printOL1,'value',0)
  884. end
  885. %{
  886. function printOL1_ButtonDownFcn(hObject, eventdata, handles)
  887. % hObject handle to printol1 (see GCBO)
  888. % eventdata reserved - to be defined in a future version of MATLAB
  889. % handles structure with handles and user data (see GUIDATA)
  890. ads1=1
  891. end
  892. % Executes on key press with focus on printOL1 and none of its controls.
  893. function printOL1_KeyPressFcn(hObject, eventdata, handles)
  894. % hObject handle to printOL1 (see GCBO)
  895. % eventdata structure with the following fields (see UICONTROL)
  896. % Key: name of the key that was pressed, in lower case
  897. % Character: character interpretation of the key(s) that was pressed
  898. % Modifier: name(s) of the modifier key(s) (i.e., control, shift) pressed
  899. % handles structure with handles and user data (see GUIDATA)
  900. ads1=2
  901. end
  902. %}
  903. % Executes on button press in printOL2.
  904. function printOL2_Callback(hObject, eventdata, handles)
  905. % hObject handle to printOL2 (see GCBO)
  906. % eventdata reserved - to be defined in a future version of MATLAB
  907. % handles structure with handles and user data (see GUIDATA)
  908. global Exp
  909. global ghandles
  910. ads1=0
  911. EZvFigPrint
  912. set(handles.printOL2,'value',0)
  913. end
  914. % Executes on key press with focus on printOL2 and none of its controls.
  915. %{
  916. function printOL2_KeyPressFcn(hObject, eventdata, handles)
  917. % hObject handle to printOL2 (see GCBO)
  918. % eventdata structure with the following fields (see UICONTROL)
  919. % Key: name of the key that was pressed, in lower case
  920. % Character: character interpretation of the key(s) that was pressed
  921. % Modifier: name(s) of the modifier key(s) (i.e., control, shift) pressed
  922. % handles structure with handles and user data (see GUIDATA)
  923. % --- If Enable =='on', executes on mouse press in 5 pixel border.
  924. % --- Otherwise, executes on mouse press in 5 pixel border or over printOL2.
  925. ads2=1
  926. end
  927. function printOL2_ButtonDownFcn(hObject, eventdata, handles)
  928. % hObject handle to printOL2 (see GCBO)
  929. % eventdata reserved - to be defined in a future version of MATLAB
  930. % handles structure with handles and user data (see GUIDATA)
  931. ads2=2
  932. end
  933. %}
  934. % Executes on button press in printOL3.
  935. function printOL3_Callback(hObject, eventdata, handles)
  936. % hObject handle to printOL3 (see GCBO)
  937. % eventdata reserved - to be defined in a future version of MATLAB
  938. % handles structure with handles and user data (see GUIDATA)
  939. global Exp
  940. global ghandles
  941. ads1=0
  942. EZvFigPrint
  943. set(handles.printOL3,'value',0)
  944. end
  945. % Executes on key press with focus on printOL3 and none of its controls.
  946. %{
  947. function printOL3_KeyPressFcn(hObject, eventdata, handles)
  948. % hObject handle to printOL3 (see GCBO)
  949. % eventdata structure with the following fields (see UICONTROL)
  950. % Key: name of the key that was pressed, in lower case
  951. % Character: character interpretation of the key(s) that was pressed
  952. % Modifier: name(s) of the modifier key(s) (i.e., control, shift) pressed
  953. % handles structure with handles and user data (see GUIDATA)
  954. % --- If Enable =='on', executes on mouse press in 5 pixel border.
  955. % --- Otherwise, executes on mouse press in 5 pixel border or over printOL3.
  956. ads3=1
  957. end
  958. function printOL3_ButtonDownFcn(hObject, eventdata, handles)
  959. % hObject handle to printOL3 (see GCBO)
  960. % eventdata reserved - to be defined in a future version of MATLAB
  961. % handles structure with handles and user data (see GUIDATA)
  962. % --- Executes on mouse press over figure background, over a disabled or
  963. % --- inactive control, or over an axes background.
  964. ads3=2
  965. end
  966. %}
  967. function figure1_WindowButtonDownFcn(hObject, eventdata, handles)
  968. % hObject handle to figure1 (see GCBO)
  969. % eventdata reserved - to be defined in a future version of MATLAB
  970. % handles structure with handles and user data (see GUIDATA)
  971. htargetAxes=gca;
  972. cpos=get(gca,'Position')
  973. if handles.Iaxes1==gca||...
  974. handles.Iaxes2==gca||...
  975. handles.Iaxes3==gca||...
  976. handles.OLaxes1==gca||...
  977. handles.OLaxes2==gca||...
  978. handles.OLaxes3==gca,
  979. EZvDatatip
  980. end
  981. end
  982. % Executes on mouse press over figure background, over a disabled or
  983. % inactive control, or over an axes background.
  984. function figure1_WindowButtonUpFcn(hObject, eventdata, handles)
  985. % hObject handle to figure1 (see GCBO)
  986. % eventdata reserved - to be defined in a future version of MATLAB
  987. % handles structure with handles and user data (see GUIDATA)
  988. end
  989. function Tools_Callback(hObject, eventdata, handles)
  990. % hObject handle to Tools (see GCBO)
  991. % eventdata reserved - to be defined in a future version of MATLAB
  992. % handles structure with handles and user data (see GUIDATA)
  993. end
  994. function Parameters_Callback(hObject, eventdata, handles)
  995. % hObject handle to Parameters (see GCBO)
  996. % eventdata reserved - to be defined in a future version of MATLAB
  997. % handles structure with handles and user data (see GUIDATA)
  998. end
  999. function PrintFont_Callback(hObject, eventdata, handles)
  1000. % hObject handle to PrintFont (see GCBO)
  1001. % eventdata reserved - to be defined in a future version of MATLAB
  1002. % handles structure with handles and user data (see GUIDATA)
  1003. global Exp
  1004. global ghandles
  1005. prompt={...
  1006. 'Enter Linewidth for plot:',...
  1007. 'Enter Axis Font Size:',...
  1008. 'Enter Legend Font Size:',...
  1009. 'Enter Marker Font Size:'};
  1010. name='Input Size Parameters for Printable Graphic';
  1011. numlines=1;
  1012. try
  1013. if ~isempty(Exp(4).plotPars)
  1014. default=Exp(4).plotPars;
  1015. else
  1016. default={'4','36','10','5'};
  1017. end
  1018. catch
  1019. default={'4','36','10','5'};
  1020. end
  1021. answer=inputdlg(prompt,name,numlines,default)
  1022. if ~isempty(answer)
  1023. Exp(4).plotPars=answer;
  1024. %{
  1025. else
  1026. default={'4','36','10','5'};
  1027. Exp(4).plotPars=default;
  1028. %}
  1029. end
  1030. end
  1031. % Executes on button press in LKrTog1.
  1032. function LKrTog1_Callback(hObject, eventdata, handles)
  1033. global Exp
  1034. expN=1;
  1035. EZfigTrendOL
  1036. end
  1037. % Executes on button press in LKrTog2.
  1038. function LKrTog2_Callback(hObject, eventdata, handles)
  1039. global Exp
  1040. expN=2;
  1041. EZfigTrendOL
  1042. end
  1043. % Executes on button press in LKrTog3.
  1044. function LKrTog3_Callback(hObject, eventdata, handles)
  1045. global Exp
  1046. expN=3;
  1047. EZfigTrendOL
  1048. end
  1049. % Executes on button press in rawNorm.
  1050. function rawNorm_Callback(hObject, eventdata, handles)
  1051. global Exp
  1052. global ghandles
  1053. traceN1=Exp(1).traceN;
  1054. traceN2=Exp(2).traceN;
  1055. traceN3=Exp(3).traceN;
  1056. selTrace1=Exp(1).seltraceN;
  1057. selTrace2=Exp(2).seltraceN;
  1058. selTrace3=Exp(3).seltraceN;
  1059. dispAlg=get(handles.rawNorm,'value')
  1060. Exp(4).interacPBsel=Exp(4).interacPBsel+1;
  1061. if Exp(4).interacPBsel ==2, Exp(4).interacPBsel=0; end
  1062. %set(handles.rawNorm,'value',Exp(4).interacPBsel)
  1063. if Exp(4).interacPBsel ==1
  1064. set(handles.rawNorm,'string','N1');
  1065. elseif Exp(4).interacPBsel ==2
  1066. set(handles.rawNorm,'string','N2');
  1067. else
  1068. set(handles.rawNorm,'string','R');
  1069. end
  1070. if Exp(4).interacPBsel==0
  1071. set(ghandles.Dlaxes1,'Visible','on');set(ghandles.Dlaxes2,'Visible','on'); set(ghandles.Dlaxes3,'Visible','on')
  1072. set(ghandles.DNLaxes1,'Visible','off'); set(ghandles.DNLaxes2,'Visible','off'); set(ghandles.DNLaxes3,'Visible','off')
  1073. for i=1:3
  1074. Exp(i).expLoadCnt
  1075. try
  1076. set(Exp(i).hzeroCLn(1),'visible','off');
  1077. catch ME
  1078. ME.message
  1079. end
  1080. end
  1081. %{
  1082. try set(Exp(1).hzeroCLn,'visible','off');
  1083. catch ME, ME.message,
  1084. try plot(handles.DNLaxes1,zeros(1,Exp(1).destPerMP),1:Exp(1).destPerMP,'w'); catch end
  1085. end %
  1086. try set(Exp(2).hzeroCLn,'visible','off');
  1087. catch ME, ME.message,
  1088. try plot(handles.DNLaxes2,zeros(1,Exp(2).destPerMP),1:Exp(2).destPerMP,'w'); catch end
  1089. end %
  1090. try set(Exp(3).hzeroCLn,'visible','off');
  1091. catch ME, ME.message,
  1092. try plot(handles.DNLaxes3,zeros(1,Exp(3).destPerMP),1:Exp(3).destPerMP,'w'); catch end
  1093. end %
  1094. %}
  1095. for n=1:traceN1
  1096. try
  1097. set(Exp(1).hintL(n),'visible','off');
  1098. set(Exp(1).hintLb(n),'visible','off')
  1099. catch
  1100. end
  1101. try
  1102. set(Exp(1).hintLadj(n),'visible','off');
  1103. set(Exp(1).hintLadjb(n),'visible','off');
  1104. catch
  1105. end
  1106. try set(Exp(1).hLRF1(n),'visible','off')
  1107. set(Exp(1).hLRF2(n),'visible','off')
  1108. catch
  1109. end
  1110. try set(Exp(1).hL(n),'visible','off');
  1111. set(Exp(1).hLb(n),'visible','off');
  1112. catch
  1113. end
  1114. end
  1115. try set(Exp(1).hLRF1(selTrace1),'visible','on');
  1116. set(Exp(1).hLRF2(selTrace1),'visible','on')
  1117. catch
  1118. end
  1119. try set(Exp(1).hL(selTrace1),'visible','on')
  1120. set(Exp(1).hLb(selTrace1),'visible','on')
  1121. catch
  1122. end
  1123. for n=1:traceN2
  1124. try
  1125. set(Exp(2).hintL(n),'visible','off');
  1126. set(Exp(2).hintLb(n),'visible','off');
  1127. catch
  1128. end
  1129. try
  1130. set(Exp(2).hintLadj(n),'visible','off');
  1131. set(Exp(2).hintLadjb(n),'visible','off');
  1132. catch
  1133. end
  1134. try
  1135. set(Exp(2).hLRF1(n),'visible','off');
  1136. set(Exp(2).hLRF2(n),'visible','off');
  1137. catch
  1138. end
  1139. try
  1140. set(Exp(2).hL(n),'visible','off');
  1141. set(Exp(2).hLb(n),'visible','off');
  1142. catch
  1143. end
  1144. end
  1145. try
  1146. set(Exp(2).hLRF1(selTrace2),'visible','on');
  1147. set(Exp(2).hLRF2(selTrace2),'visible','on');
  1148. catch
  1149. end
  1150. try set(Exp(2).hL(selTrace2),'visible','on');
  1151. set(Exp(2).hLb(selTrace2),'visible','on');
  1152. catch
  1153. end
  1154. for n=1:traceN3
  1155. try
  1156. set(Exp(3).hintL(n),'visible','off');
  1157. set(Exp(3).hintLb(n),'visible','off');
  1158. catch
  1159. end
  1160. try
  1161. set(Exp(3).hintLadj(n),'visible','off');
  1162. set(Exp(3).hintLadjb(n),'visible','off');
  1163. catch
  1164. end
  1165. try
  1166. set(Exp(3).hLRF1(n),'visible','off');
  1167. set(Exp(3).hLRF2(n),'visible','off');
  1168. catch
  1169. end
  1170. try
  1171. set(Exp(3).hL(n),'visible','off');
  1172. set(Exp(3).hLb(n),'visible','off');
  1173. catch
  1174. end
  1175. end
  1176. try
  1177. set(Exp(3).hLRF1(selTrace3),'visible','on');
  1178. set(Exp(3).hLRF2(selTrace3),'visible','on');
  1179. catch
  1180. end
  1181. try
  1182. set(Exp(3).hL(selTrace3),'visible','on');
  1183. set(Exp(3).hLb(selTrace3),'visible','on');
  1184. catch
  1185. end
  1186. elseif Exp(4).interacPBsel==1
  1187. set(ghandles.Dlaxes1,'Visible','off'); set(ghandles.Dlaxes2,'Visible','off'); set(ghandles.Dlaxes3,'Visible','off');
  1188. set(ghandles.DNLaxes1,'Visible','on'); set(ghandles.DNLaxes2,'Visible','on'); set(ghandles.DNLaxes3,'Visible','on');
  1189. %{
  1190. try plot(handles.DNLaxes1,zeros(1,Exp(1).destPerMP),1:Exp(1).destPerMP,'y'); catch ME, ME.message, end %set(Exp(1).hzeroCLn,'visible','off');
  1191. try plot(handles.DNLaxes2,zeros(1,Exp(2).destPerMP),1:Exp(2).destPerMP,'y'); catch ME, ME.message, end %set(Exp(2).hzeroCLn,'visible','off');
  1192. try plot(handles.DNLaxes3,zeros(1,Exp(3).destPerMP),1:Exp(3).destPerMP,'y'); catch ME, ME.message, end %set(Exp(3).hzeroCLn,'visible','off');
  1193. %}
  1194. for i=1:Exp(1).expLoadCnt,try set(Exp(1).hzeroCLn(i),'visible','on'); catch ME, ME.message, end, end
  1195. for i=1:Exp(2).expLoadCnt,try set(Exp(2).hzeroCLn(i),'visible','on'); catch ME, ME.message, end, end
  1196. for i=1:Exp(3).expLoadCnt,try set(Exp(3).hzeroCLn(i),'visible','on'); catch ME, ME.message, end, end
  1197. for n=1:traceN1
  1198. try set(Exp(1).hLRF1(n),'visible','off'); set(Exp(1).hLRF2(n),'visible','off'); catch, end
  1199. try set(Exp(1).hL(n),'visible','off'); set(Exp(1).hLb(n),'visible','off'); catch, end
  1200. try set(Exp(1).hintL(n),'visible','off'); set(Exp(1).hintLb(n),'visible','off'); catch, end
  1201. try set(Exp(1).hintLadj(n),'visible','off'); set(Exp(1).hintLadjb(n),'visible','off'); catch, end
  1202. end
  1203. try set(Exp(1).hintL(selTrace1),'visible','on'); set(Exp(1).hintLb(selTrace1),'visible','on'); catch, end
  1204. try set(Exp(1).hintLadj(selTrace1),'visible','on'); set(Exp(1).hintLadjb(selTrace1),'visible','on'); catch, end
  1205. for n=1:traceN2
  1206. try set(Exp(2).hLRF1(n),'visible','off'); set(Exp(2).hLRF2(n),'visible','off'); catch, end
  1207. try set(Exp(2).hL(n),'visible','off'); set(Exp(2).hLb(n),'visible','off'); catch, end
  1208. try set(Exp(2).hintL(n),'visible','off'); set(Exp(2).hintLb(n),'visible','off'); catch, end
  1209. try set(Exp(2).hintLadj(n),'visible','off'); set(Exp(2).hintLadjb(n),'visible','off'); catch, end
  1210. end
  1211. try set(Exp(2).hintL(selTrace2),'visible','on'); set(Exp(2).hintLb(selTrace2),'visible','on'); catch, end
  1212. try set(Exp(2).hintLadj(selTrace2),'visible','on'); set(Exp(2).hintLadjb(selTrace2),'visible','on'); catch, end
  1213. for n=1:traceN3
  1214. try set(Exp(3).hLRF1(n),'visible','off'); set(Exp(3).hLRF2(n),'visible','off'); catch, end
  1215. try set(Exp(3).hL(n),'visible','off'); set(Exp(3).hLb(n),'visible','off'); catch, end
  1216. try set(Exp(3).hintL(n),'visible','off'); set(Exp(3).hintLb(n),'visible','off'); catch, end
  1217. try set(Exp(3).hintLadj(n),'visible','off'); set(Exp(3).hintLadjb(n),'visible','off'); catch, end
  1218. end
  1219. try set(Exp(3).hintL(selTrace3),'visible','on'); set(Exp(3).hintLb(selTrace3),'visible','on'); catch, end
  1220. try set(Exp(3).hintLadj(selTrace3),'visible','on'); set(Exp(3).hintLadjb(selTrace3),'visible','on'); catch, end
  1221. elseif Exp(4).interacPBsel==2
  1222. % set(ghandles.DNLaxes1,'Visible','off')
  1223. end
  1224. end
  1225. % hObject handle to rawNorm (see GCBO)
  1226. % eventdata reserved - to be defined in a future version of MATLAB
  1227. % handles structure with handles and user data (see GUIDATA)
  1228. % Hint: get(hObject,'Value') returns toggle state of rawNorm
  1229. % Executes on button press in InteracTog1.
  1230. function InteracTog1_Callback(hObject, eventdata, handles)
  1231. global Exp
  1232. global ghandles
  1233. expN=1;
  1234. if strcmp(Exp(expN).DexpType,'single')|| strcmp(Exp(expN).DexpType,'multi')
  1235. EZinteractDev4
  1236. elseif strcmp(Exp(expN).DexpType,'chrono')
  1237. EZinteractDev5
  1238. end
  1239. end
  1240. % Hint: get(hObject,'Value') returns toggle state of InteracTog1
  1241. % Executes on button press in InteracTog2.
  1242. function InteracTog2_Callback(hObject, eventdata, handles)
  1243. global Exp
  1244. global ghandles
  1245. expN=2;
  1246. if strcmp(Exp(expN).DexpType,'single')|| strcmp(Exp(expN).DexpType,'multi')
  1247. EZinteractDev4
  1248. elseif strcmp(Exp(expN).DexpType,'chrono')
  1249. EZinteractDev5
  1250. end
  1251. end
  1252. % Hint: get(hObject,'Value') returns toggle state of InteracTog2
  1253. % Executes on button press in InteracTog3.
  1254. function InteracTog3_Callback(hObject, eventdata, handles)
  1255. global Exp
  1256. global ghandles
  1257. expN=3;
  1258. if strcmp(Exp(expN).DexpType,'single')|| strcmp(Exp(expN).DexpType,'multi')
  1259. EZinteractDev4
  1260. elseif strcmp(Exp(expN).DexpType,'chrono')
  1261. EZinteractDev5
  1262. end
  1263. end
  1264. % Executes on key press with focus on rawNorm and none of its controls.
  1265. function rawNorm_KeyPressFcn(hObject, eventdata, handles)
  1266. % hObject handle to rawNorm (see GCBO)
  1267. % eventdata structure with the following fields (see UICONTROL)
  1268. % Key: name of the key that was pressed, in lower case
  1269. % Character: character interpretation of the key(s) that was pressed
  1270. % Modifier: name(s) of the modifier key(s) (i.e., control, shift) pressed
  1271. % handles structure with handles and user data (see GUIDATA)
  1272. end
  1273. % --- Executes on button press in HtMapTog1.
  1274. function HtMapTog1_Callback(hObject, eventdata, handles)
  1275. global Exp
  1276. global ghandles
  1277. prntHt=0;
  1278. DexpN=Exp(1).DexpN;
  1279. resetTg=Exp(1).Dexp(DexpN).resetHtmpTg;
  1280. expN=1;
  1281. Exp(1).htmapPBsel=Exp(1).htmapPBsel+1;
  1282. if Exp(1).htmapPBsel==resetTg, Exp(1).htmapPBsel=0; end
  1283. if Exp(1).htmapPBsel==3, set(handles.HtMapTog1,'string','N1')
  1284. elseif Exp(1).htmapPBsel==4, set(handles.HtMapTog1,'string','N2')
  1285. elseif Exp(1).htmapPBsel==1, set(handles.HtMapTog1,'string','K')
  1286. elseif Exp(1).htmapPBsel==2, set(handles.HtMapTog1,'string','R')
  1287. else set(handles.HtMapTog1,'string','L'),
  1288. end
  1289. htMapTogPBfg=1;
  1290. EZhtMap
  1291. htMapTogPBfg=0;
  1292. end
  1293. % Executes on button press in HtMapTog2.
  1294. function HtMapTog2_Callback(hObject, eventdata, handles)
  1295. global Exp
  1296. global ghandles
  1297. prntHt=0;
  1298. expN=2;
  1299. DexpN=Exp(2).DexpN;
  1300. resetTg=Exp(2).Dexp(DexpN).resetHtmpTg;
  1301. Exp(2).htmapPBsel=Exp(2).htmapPBsel+1;
  1302. if Exp(2).htmapPBsel==resetTg, Exp(2).htmapPBsel=0; end
  1303. if Exp(2).htmapPBsel==3, set(handles.HtMapTog2,'string','N1')
  1304. elseif Exp(2).htmapPBsel==4, set(handles.HtMapTog2,'string','N2')
  1305. elseif Exp(2).htmapPBsel==1, set(handles.HtMapTog2,'string','K')
  1306. elseif Exp(2).htmapPBsel==2, set(handles.HtMapTog2,'string','R')
  1307. else set(handles.HtMapTog2,'string','L'),
  1308. end
  1309. htMapTogPBfg=1;
  1310. EZhtMap
  1311. htMapTogPBfg=0;
  1312. end
  1313. %Executes on button press in HtMapTog3.
  1314. function HtMapTog3_Callback(hObject, eventdata, handles)
  1315. global Exp
  1316. global ghandles
  1317. prntHt=0;
  1318. expN=3;
  1319. DexpN=Exp(3).DexpN;
  1320. resetTg=Exp(3).Dexp(DexpN).resetHtmpTg;
  1321. Exp(3).htmapPBsel=Exp(3).htmapPBsel+1;
  1322. if Exp(3).htmapPBsel==resetTg, Exp(3).htmapPBsel=0; end
  1323. if Exp(3).htmapPBsel==3, set(handles.HtMapTog3,'string','N1')
  1324. elseif Exp(3).htmapPBsel==4, set(handles.HtMapTog3,'string','N2')
  1325. elseif Exp(3).htmapPBsel==1, set(handles.HtMapTog3,'string','K')
  1326. elseif Exp(3).htmapPBsel==2, set(handles.HtMapTog3,'string','R')
  1327. else set(handles.HtMapTog3,'string','L'),
  1328. end
  1329. htMapTogPBfg=1;
  1330. EZhtMap
  1331. htMapTogPBfg=0;
  1332. end
  1333. % Deprecated functions
  1334. %{
  1335. %--- Executes on button press in semiLog.
  1336. function semiLog_Callback(hObject, eventdata, handles)
  1337. % hObject handle to semiLog (see GCBO)
  1338. % eventdata reserved - to be defined in a future version of MATLAB
  1339. % handles structure with handles and user data (see GUIDATA)
  1340. % Hint: get(hObject,'Value') returns toggle state of semiLog
  1341. %}
  1342. % --- Executes on key press with focus on listboxGnOrf and none of its controls.
  1343. %{
  1344. function listboxGnOrf_KeyPressFcn(hObject, eventdata, handles)
  1345. % hObject handle to listboxGnOrf (see GCBO)
  1346. % eventdata structure with the following fields (see UICONTROL)
  1347. % Key: name of the key that was pressed, in lower case
  1348. % Character: character interpretation of the key(s) that was pressed
  1349. % Modifier: name(s) of the modifier key(s) (i.e., control, shift) pressed
  1350. % handles structure with handles and user data (see GUIDATA)
  1351. x=eventdata
  1352. ck=get(gcf,'currentkey')
  1353. %}
  1354. %{
  1355. % Clear Trace selections for all zones
  1356. global Exp
  1357. global ghandles
  1358. set(ghandles.OLay1,'string',{' '})
  1359. set(ghandles.OLexp1,'string',{''})
  1360. cla(ghandles.OLaxes1)
  1361. Exp(1).traceN=0;
  1362. Exp(1).hOL =[]; Exp(1).hOLb=[];
  1363. Exp(1).hOLname={}; Exp(1).hOLexpNm={}; Exp(1).hOLresDir={}
  1364. Exp(1).hOLplateNum=[];
  1365. Exp(1).hOLresDir={};
  1366. set(ghandles.OLay2,'string',{''})
  1367. set(ghandles.OLexp2,'string',{''})
  1368. cla(ghandles.OLaxes2)
  1369. Exp(2).traceN=0;
  1370. Exp(2).hOL =[]; Exp(2).hOLb=[];
  1371. Exp(2).hOLname={}; Exp(2).hOLexpNm={}; Exp(2).hOLresDir={}
  1372. Exp(2).hOLplateNum=[];
  1373. Exp(2).hOLresDir={};
  1374. set(ghandles.OLay3,'string',{''})
  1375. set(ghandles.OLexp3,'string',{''})
  1376. cla(ghandles.OLaxes3);
  1377. Exp(3).traceN=0;
  1378. Exp(3).hOL =[]; Exp(3).hOLb=[];
  1379. Exp(3).hOLname={}; Exp(3).hOLexpNm={}; Exp(3).hOLresDir={}
  1380. Exp(3).hOLplateNum=[];
  1381. Exp(3).hOLresDir={};
  1382. %}
  1383. % hObject handle to quickView (see GCBO)
  1384. % eventdata reserved - to be defined in a future version of MATLAB
  1385. % handles structure with handles and user data (see GUIDATA)
  1386. % Executes on button press in RFtable1.
  1387. function RFtable1_Callback(hObject, eventdata, handles)
  1388. global Exp
  1389. global ghandles
  1390. expN=1;
  1391. DexpN=get(handles.DN1,'value');
  1392. EZtableRFdiag
  1393. end
  1394. % Executes on button press in RFtable2.
  1395. function RFtable2_Callback(hObject, eventdata, handles)
  1396. global Exp
  1397. global ghandles
  1398. expN=2;
  1399. DexpN=get(handles.DN2,'value');
  1400. EZtableRFdiag
  1401. end
  1402. % Executes on button press in RFtable3.
  1403. function RFtable3_Callback(hObject, eventdata, handles)
  1404. global Exp
  1405. global ghandles
  1406. expN=3;
  1407. DexpN=get(handles.DN3,'value');
  1408. EZtableRFdiag
  1409. end
  1410. function DN1_Callback(hObject, eventdata, handles)
  1411. % hObject handle to DN1 (see GCBO)
  1412. % eventdata reserved - to be defined in a future version of MATLAB
  1413. % str2double(get(hObject,'String')) returns contents of DN1 as a double
  1414. global Exp
  1415. expN=1;
  1416. input=get(hObject,'String');
  1417. Max=Exp(expN).DexpLength;
  1418. Min=0; %(get(handles.DN1,'min'));
  1419. if str2num(input) > Min && str2num(input) <=Max
  1420. display(input)
  1421. set(handles.DN1,'value',str2double(input));
  1422. else
  1423. if str2double(input) >=Max, set(handles.DN1,'value',Max); set(handles.DN1,'string',num2str(Max));end
  1424. if str2double(input) <=Min, set(handles.DN1,'value',Min),set(handles.DN1,'string',num2str(1));end
  1425. end
  1426. EZVimDisplay
  1427. end
  1428. % Executes during object creation, after setting all properties.
  1429. function DN1_CreateFcn(hObject, eventdata, handles)
  1430. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
  1431. set(hObject,'BackgroundColor','white');
  1432. end
  1433. end
  1434. function DN2_Callback(hObject, eventdata, handles)
  1435. global Exp
  1436. expN=2;
  1437. input=get(hObject,'String');
  1438. Max=Exp(expN).DexpLength;
  1439. Min=0; %(get(handles.DN1,'min'));
  1440. if str2num(input) > Min && str2num(input) <=Max
  1441. display(input)
  1442. set(handles.DN2,'value',str2double(input));
  1443. else
  1444. if str2double(input) >=Max, set(handles.DN2,'value',Max); set(handles.DN2,'string',num2str(Max));end
  1445. if str2double(input) <=Min, set(handles.DN2,'value',Min),set(handles.DN2,'string',num2str(1));end
  1446. end
  1447. EZVimDisplay
  1448. end
  1449. % Executes during object creation, after setting all properties.
  1450. function DN2_CreateFcn(hObject, eventdata, handles)
  1451. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
  1452. set(hObject,'BackgroundColor','white');
  1453. end
  1454. end
  1455. function DN3_Callback(hObject, eventdata, handles)
  1456. global Exp
  1457. expN=3;
  1458. input=get(hObject,'String');
  1459. Max=Exp(expN).DexpLength;
  1460. Min=0; % (get(handles.DN1,'min'));
  1461. if str2num(input) > Min && str2num(input) <=Max
  1462. display(input)
  1463. set(handles.DN3,'value',str2double(input));
  1464. else
  1465. if str2double(input) >=Max, set(handles.DN3,'value',Max); set(handles.DN3,'string',num2str(Max));end
  1466. if str2double(input) <=Min, set(handles.DN3,'value',Min),set(handles.DN3,'string',num2str(1));end
  1467. end
  1468. EZVimDisplay
  1469. end
  1470. % Executes during object creation, after setting all properties.
  1471. function DN3_CreateFcn(hObject, eventdata, handles)
  1472. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
  1473. set(hObject,'BackgroundColor','white');
  1474. end
  1475. end
  1476. % Executes on button press in CompositePB1.
  1477. function CompositePB1_Callback(hObject, eventdata, handles)
  1478. global Exp
  1479. global ghandles
  1480. expN=1;
  1481. DexpN=get(handles.DN1,'value');
  1482. EZcompositePlot
  1483. end
  1484. % Executes on button press in CompositePB2.
  1485. function CompositePB2_Callback(hObject, eventdata, handles)
  1486. global Exp
  1487. global ghandles
  1488. expN=2;
  1489. DexpN=get(handles.DN2,'value');
  1490. EZcompositePlot
  1491. end
  1492. % Executes on button press in CompositePB3.
  1493. function CompositePB3_Callback(hObject, eventdata, handles)
  1494. global Exp
  1495. global ghandles
  1496. expN=3;
  1497. DexpN=get(handles.DN3,'value');
  1498. EZcompositePlot
  1499. end
  1500. function SpotViewInterval_Callback(hObject, eventdata, handles)
  1501. % hObject handle to SpotViewInterval (see GCBO)
  1502. % eventdata reserved - to be defined in a future version of MATLAB
  1503. % handles structure with handles and user data (see GUIDATA)
  1504. global Exp
  1505. global ghandles
  1506. prompt={'Enter Image Interval for SpotView:'};
  1507. name='Input Image Interval for SpotView';
  1508. numlines=1
  1509. try
  1510. if ~isempty(Exp(4).SpotVIntervPar)
  1511. default=Exp(4).SpotVIntervPar;
  1512. else
  1513. default={'1'};
  1514. end
  1515. catch
  1516. default={'1'};
  1517. end
  1518. answer=inputdlg(prompt,name,numlines,default)
  1519. if ~isempty(answer)
  1520. Exp(4).SpotVintervPar=answer;
  1521. end
  1522. end
  1523. % Executes on button press in CompositeTog1.
  1524. function CompositeTog1_Callback(hObject, eventdata, handles)
  1525. global Exp
  1526. global ghandles
  1527. ghandles=handles;
  1528. expN=1;
  1529. DexpN=(get(handles.DN1,'value'));
  1530. %set(handles.zonePB1,'value',1)
  1531. %set(handles.zonePB2,'value',0)
  1532. %set(handles.zonePB3,'value',0)
  1533. if get(handles.zonePB1,'value')==1 && get(handles.CompositeTog1,'value')==1
  1534. set(handles.GeneOrfTog,'value',0)
  1535. set(handles.listboxGnOrf,'value',1)
  1536. set(handles.listboxGnOrf,'string',Exp(expN).Dexp(DexpN).srtGnLst)
  1537. set(handles.CompositeTog1,'BackgroundColor',[1.0 0.6 0.6])
  1538. set(handles.CompositeTog1,'ForegroundColor',[1.0 0.0, 0.0])
  1539. else
  1540. set(handles.CompositeTog1,'BackgroundColor',[1.0 0.8, 0.8])
  1541. set(handles.CompositeTog1,'ForegroundColor',[0.0 0.0, 0.0])
  1542. end
  1543. end
  1544. % Executes on button press in CompositeTog2.
  1545. function CompositeTog2_Callback(hObject, eventdata, handles)
  1546. global Exp
  1547. global ghandles
  1548. ghandles=handles;
  1549. expN=2;
  1550. DexpN=(get(handles.DN2,'value'));
  1551. %set(handles.zonePB1,'value',0)
  1552. %set(handles.zonePB2,'value',1)
  1553. %set(handles.zonePB3,'value',0)
  1554. if get(handles.zonePB2,'value')==1 && get(handles.CompositeTog2,'value')==1
  1555. set(handles.GeneOrfTog,'value',0)
  1556. set(handles.listboxGnOrf,'value',1)
  1557. set(handles.listboxGnOrf,'string',Exp(expN).Dexp(DexpN).srtGnLst)
  1558. set(handles.CompositeTog2,'BackgroundColor',[1.0 0.6 0.6])
  1559. set(handles.CompositeTog2,'ForegroundColor',[1.0 0.0, 0.0])
  1560. else
  1561. set(handles.CompositeTog2,'BackgroundColor',[1.0 0.8, 0.8])
  1562. set(handles.CompositeTog2,'ForegroundColor',[0.0 0.0, 0.0])
  1563. end
  1564. end
  1565. % Executes on button press in CompositeTog3.
  1566. function CompositeTog3_Callback(hObject, eventdata, handles)
  1567. global Exp
  1568. global ghandles
  1569. ghandles=handles;
  1570. expN=3;
  1571. DexpN=(get(handles.DN3,'value'));
  1572. %set(handles.zonePB1,'value',0)
  1573. %set(handles.zonePB2,'value',0)
  1574. %set(handles.zonePB3,'value',1)
  1575. if get(handles.zonePB3,'value')==1 && get(handles.CompositeTog3,'value')==1
  1576. set(handles.GeneOrfTog,'value',0)
  1577. set(handles.listboxGnOrf,'value',1)
  1578. set(handles.listboxGnOrf,'string',Exp(expN).Dexp(DexpN).srtGnLst)
  1579. set(handles.CompositeTog3,'BackgroundColor',[1.0 0.6 0.6])
  1580. set(handles.CompositeTog3,'ForegroundColor',[1.0 0.0, 0.0])
  1581. else
  1582. set(handles.CompositeTog3,'BackgroundColor',[1.0 0.8, 0.8])
  1583. set(handles.CompositeTog3,'ForegroundColor',[0.0 0.0, 0.0])
  1584. end
  1585. end
  1586. function TrendsBoxPlot_Callback(hObject, eventdata, handles)
  1587. global userPars
  1588. userPars.boxplotFlg=1;
  1589. prompt={...
  1590. 'Set "Outliers" On/Off:', ...
  1591. 'Set "Notch" On/Off:', ...
  1592. 'Enter "LabelShift" value[default=0.5]:', ...
  1593. 'Enter "Font Size [default=8:' ...
  1594. 'Enter "Label Angle" [default=45]' ...
  1595. 'Enter Upper K Limit value[typical=155]:'};
  1596. name='Box Plot Parameters';
  1597. numlines=1;
  1598. %defaultanswer={'on','on','0.3','8','45'};
  1599. defaultanswer=userPars.BPdefault;
  1600. answer=inputdlg(prompt,name,numlines,defaultanswer);
  1601. userPars.BPoutliers=answer(1);
  1602. userPars.BPnotch=answer(2);
  1603. userPars.BPlblShft=str2double(cell2mat(answer(3)));
  1604. userPars.BPfontSz=str2double(cell2mat(answer(4)));
  1605. userPars.BProt=str2double(cell2mat(answer(5)));
  1606. userPars.kfiltLim=str2double(cell2mat(answer(6)));
  1607. userPars.BPdefault=[answer(1),answer(2),answer(3),answer(4),answer(5),answer(6)];
  1608. userPars.Trenddefault=answer(6);
  1609. end
  1610. function TrendsOverlay_Callback(hObject, eventdata, handles)
  1611. global userPars
  1612. userPars.boxplotFlg=0;
  1613. prompt={'Enter Upper K Limit value[typical=155]:'};
  1614. name='Box Plot Parameters';
  1615. numlines=1;
  1616. % defaultanswer={'1000'};
  1617. % if ~exist('userPars.Trenddefault','var'), userPars.Trenddefault={'1000'}; end
  1618. defaultanswer=userPars.BPdefault(6)
  1619. % try
  1620. % defaultanswer=userPars.Trenddefault;
  1621. % catch
  1622. % userPars.Trenddefault={'1000'}
  1623. % defaultanswer=userPars.Trenddefault;
  1624. % end
  1625. answer=inputdlg(prompt,name,numlines,defaultanswer);
  1626. userPars.kfiltLim=str2double(cell2mat(answer(1)));
  1627. %userPars.Trenddefault=answer(1);
  1628. userPars.BPdefault(6)=answer(1);
  1629. end
  1630. % Executes on button press in printHt1.
  1631. function printHt1_Callback(hObject, eventdata, handles)
  1632. global Exp
  1633. global ghandles
  1634. DexpN=Exp(1).DexpN;
  1635. expN=1;
  1636. prntHt=1;
  1637. htMapTogPBfg=1;
  1638. EZhtMap
  1639. prntHt=0;
  1640. end
  1641. % Executes on button press in PrintHt2.
  1642. function PrintHt2_Callback(hObject, eventdata, handles)
  1643. global Exp
  1644. global ghandles
  1645. DexpN=Exp(2).DexpN;
  1646. expN=2;
  1647. prntHt=2;
  1648. htMapTogPBfg=2;
  1649. EZhtMap
  1650. prntHt=0;
  1651. end
  1652. % Executes on button press in PrintHt3.
  1653. function PrintHt3_Callback(hObject, eventdata, handles)
  1654. global Exp
  1655. global ghandles
  1656. DexpN=Exp(1).DexpN;
  1657. expN=3;
  1658. prntHt=3;
  1659. htMapTogPBfg=3;
  1660. EZhtMap
  1661. prntHt=0;
  1662. end
  1663. function HMapRange_Callback(hObject, eventdata, handles)
  1664. global Exp
  1665. global ghandles
  1666. global adj
  1667. global flip
  1668. prompt={'Enter Standard Deviation Multiplier value[typical=2.0]:'};
  1669. % prompt={'Enter Standard Deviation Multiplier value[typical=3.0]:','Colormap Flip[Typical=T]'};
  1670. name='Heatmap Adjustment range';
  1671. numlines=1;
  1672. defaultanswer={'2.0'};
  1673. % defaultanswer={'3.0','T'};
  1674. answer=inputdlg(prompt,name,numlines,defaultanswer);
  1675. adj=str2double(answer(1));
  1676. flip='T';
  1677. % flip=upper(answer(2));
  1678. end
  1679. function setScansDir_Callback(hObject, eventdata, handles)
  1680. % hObject handle to SetExpJobsFolder (see GCBO)
  1681. % eventdata reserved - to be defined in a future version of MATLAB
  1682. % handles structure with handles and user data (see GUIDATA
  1683. % if ~exist('scansDir','var')
  1684. scansDir=uigetdir('default','Set Project Scans Folder')
  1685. % end
  1686. end
  1687. % Executes on button press in zonePB1.
  1688. function zonePB1_Callback(hObject, eventdata, handles)
  1689. global Exp
  1690. global ghandles
  1691. global zonePB
  1692. % if get(handles.zonePB1,'value')==0, set(handles.zonePB1,'value',1); end
  1693. zonePB=1
  1694. set(handles.zonePB1,'value',1);
  1695. DexpN=get(handles.DN1,'value')
  1696. set(handles.zonePB2,'value',0)
  1697. set(handles.zonePB3,'value',0)
  1698. orfLstSel=get(handles.GeneOrfTog,'value')
  1699. if get(handles.GeneOrfTog,'value')==1
  1700. set(handles.listboxGnOrf,'string',Exp(1).Dexp(DexpN).srtOrfLst) % set(handles.listboxGnOrf,'string',Exp(1).srtOrfLst)
  1701. else
  1702. set(handles.listboxGnOrf,'string',Exp(1).Dexp(DexpN).srtGnLst) % set(handles.listboxGnOrf,'string',Exp(1).srtGnLst)
  1703. end
  1704. % switch background color to indicate zone selected 230815
  1705. if get(handles.zonePB1,'value')==1
  1706. set(handles.zonePB1,'BackgroundColor',[1.0 0.6 0.6])
  1707. set(handles.zonePB2,'BackgroundColor',[1.0 1.0 1.0])
  1708. set(handles.zonePB3,'BackgroundColor',[1.0 1.0 1.0])
  1709. end
  1710. if get(handles.zonePB1,'value')==1 && get(handles.CompositeTog1,'value')==1
  1711. set(handles.GeneOrfTog,'value',0);
  1712. set(handles.listboxGnOrf,'value',1);
  1713. set(handles.listboxGnOrf,'string',Exp(1).Dexp(DexpN).srtGnLst)
  1714. set(handles.CompositeTog1,'BackgroundColor',[1.0 0.6 0.6]);
  1715. set(handles.CompositeTog1,'ForegroundColor',[1.0 0.0, 0.0]);
  1716. set(handles.zonePB1,'BackgroundColor',[1.0 0.6 0.6]);
  1717. end
  1718. end
  1719. % Executes on button press in zonePB2
  1720. function zonePB2_Callback(hObject, eventdata, handles)
  1721. global Exp
  1722. global ghandles
  1723. global zonePB
  1724. zonePB=2
  1725. %if get(handles.zonePB2,'value')==0, set(handles.zonePB2,'value',1); end
  1726. set(handles.zonePB2,'value',1);
  1727. DexpN=get(handles.DN2,'value')
  1728. set(handles.zonePB1,'value',0);
  1729. set(handles.zonePB3,'value',0);
  1730. set(ghandles.zonePB2,'value',1);
  1731. set(ghandles.zonePB1,'value',0);
  1732. set(ghandles.zonePB3,'value',0);
  1733. orfLstSel=get(handles.GeneOrfTog,'value')
  1734. if orfLstSel==1
  1735. set(handles.listboxGnOrf,'string',Exp(2).Dexp(DexpN).srtOrfLst) %set(handles.listboxGnOrf,'string',Exp(2).srtOrfLst)
  1736. else
  1737. set(handles.listboxGnOrf,'string',Exp(2).Dexp(DexpN).srtGnLst) %set(handles.listboxGnOrf,'string',Exp(2).srtGnLst)
  1738. end
  1739. % switch background color to indicate zone selected 230815
  1740. if get(handles.zonePB2,'value')==1
  1741. set(handles.zonePB2,'BackgroundColor',[1.0 0.6 0.6])
  1742. set(handles.zonePB1,'BackgroundColor',[1.0 1.0 1.0])
  1743. set(handles.zonePB3,'BackgroundColor',[1.0 1.0 1.0])
  1744. set(ghandles.zonePB2,'value',1);
  1745. set(ghandles.zonePB1,'value',0);
  1746. set(ghandles.zonePB3,'value',0);
  1747. end
  1748. if get(handles.zonePB2,'value')==1 && get(handles.CompositeTog2,'value')==1
  1749. set(handles.GeneOrfTog,'value',0)
  1750. set(handles.listboxGnOrf,'value',1)
  1751. set(handles.listboxGnOrf,'string',Exp(2).Dexp(DexpN).srtGnLst)
  1752. set(handles.CompositeTog2,'BackgroundColor',[1.0 0.6 0.6])
  1753. set(handles.CompositeTog2,'ForegroundColor',[1.0 0.0, 0.0])
  1754. set(handles.zonePB2,'BackgroundColor',[1.0 0.6 0.6])
  1755. else
  1756. set(handles.CompositeTog2,'BackgroundColor',[1.0 0.8, 0.8])
  1757. set(handles.CompositeTog2,'ForegroundColor',[0.0 0.0, 0.0])
  1758. end
  1759. end
  1760. % Executes on button press in zonePB3.
  1761. function zonePB3_Callback(hObject, eventdata, handles)
  1762. global Exp
  1763. global ghandles
  1764. global zonePB
  1765. zonePB=3
  1766. %if get(handles.zonePB3,'value')==0, set(handles.zonePB3,'value',1); end
  1767. set(handles.zonePB3,'value',1);
  1768. DexpN=get(handles.DN3,'value');
  1769. set(handles.zonePB1,'value',0);
  1770. set(handles.zonePB2,'value',0);
  1771. set(ghandles.zonePB3,'value',1);
  1772. set(ghandles.zonePB1,'value',0);
  1773. set(ghandles.zonePB2,'value',0);
  1774. orfLstSel=get(handles.GeneOrfTog,'value');
  1775. if orfLstSel==1
  1776. set(handles.listboxGnOrf,'string',Exp(3).Dexp(DexpN).srtOrfLst); %set(handles.listboxGnOrf,'string',Exp(3).srtOrfLst)
  1777. else
  1778. set(handles.listboxGnOrf,'string',Exp(3).Dexp(DexpN).srtGnLst); %set(handles.listboxGnOrf,'string',Exp(3).srtGnLst)
  1779. end
  1780. % switch background color to indicate zone selected 230815
  1781. if get(handles.zonePB3,'value')==1
  1782. set(handles.zonePB3,'BackgroundColor',[1.0 0.6 0.6]);
  1783. set(handles.zonePB1,'BackgroundColor',[1.0 1.0 1.0]);
  1784. set(handles.zonePB2,'BackgroundColor',[1.0 1.0 1.0]);
  1785. end
  1786. if get(handles.zonePB3,'value')==1 && get(handles.CompositeTog3,'value')==1
  1787. set(handles.GeneOrfTog,'value',0)
  1788. set(handles.listboxGnOrf,'value',1)
  1789. set(handles.listboxGnOrf,'string',Exp(3).Dexp(DexpN).srtGnLst)
  1790. set(handles.CompositeTog3,'BackgroundColor',[1.0 0.6 0.6])
  1791. set(handles.CompositeTog3,'ForegroundColor',[1.0 0.0, 0.0])
  1792. set(handles.zonePB3,'BackgroundColor',[1.0 0.6 0.6])
  1793. else
  1794. set(handles.CompositeTog3,'BackgroundColor',[1.0 0.8, 0.8])
  1795. set(handles.CompositeTog3,'ForegroundColor',[0.0 0.0, 0.0])
  1796. end
  1797. end
  1798. % Deprecated functions
  1799. %{
  1800. % RadioButton1*************************
  1801. function zoneRad1_Callback(hObject, eventdata, handles)
  1802. global Exp
  1803. if get(handles.zoneRad1,'value')==0, set(handles.zoneRad1,'value',1); end
  1804. DexpN=get(handles.DN1,'value')
  1805. set(handles.zoneRad2,'value',0)
  1806. set(handles.zoneRad3,'value',0)
  1807. orfLstSel=get(handles.GeneOrfTog,'value')
  1808. if get(handles.GeneOrfTog,'value')==1
  1809. set(handles.listboxGnOrf,'string',Exp(1).Dexp(DexpN).srtOrfLst) %set(handles.listboxGnOrf,'string',Exp(1).srtOrfLst)
  1810. else
  1811. set(handles.listboxGnOrf,'string',Exp(1).Dexp(DexpN).srtGnLst) %set(handles.listboxGnOrf,'string',Exp(1).srtGnLst)
  1812. end
  1813. if get(handles.zoneRad1,'value')==1 && get(handles.CompositeTog1,'value')==1
  1814. set(handles.GeneOrfTog,'value',0)
  1815. set(handles.listboxGnOrf,'value',1)
  1816. set(handles.listboxGnOrf,'string',Exp(1).Dexp(DexpN).srtGnLst)
  1817. set(handles.CompositeTog1,'BackgroundColor',[1.0 0.6 0.6])
  1818. set(handles.CompositeTog1,'ForegroundColor',[1.0 0.0, 0.0])
  1819. else
  1820. set(handles.CompositeTog1,'BackgroundColor',[1.0 0.8, 0.8])
  1821. set(handles.CompositeTog1,'ForegroundColor',[0.0 0.0, 0.0])
  1822. end
  1823. % --- Executes on button press in zoneRad2.
  1824. function zoneRad2_Callback(hObject, eventdata, handles)
  1825. global Exp
  1826. if get(handles.zoneRad2,'value')==0, set(handles.zoneRad2,'value',1); end
  1827. DexpN=get(handles.DN2,'value')
  1828. set(handles.zoneRad1,'value',0)
  1829. set(handles.zoneRad3,'value',0)
  1830. orfLstSel=get(handles.GeneOrfTog,'value')
  1831. if orfLstSel==1
  1832. set(handles.listboxGnOrf,'string',Exp(2).Dexp(DexpN).srtOrfLst) %set(handles.listboxGnOrf,'string',Exp(2).srtOrfLst)
  1833. else
  1834. set(handles.listboxGnOrf,'string',Exp(2).Dexp(DexpN).srtGnLst) %set(handles.listboxGnOrf,'string',Exp(2).srtGnLst)
  1835. end
  1836. if get(handles.zoneRad2,'value')==1 && get(handles.CompositeTog2,'value')==1
  1837. set(handles.GeneOrfTog,'value',0)
  1838. set(handles.listboxGnOrf,'value',1)
  1839. set(handles.listboxGnOrf,'string',Exp(2).Dexp(DexpN).srtGnLst)
  1840. set(handles.CompositeTog2,'BackgroundColor',[1.0 0.6 0.6])
  1841. set(handles.CompositeTog2,'ForegroundColor',[1.0 0.0, 0.0])
  1842. else
  1843. set(handles.CompositeTog2,'BackgroundColor',[1.0 0.8, 0.8])
  1844. set(handles.CompositeTog2,'ForegroundColor',[0.0 0.0, 0.0])
  1845. end
  1846. % --- Executes on button press in zoneRad3.
  1847. function zoneRad3_Callback(hObject, eventdata, handles)
  1848. global Exp
  1849. if get(handles.zoneRad3,'value')==0, set(handles.zoneRad3,'value',1); end
  1850. DexpN=get(handles.DN3,'value')
  1851. set(handles.zoneRad1,'value',0)
  1852. set(handles.zoneRad2,'value',0)
  1853. orfLstSel=get(handles.GeneOrfTog,'value')
  1854. if orfLstSel==1
  1855. set(handles.listboxGnOrf,'string',Exp(3).Dexp(DexpN).srtOrfLst) %set(handles.listboxGnOrf,'string',Exp(3).srtOrfLst)
  1856. else
  1857. set(handles.listboxGnOrf,'string',Exp(3).Dexp(DexpN).srtGnLst) %set(handles.listboxGnOrf,'string',Exp(3).srtGnLst)
  1858. end
  1859. if get(handles.zoneRad3,'value')==1 && get(handles.CompositeTog3,'value')==1
  1860. set(handles.GeneOrfTog,'value',0)
  1861. set(handles.listboxGnOrf,'value',1)
  1862. set(handles.listboxGnOrf,'string',Exp(3).Dexp(DexpN).srtGnLst)
  1863. set(handles.CompositeTog3,'BackgroundColor',[1.0 0.6 0.6])
  1864. set(handles.CompositeTog3,'ForegroundColor',[1.0 0.0, 0.0])
  1865. else
  1866. set(handles.CompositeTog3,'BackgroundColor',[1.0 0.8, 0.8])
  1867. set(handles.CompositeTog3,'ForegroundColor',[0.0 0.0, 0.0])
  1868. end
  1869. %}
  1870. % --- Executes on mouse press over figure background, over a disabled or
  1871. % --- inactive control, or over an axes background.
  1872. %function figure1_WindowButtonDownFcn(hObject, eventdata, handles)
  1873. % hObject handle to figure1 (see GCBO)
  1874. % eventdata reserved - to be defined in a future version of MATLAB
  1875. % handles structure with handles and user data (see GUIDATA)
  1876. % --- If Enable =='on', executes on mouse press in 5 pixel border.
  1877. % --- Otherwise, executes on mouse press in 5 pixel border or over printOL1.
  1878. function printOL1_ButtonDownFcn(hObject, eventdata, handles)
  1879. % hObject handle to printOL1 (see GCBO)
  1880. % eventdata reserved - to be defined in a future version of MATLAB
  1881. % handles structure with handles and user data (see GUIDATA)
  1882. end
  1883. % --- Executes on key press with focus on printOL2 and none of its controls.
  1884. function printOL2_KeyPressFcn(hObject, eventdata, handles)
  1885. % hObject handle to printOL2 (see GCBO)
  1886. % eventdata structure with the following fields (see MATLAB.UI.CONTROL.UICONTROL)
  1887. % Key: name of the key that was pressed, in lower case
  1888. % Character: character interpretation of the key(s) that was pressed
  1889. % Modifier: name(s) of the modifier key(s) (i.e., control, shift) pressed
  1890. % handles structure with handles and user data (see GUIDATA)
  1891. end
  1892. % --- Executes on key press with focus on printOL3 and none of its controls.
  1893. function printOL3_KeyPressFcn(hObject, eventdata, handles)
  1894. % hObject handle to printOL3 (see GCBO)
  1895. % eventdata structure with the following fields (see MATLAB.UI.CONTROL.UICONTROL)
  1896. % Key: name of the key that was pressed, in lower case
  1897. % Character: character interpretation of the key(s) that was pressed
  1898. % Modifier: name(s) of the modifier key(s) (i.e., control, shift) pressed
  1899. % handles structure with handles and user data (see GUIDATA)
  1900. end