-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathiWM_fig4_clusterAnalysis.m
More file actions
38 lines (31 loc) · 1.2 KB
/
iWM_fig4_clusterAnalysis.m
File metadata and controls
38 lines (31 loc) · 1.2 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
iWM_probeClusterAnalysis;
dataPath = '/home/knight/IWM_SEEG/';
FOInames = {'THETA', 'BETA', 'HFA'};
for idxF = 1:3
offset = (idxF-1)*3;
figure(1 + offset);
% save figures
fnameOut = sprintf('%s_figures/insula/Fig4_clusters_%s.svg', dataPath, FOInames{idxF});
h = findall(gcf,'-property','FontName');
set(h,'FontName','San Serif');
print(gcf, '-dsvg', fnameOut);
figure(2 + offset);
fnameOut = sprintf('%s_figures/insula/Fig4_clusterAnatL_%s.svg', dataPath, FOInames{idxF});
print(gcf, '-dsvg', fnameOut);
figure(3 + offset);
fnameOut = sprintf('%s_figures/insula/Fig4_clusterAnatR_%s.svg', dataPath, FOInames{idxF});
print(gcf, '-dsvg', fnameOut);
end
% statistical test - Fisher's exact test
% anterior - posterior
x = [6 7; 3 5]; % theta [C1a C1p; C2a C2p]
x = [9 3; 2 5]; % beta
x = [15 2; 4 18]; % HFA
x = table(x(:, 1), x(:, 2), 'VariableNames', {'ant.', 'post.'}, 'RowNames', {'C1', 'C2'});
[h, p, stats] = fishertest(x);
% left - right
x = [3 10; 7 1]; % theta [C1l C1r; C2l C2r]
x = [3 9; 4 3]; % beta
x = [7 10; 11 11]; % HFA
x = table(x(:, 1), x(:, 2), 'VariableNames', {'left', 'right'}, 'RowNames', {'C1', 'C2'});
[h, p, stats] = fishertest(x);