-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.py
40 lines (31 loc) · 1.15 KB
/
main.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
#!/usr/bin/env python
# coding: utf-8
from create_input_folders import *
from reformat_assemble_indexes import *
from one_sample_t_test import *
from anova_two_sample_t_test import *
def get_dirs(root):
datapath = os.path.join(root, "DATA")
output_data_driven = os.path.join(root, "DATA_DRIVEN")
output_lit_driven = os.path.join(root, "LIT_DRIVEN")
return [datapath, output_data_driven, output_lit_driven]
def run_all_statistics():
# GET PATHS
root = "/home/msgreen/Desktop"
[datapath, output_data_driven, output_data_driven] = get_dirs(root)
# CREATE_DATA_STRUCTURE
format_input_structure(datapath, root)
# DATA_DRIVEN
data_root = "/home/msgreen/Desktop/DATA_DRIVEN/"
modality = "DATA_DRIVEN"
reformat_assemble_indexes(data_root, modality)
run_one_sample_t_test(data_root, modality)
run_anova_two_sample_t_tests(data_root, modality)
# LIT_DRIVEN
lit_root = "/home/msgreen/Desktop/LIT_DRIVEN/"
modality = "LIT_DRIVEN"
reformat_assemble_indexes(lit_root, modality)
run_one_sample_t_test(lit_root, modality)
run_anova_two_sample_t_tests(lit_root, modality)
# RUN_ALL
run_all_statistics()