Commit 00d9527d authored by Tyler Collins's avatar Tyler Collins
Browse files

Update qc.htb to be able to reload scroll plot

parent 54dafbc6
......@@ -84,12 +84,25 @@ EEG_scalp = pop_vised(EEG,'data_type','EEG','pop_gui','off','spacing',80,'comman
sfh = gcf;
link = '';
% Comment below line to desync second scrollplot from main
% link = 'vef_eeg';
%PLOT IC DATA SCROLL PLOT USING VISED PLUGIN...
EEG = pop_vised(EEG,'data_type','ICA','children','vef_eeg','pop_gui','off','tag','vef_comp','event_type',eventList);
EEG = pop_vised(EEG,'data_type','ICA','children',link,'pop_gui','off','tag','vef_comp','event_type',eventList);
tic;
%WAIT FOR SCROLL PLOT TO CLOSE...
uiwait;
% uiwait;
% REMOVING THIS FOR THE NEXT LITTLE BIT
reloadStr = 'close(findobj(''tag'',''vef_comp''));EEG = pop_vised(EEG,''data_type'',''ICA'',''children'',link,''pop_gui'',''off'',''tag'',''vef_comp'',''event_type'',eventList);';
f = figure('Position',[300 300 500 50]);
h = uicontrol('Position',[20 20 200 40],'String','Save and Exit',...
'Callback','uiresume(gcbf)');
g = uicontrol('Position',[300 20 200 40],'String','Reload Component Plot',...
'Callback',reloadStr);
uiwait(gcf);
close(f);
qc_time = num2str(toc);
disp(['Time taken to perform QC: ' qc_time 'sec.']);
......@@ -106,4 +119,4 @@ try close(sfh),clear sfh, catch clear sfh, end
%SAVE *_qc.SET DATASET FILE...
EEG = pop_saveset( EEG,'filename','[batch_dfn,_,-1]_qc.set','filepath','[batch_dfp]');
%init_bids_sub(EEG,'[batch_dfn,_,-2]','[_,-2,batch_dfn,.,-1]');
\ No newline at end of file
%init_bids_sub(EEG,'[batch_dfn,_,-2]','[_,-2,batch_dfn,.,-1]');
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment