-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig_pli.m
More file actions
59 lines (50 loc) · 1.55 KB
/
Copy pathconfig_pli.m
File metadata and controls
59 lines (50 loc) · 1.55 KB
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
function config = config_pli()
% CONFIG_PLI Configuration for PLI Analysis Tool
% config = config_pli()
% Modify values below to customize analysis.
config = struct();
%% Analysis (Core)
config.analysis.computePLI = true;
config.analysis.computeWPLI = true;
config.analysis.computeSignificance = false; % Slow - enable if needed
%% Frequency Bands (Hz)
config.bands.Delta = [0.5, 4];
config.bands.Theta = [4, 8];
config.bands.Alpha = [8, 13];
config.bands.Beta = [13, 30];
config.bands.Gamma = [30, 45];
%% Electrode Pairs (10-20 System)
config.pairs = {
'Fp1', 'Fp2';
'F7', 'F8';
'F3', 'F4';
'T3', 'T4';
'C3', 'C4';
'T5', 'T6';
'P3', 'P4';
'O1', 'O2'
};
%% Visualization (Optional)
config.visualization.generateTopoplots = true; % Enable if needed
config.visualization.saveFigures = true;
config.visualization.figureFormat = 'png';
config.visualization.figureResolution = 300;
%% Quality Control
config.qc.enabled = false;
config.qc.minVarianceThreshold = 0.1;
config.qc.maxBadChannels = 5;
config.qc.minDuration = 5;
config.qc.saveReport = false; % Set true for detailed reports
%% Statistics (Only used if computeSignificance = true)
config.stats.numSurrogates = 1000;
config.stats.alphaLevel = 0.05;
config.stats.method = 'circular_shift';
%% Output
config.output.folder = 'output';
config.output.filename = 'PLI_Results.xlsx';
config.output.figuresSubfolder = 'figures';
config.output.qcSubfolder = 'quality_control';
%% Advanced
config.advanced.suppressEEGLABOutput = true;
config.advanced.closeAllFigures = true;
end