-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathQuickLabDefs.m
137 lines (111 loc) · 3.84 KB
/
QuickLabDefs.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
%QuickLabDefs() Calling this function will alter the defaults of QuickLab
% QuickLab is a compilation of modified EEGLAB functions
% for experienced users that wish to speed up manual
% process, made by Ugo Bruzadin Nunes in
% colaboration with the INL lab in Carbondale, IL.
%
% Author: Ugo Bruzadin Nunes
%
% Copyright (C) 2021 Ugo Bruzadin Nunes
% This program is free software; you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% the Free Software Foundation; either version 2 of the License, or
% (at your option) any later version.
%
% This program is distributed in the hope that it will be useful,
% but WITHOUT ANY WARRANTY; without even the implied warranty of
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
% GNU General Public License for more details.
%
% You should have received a copy of the GNU General Public License
% along with this program; if not, write to the Free Software
SAVEBACKUP = 1;
%% EEGPLOT_ADV DEFAULTS
EEGTHRESHOLD = [-150, 150];
ALLBUTBRAIN = [0.8, 1] ;
CHANNELDEFS = [1:57,59,60];
%% SPECTOPO DISPLAY DEFAULTS
% Highest Frequency, Lowest Frequency, Maxwindow
FREQDISPLAYDEFS = [60,0,2048];
% Specific Expected Frequencies for Topoplot Display
SPECTRATOPO = [2 4 6 8 10 12 15 18 20 25 30 36];
%% Headmodel and references defaults
% Location of Headmodel(s)
HEADMODELLOCATION = ['']; % location of headmodel file
% References
OG_REF = 'Cz';
CZ_REF = 'Cz';
LE_REFS = [58 64];
% try
% if ~isempty(EEG)
% if EEG.nbchan == 92
% LE_REFS = [44 74];
% elseif EEG.nbchan == 128
% LE_REFS = [57 100];
% else
% LE_REFS = [57 100];
% end
% end
% catch
% end
REFLOC = struct('labels',{'Cz'},'Y',{0},'X',{0},'Z',{8.7919},'sph_theta',{0},'sph_phi',{0},'sph_radius',{0},'theta',{0},'radius',{0},'type',{''},'ref',{'Cz'},'urchan',{[]},'datachan',{0});
KEEPREF = 'on';
%% CORRMAP defaults
% CORRMAP folder locations
CORRMAPDEFS = [''];
%% Defaults for PCA/ICA & ICLABEL
ICATYPE = 'cudaica';
EXTENDED = 1;
VERBOSE = 'off';
PCADEFS = ['icatype',ICATYPE,'extended',EXTENDED,'verbose',VERBOSE];
% ICLABEL type, Highest Frequency, Lowest Frquency
ICLABELDEFS = ['default',60,0];
%% Number of dipoles to plot in DIPFIT (1 or 2)
DIPFITDEFS = [1];
OTHERDIPFITDEFS = [];
%% Defaults for running BSS
BSSDEFS = [];
%% Defaults for lowpass and highpass filter for quick filter
% smallest frequency, highest frequency, in between steps
LOWPASSDEFS = [14,40,1];
HIGHPASSDEFS = [0.5,0.5,22];
%% Default for epoching the data
% Epoch name(s), if any
EPOCHNAMES = ['DIN '];
% Epoch time pre and post (1)
EPOCH1DEFS = [0.600,2.648];
% Epoch time pre and post (2)
EPOCH2DEFS = [-1,3.096];
% Recurrent epoch length
EPOCHLENGTH = 1;
%% Binary default options for data plotting and saving in QuickLab
% Should ICLABEL be plotted after every iclabel run?
PLOTICLABELS = 0;
% Should every data modification try to plot the data difference?
PLOTDATADIFF = 0;
% Should every data modification save the markers in a new file?
SAVADATAMARKERS = 1;
% if so, what should the new file markers be named?
SAVEDATAMARKERTITLE = 'SM';
%% COLOR DEFAULTS
COLOR_MODE = 'Default';
% COLOR_MODE = 'DarkMode';
% darkmode = readtext('IsDarkmodeOn.txt');
% if iscell(darkmode)
% darkmode = darkmode{:};
% end
%
% if darkmode == "YES"
% COLOR_MODE = 'DarkMode';
% end
%COLOR_MODE = 'Default';
c = clock; %loads clock
% Uncomment these lines to turn on darkmode! open quick_colormode to change
% colors of all quicklab Ui and plots! WARNING: WILL AFFECT SOME EEGLAB
% FIGURES AND PLOTS.
% if c(4) >= 16 || c(4) < 5 % If after 6 PM and before 5 AM, changes color scheme to dark mode
% COLOR_MODE = 'DarkMode';
% else
COLOR_MODE = 'Default';
% end
quick_colormode; % loads colorscheme from quick_colormode