-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathtest_cluster.m
68 lines (34 loc) · 1.34 KB
/
test_cluster.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
clear all
clc
sim_dir='/autofs/cluster/transcend/fahimeh/fmm/resources/Simulations2/labelsize_var/';
tag='0_0_0_0_nr_1_snr_0.06_templ_tempr_3sub_norand_15to20f_8subj_stg9parts';
label_names={'superiortemporal_1-lh.label'};
addpath /autofs/cluster/transcend/fahimeh/fm_functions/Mines/
for icond=1:2
for isubj=1:8
filename=[sim_dir 'wholecortex_' tag '_cond' num2str(icond) '_subj' num2str(isubj)];
filename1=[filename '_coh_' label_names{1} '_towholecortex_freq_' num2str(FREQ(1)) 'to' num2str(FREQ(end)) '.mat'];
c1=load(filename1);
DATA(isubj,:,:,:)=c1.Coh(:,50:550,:);
end
G{icond}=DATA;
end
clear DATA
cfg1=[];
cfg1.statmethod='pairedttest';
cfg1.numperm=1;
cfg1.alpha=0.05;
load('/autofs/cluster/transcend/fahimeh/fm_functions/Mines/VertConn.mat')
cfg1.connectivity=VertConn;
G1=G{1};
G2=G{2};
fprintf('clusterstats3D running 1 \n')
tic
stats=clustterstat3D(G1,G2,cfg1);
toc
save([sim_dir 'nperm1_sim_cluster3D_' tag '.mat'],'stats','-v7.3')
%%
tt=load('/autofs/cluster/transcend/fahimeh/fmm/resources/Simulations2/labelsize_var/nperm1_sim_cluster3D_0_0_0_0_nr_1_snr_0.06_templ_tempr_3sub_norand_15to20f_8subj_stg9parts.mat');
x1=squeeze(sum(x.mask));
x1=sum(sum(tt.stats.posclus(1).mask,2),3);
mne_read_stc_file()