forked from LIMO-EEG-Toolbox/limo_tools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
limo_itc_gui.m
677 lines (515 loc) · 22 KB
/
limo_itc_gui.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
function varargout = limo_itc_gui(varargin)
% BATCH ITC INTERFACE
% created using GUIDE
% Based on limo_batch_gui
%
% Andrew Stewart, May 2014
% ------------------------------
% Copyright (C) LIMO Team 2019
%% GUI stuffs
% -------------------------
% Begin initialization code
% -------------------------
warning off
gui_Singleton = 1;
gui_State = struct('gui_Name', mfilename, ...
'gui_Singleton', gui_Singleton, ...
'gui_OpeningFcn', @limo_itc_gui_OpeningFcn, ...
'gui_OutputFcn', @limo_itc_gui_OutputFcn, ...
'gui_LayoutFcn', [] , ...
'gui_Callback', []);
if nargin && ischar(varargin{1})
gui_State.gui_Callback = str2func(varargin{1});
end
if nargout
[varargout{1:4}] = gui_mainfcn(gui_State, varargin{:});
else
gui_mainfcn(gui_State, varargin{:});
end
% -----------------------
% End initialization code
% -----------------------
% --------------------------------------------------
% Executes just before the menu is made visible
% --------------------------------------------------
function limo_itc_gui_OpeningFcn(hObject, eventdata, handles, varargin)
handles.output = hObject;
% define handles used for the save callback
handles.FileName = [];
handles.CatName = [];
handles.fullfactorial = 0;
handles.ContName = [];
handles.zscore = 1;
handles.Cat = [];
handles.Cont = [];
handles.start = [];
handles.end = [];
handles.lowf = [];
handles.highf = [];
handles.Analysis = [];
handles.type_of_analysis = 'Mass-univariate';
handles.method = 'OLS';
handles.bootstrap = 0;
handles.tfce = 0;
handles.quit = 0;
handles.Analysis = 'Time-Frequency';
guidata(hObject, handles);
uiwait(handles.figure1);
% --- Outputs from this function are returned to the command line.
function varargout = limo_itc_gui_OutputFcn(hObject, eventdata, handles)
varargout{1} = 'ITC out';
if handles.quit == 1
varargout{1} = [] ;
varargout{2} = [] ;
varargout{3} = [] ;
varargout{4} = [] ;
else
varargout{1} = handles.FileName;
varargout{2} = handles.Cat;
varargout{3} = handles.Cont;
varargout{4} = handles.defaults ;
end
delete(handles.figure1)
%% Callbacks
%-------------------------
% IMPORT
%------------------------
% load a data set -- EEG
% ---------------------------------------------------------------
function Import_data_set_Callback(hObject, eventdata, handles)
[FileName,PathName,FilterIndex]=uigetfile({'*.txt;*.mat','List of dataset files (*.txt or *.mat)'; ...
'*set*', 'EEGLAB (EEG.set)'}, ...
'Pick sets or list', 'MultiSelect', 'on');
if FilterIndex ~= 0
if iscell(FileName) % multiselect for .sets
for f=1:size(FileName,2)
if ~strcmp(FileName{f}(end-3:end),'.set')
errordlg('only multiple set files are allowed or a single .mat/.txt list')
return
end
end
else % use .mat or .txt
if strcmp(FileName(end-3:end),'.txt')
%FileName = importdata(FileName);
FileName = importdata([PathName FileName]); %axs
elseif strcmp(FileName(end-3:end),'.mat')
FileName = load([PathName FileName]);
FileName = getfield(FileName,cell2mat(fieldnames(FileName)));
end
for f=1:size(FileName,1)
if ~exist(FileName{f},'file')
errordlg(sprintf('%s \n file not found',FileName{f}));
return
end
end
end
handles.FileName = FileName;
end
guidata(hObject, handles);
% --- Executes on selection change in analysis_type.
% ---------------------------------------------------------------
function analysis_type_CreateFcn(hObject, eventdata, handles)
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end
function analysis_type_Callback(hObject, eventdata, handles)
% For ITC, set as 'Time-Frequency'
content = get(hObject,'Value');
if content == 1
handles.Analysis = 'Time';
set(handles.Starting_point,'Enable','on')
set(handles.ending_point,'Enable','on')
set(handles.low_freq,'Enable','off')
set(handles.high_freq,'Enable','off')
elseif content == 2
handles.Analysis = 'Frequency';
set(handles.Starting_point,'Enable','off')
set(handles.ending_point,'Enable','off')
set(handles.low_freq,'Enable','on')
set(handles.high_freq,'Enable','on')
elseif content == 3
handles.Analysis = 'Time-Frequency';
set(handles.Starting_point,'Enable','on')
set(handles.ending_point,'Enable','on')
set(handles.low_freq,'Enable','on')
set(handles.high_freq,'Enable','on')
end
guidata(hObject, handles);
% get the starting time point of the analysis
% ---------------------------------------------------------------
function Starting_point_CreateFcn(hObject, eventdata, handles)
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end
function Starting_point_Callback(hObject, eventdata, handles)
handles.start = str2double(get(hObject,'String'));
guidata(hObject, handles);
% get the ending time point of the analysis
% ---------------------------------------------------------------
function ending_point_CreateFcn(hObject, eventdata, handles)
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end
function ending_point_Callback(hObject, eventdata, handles)
handles.end = str2double(get(hObject,'String'));
guidata(hObject, handles);
% get the starting frequency point of the analysis
% ---------------------------------------------------------------
function low_freq_CreateFcn(hObject, eventdata, handles)
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end
function low_freq_Callback(hObject, eventdata, handles)
handles.lowf = str2double(get(hObject,'String'));
guidata(hObject, handles);
% get the ending frequency point of the analysis
% ---------------------------------------------------------------
function high_freq_CreateFcn(hObject, eventdata, handles)
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end
function high_freq_Callback(hObject, eventdata, handles)
handles.highf = str2double(get(hObject,'String'));
guidata(hObject, handles);
%---------------------------
% ANALYSIS
% --------------------------
% type of analysis
% --- Executes on selection change in type_of_analysis.
% --- Executes during object creation, after setting all properties.
function type_of_analysis_CreateFcn(hObject, eventdata, handles)
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end
function type_of_analysis_Callback(hObject, eventdata, handles)
contents{1} = 'Mass-univariate';
contents{2} = 'Multivariate';
handles.type_of_analysis = contents{get(hObject,'Value')};
if isempty(handles.type_of_analysis)
handles.type_of_analysis = 'Mass-univariate';
end
fprintf('analysis selected %s \n',handles.type_of_analysis);
guidata(hObject, handles);
% bootstrap
% --- Executes on button press in boostrap_check_box.
function boostrap_check_box_Callback(hObject, eventdata, handles)
M = get(hObject,'Value');
if M == 1
handles.bootstrap = 1;
disp('bootstrap is on');
set(handles.TFCE,'Enable','on')
elseif M == 0
handles.bootstrap = 0;
disp('boostrap is off');
set(handles.TFCE,'Enable','off')
end
guidata(hObject, handles);
% TFCE
% --- Executes on button press in TFCE.
function TFCE_CreateFcn(hObject, eventdata, handles)
function TFCE_Callback(hObject, eventdata, handles)
M = get(hObject,'Value');
if M == 1
handles.tfce = 1;
disp('tfce is on');
elseif M == 0
handles.tfce = 0;
disp('tfce is off');
end
guidata(hObject, handles);
%-------------------------
% SPECIFY
%------------------------
%-------------------------
% OTHERS
%------------------------
% --- Executes on button press in Done.
% ---------------------------------------------------------------
function Done_Callback(hObject, eventdata, handles)
defaults.fullfactorial = handles.fullfactorial;
defaults.zscore = handles.zscore;
defaults.start = handles.start;
defaults.end = handles.end ;
defaults.lowf = handles.lowf;
defaults.highf = handles.highf;
defaults.method = handles.method;
defaults.type_of_analysis = handles.type_of_analysis;
defaults.analysis = 'ITC'; % Set to ITC
defaults.bootstrap = handles.bootstrap;
defaults.tfce = handles.tfce;
defaults.chanlocs = handles.chanlocs;
handles.defaults = defaults;
uiresume
guidata(hObject, handles);
% --- Executes on button press in Quit.
% ---------------------------------------------------------------
function Quit_Callback(hObject, eventdata, handles)
clc
uiresume
handles.quit = 1;
guidata(hObject, handles);
% delete(handles.figure1)
limo_gui
% --- Executes on button press in Select_chanlocs.
function Select_chanlocs_Callback(hObject, eventdata, handles)
% hObject handle to Select_chanlocs (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
[FileName,PathName,FilterIndex]=uigetfile({'*.mat'}, ...
'Select chanloc mat', 'MultiSelect', 'on');
FileName = importdata([PathName FileName]); %axs
handles.chanlocs = FileName;
guidata(hObject, handles);
% --- Executes on selection change in popupmenu9.
function popupmenu9_Callback(hObject, eventdata, handles)
% hObject handle to popupmenu9 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% Hints: contents = cellstr(get(hObject,'String')) returns popupmenu9 contents as cell array
% contents{get(hObject,'Value')} returns selected item from popupmenu9
% --- Executes during object creation, after setting all properties.
function popupmenu9_CreateFcn(hObject, eventdata, handles)
% hObject handle to popupmenu9 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns called
% Hint: popupmenu controls usually have a white background on Windows.
% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end
% --- Executes on button press in bootstrapchb.
function bootstrapchb_Callback(hObject, eventdata, handles)
% hObject handle to bootstrapchb (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% Hint: get(hObject,'Value') returns toggle state of bootstrapchb
% --- Executes on button press in checkbox13.
function checkbox13_Callback(hObject, eventdata, handles)
% hObject handle to checkbox13 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% Hint: get(hObject,'Value') returns toggle state of checkbox13
% --- Executes on selection change in popupmenu10.
function popupmenu10_Callback(hObject, eventdata, handles)
% hObject handle to popupmenu10 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% Hints: contents = cellstr(get(hObject,'String')) returns popupmenu10 contents as cell array
% contents{get(hObject,'Value')} returns selected item from popupmenu10
% --- Executes during object creation, after setting all properties.
function popupmenu10_CreateFcn(hObject, eventdata, handles)
% hObject handle to popupmenu10 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns called
% Hint: popupmenu controls usually have a white background on Windows.
% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end
% --- Executes on selection change in popupmenu7.
function popupmenu7_Callback(hObject, eventdata, handles)
% hObject handle to popupmenu7 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% Hints: contents = cellstr(get(hObject,'String')) returns popupmenu7 contents as cell array
% contents{get(hObject,'Value')} returns selected item from popupmenu7
% --- Executes during object creation, after setting all properties.
function popupmenu7_CreateFcn(hObject, eventdata, handles)
% hObject handle to popupmenu7 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns called
% Hint: popupmenu controls usually have a white background on Windows.
% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end
% --- Executes on button press in checkbox10.
function checkbox10_Callback(hObject, eventdata, handles)
% hObject handle to checkbox10 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% Hint: get(hObject,'Value') returns toggle state of checkbox10
% --- Executes on button press in checkbox11.
function checkbox11_Callback(hObject, eventdata, handles)
% hObject handle to checkbox11 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% Hint: get(hObject,'Value') returns toggle state of checkbox11
% --- Executes on selection change in popupmenu8.
function popupmenu8_Callback(hObject, eventdata, handles)
% hObject handle to popupmenu8 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% Hints: contents = cellstr(get(hObject,'String')) returns popupmenu8 contents as cell array
% contents{get(hObject,'Value')} returns selected item from popupmenu8
% --- Executes during object creation, after setting all properties.
function popupmenu8_CreateFcn(hObject, eventdata, handles)
% hObject handle to popupmenu8 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns called
% Hint: popupmenu controls usually have a white background on Windows.
% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end
% --- Executes on key press with focus on bootstrapchb and none of its controls.
function bootstrapchb_KeyPressFcn(hObject, eventdata, handles)
% hObject handle to bootstrapchb (see GCBO)
% eventdata structure with the following fields (see UICONTROL)
% Key: name of the key that was pressed, in lower case
% Character: character interpretation of the key(s) that was pressed
% Modifier: name(s) of the modifier key(s) (i.e., control, shift) pressed
% handles structure with handles and user data (see GUIDATA)
M = get(hObject,'Value');
if M == 1
handles.bootstrap = 1;
disp('bootstrap is on');
set(handles.TFCE,'Enable','on')
elseif M == 0
handles.bootstrap = 0;
disp('boostrap is off');
set(handles.TFCE,'Enable','off')
end
guidata(hObject, handles);
% --- Executes on selection change in type_of_analysis.
function popupmenu11_Callback(hObject, eventdata, handles)
% hObject handle to type_of_analysis (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% Hints: contents = cellstr(get(hObject,'String')) returns type_of_analysis contents as cell array
% contents{get(hObject,'Value')} returns selected item from type_of_analysis
% --- Executes during object creation, after setting all properties.
function popupmenu11_CreateFcn(hObject, eventdata, handles)
% hObject handle to type_of_analysis (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns called
% Hint: popupmenu controls usually have a white background on Windows.
% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end
% --- Executes on button press in boostrap_check_box.
function checkbox14_Callback(hObject, eventdata, handles)
% hObject handle to boostrap_check_box (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% Hint: get(hObject,'Value') returns toggle state of boostrap_check_box
% --- Executes on button press in TFCE.
function checkbox15_Callback(hObject, eventdata, handles)
% hObject handle to TFCE (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% Hint: get(hObject,'Value') returns toggle state of TFCE
% --- Executes on selection change in method.
function popupmenu12_Callback(hObject, eventdata, handles)
% hObject handle to method (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% Hints: contents = cellstr(get(hObject,'String')) returns method contents as cell array
% contents{get(hObject,'Value')} returns selected item from method
% --- Executes during object creation, after setting all properties.
function popupmenu12_CreateFcn(hObject, eventdata, handles)
% hObject handle to method (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns called
% Hint: popupmenu controls usually have a white background on Windows.
% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end
% --- Executes during object creation, after setting all properties.
function boostrap_check_box_CreateFcn(hObject, eventdata, handles)
% hObject handle to boostrap_check_box (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns called
% --- Executes on button press in Help.
function Help_Callback(hObject, eventdata, handles)
% hObject handle to Help (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
handles.dir = pwd;
origin = which('limo_eeg'); origin = origin(1:end-10);
origin = sprintf('%shelp',origin); cd(origin)
web(['file://' which('limo_itc.html')]);
cd (handles.dir)
%-------------------------
% SPECIFY
%------------------------
% --- Executes on button press in categorical_variable_input.
% ---------------------------------------------------------------
function categorical_variable_input_Callback(hObject, eventdata, handles)
[FileName,PathName,FilterIndex]=uigetfile('*.txt;*.mat','LIMO categorical data');
if FilterIndex == 1
cd(PathName);
if strcmp(FileName(end-3:end),'.txt')
handles.Cat = load(FileName);
else
load(FileName)
handles.Cat = eval(FileName(1:end-4));
end
% if there is more than one factor, allow factorial design
if size(handles.Cat,2) > 1
set(handles.full_factorial,'Enable','on')
handles.fullfactorial = 0;
else
handles.fullfactorial = 0;
end
disp('Categorical data loaded');
end
guidata(hObject, handles);
% --- Executes on button press in full_factorial.
% ---------------------------------------------------------------
function full_factorial_Callback(hObject, eventdata, handles)
M = get(hObject,'Value');
if M == 1
handles.fullfactorial = 1;
disp('full factorial on');
elseif M == 0
handles.fullfactorial = 0;
disp('full factorial off');
end
guidata(hObject, handles);
% --- Executes on button press in continuous_variable_input.
% ---------------------------------------------------------------
function continuous_variable_input_Callback(hObject, eventdata, handles)
[FileName,PathName,FilterIndex]=uigetfile('*.txt;*.mat','LIMO continuous data');
if FilterIndex == 1
cd(PathName);
if strcmp(FileName(end-3:end),'.txt')
handles.Cont = load(FileName);
else
load(FileName)
handles.Cont = eval(FileName(1:end-4));
end
% if the regressors are not zscored, allow option to leave it as such
% test mean = 0 with a margin of 10^-5
M = mean(mean(handles.Cont));
centered = M>-0.00001 && M<0.00001;
% if mean = 0 also test std = 1
if centered == 1
S = mean(std(handles.Cont));
reducted = S>0.99999 && S<1.00001;
else
reducted = 0;
end
if centered~=1 && reducted~= 1
set(handles.full_factorial,'Enable','on')
handles.zscore = 1;
else
handles.zscore = 1;
end
disp('Continuous data loaded');
end
guidata(hObject, handles);
% --- Executes on button press in full_factorial.
% ---------------------------------------------------------------
function z_score_Callback(hObject, eventdata, handles)
M = get(hObject,'Value');
if M == 0
handles.zscore = 1;
disp('zscoring on');
elseif M == 1
handles.zscore = 0;
disp('zscoring off');
end
guidata(hObject, handles);