forked from BottiniLab/GridFT
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path06_run_stats.py
48 lines (37 loc) · 1.51 KB
/
06_run_stats.py
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
"""
Run statistics at group level
@author: giuliano giari, [email protected]
"""
from gft2_config import opt
from gft2_stats_frequency import cluster_permutation_frq, plot_cluster_permutation_frq, topo_correlation
from gft2_stats_stc import ttest_roi, plot_spectrum_roi, conjunction, cluster_permutation_stc
from gft2_stats_eye import plot_percentage, plot_heatmap_ang_correlation, plot_correlation, plot_red_dots,
plot_heatmap_ang_correlation, plot_heatmap_correlation, eye_meg_correlation, circular_statistics
from gft2_stats_beh import plot_accuracy
from gft2_stats_fit import voxel_fit, roi_fit
metric = 'coh'
# behavioral and eye tracker
for ses_id in ['dots', 'lines', 'meg']:
plot_accuracy(ses_id, opt)
plot_percentage(ses_id, opt)
if ses_id == 'dots' or ses_id == 'lines':
plot_red_dots(ses_id, opt)
plot_correlation('dots', opt)
plot_heatmap_correlation(opt)
plot_heatmap_ang_correlation(opt)
# meg
for ses_id in ['dots', 'lines', 'dots+lines', 'meg']:
# sensor level
cluster_permutation_frq(ses_id, metric, opt)
plot_cluster_permutation_frq(ses_id, metric, opt)
# source
# anova is run in R
ttest_roi(ses_id, metric, roi_list, opt)
if ses_id == 'dots+lines':
conjunction(ses_id, metric, 0.005, 'greater', opt)
plot_spectrum_roi(ses_id, metric, opt)
eye_meg_correlation(opt)
if ses_id == 'dots+lines' or ses_id == 'meg':
voxel_fit(ses_id, metric, opt)
roi_fit(ses_id, metric, ['MTL'], opt)
topo_correlation(metric, opt)