Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
bucanl_pipelines
bids_lossless_eeg
Commits
00d9527d
Commit
00d9527d
authored
Jul 12, 2018
by
Tyler Collins
Browse files
Update qc.htb to be able to reload scroll plot
parent
54dafbc6
Changes
1
Hide whitespace changes
Inline
Side-by-side
derivatives/lossless/code/scripts/qc.htb
View file @
00d9527d
...
...
@@ -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]');
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment