forked from sgarbarino/mechanistic-profiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
load_data.m
90 lines (82 loc) · 3.7 KB
/
load_data.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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
%% loading step preliminar
if strcmp(dataset,'ADNI')
disp('Do not have access to raw AD data!')
% clean_ADNI; % load and pre-process ADNI data
% select_ROIs_ADNI; % AD: select all ROIs (i.e. h=1)
% zscoresROIs = (table2array(zscoresPAT_ROIs)'); % separate HC and PAT
% zscoresROIsHC = (table2array(zscoresHC_ROIs)');
% zscoresROIsALL = [zscoresROIs zscoresROIsHC];
% %% clean and load connectome
% script_mean_load_connectome_FS;
% script_mean_clean_connectome;
% clear idx p h
% %% merge all the information in 13 macro-regions:
% merge_lobes;
% zscoresROIs = zscores_volumes_NEW_lobes';
% connect = connect_lobes;
% ROIs = connectome_label_lobes;
% connectome_label = connectome_label_lobes';
% % connectome_mean_lobes = mean(connect_lobes,4);
% connectome_std_lobes = std(connect_lobes,[],4);
% generate_GP_input;
elseif strcmp(dataset,'RS')
disp('Do not have access to raw RS data!')
% clean_RS; % load and pre-process HA data
% Data = Data_pure; Data_demo = Data_demo_pure; Data_vol = Data_value_pure; % select just subjects with no cortical infarct + dementia at BL
% zscores_volumes_NEW_table = zscores_volumes_NEW_table_pure;zscores_volumes_NEW = zscores_volumes_NEW_pure;volumesall_NEW = volumes_NEW_pure;
% select_ROIs_RS; % HA: select all ROIs (i.e. h=1)
% zscoresROIs = (table2array(zscores_ROIs)');
% %% clean and load connectome
% script_mean_load_connectome_FS;
% script_mean_clean_connectome;
% clear idx p h
% %% merge all the information in 13 macro-regions:
% merge_lobes;
% zscoresROIs = zscores_volumes_NEW_lobes';
% connect = connect_lobes;
% ROIs = connectome_label_lobes;
% connectome_label = connectome_label_lobes';
% % connectome_mean_lobes = mean(connect_lobes,4);
% connectome_std_lobes = std(connect_lobes,[],4);
% generate_GP_input;
elseif strcmp(dataset,'PPMS')
disp('Do not have access to raw PPMS data!')
% clean_PPMS; % load and pre-process PPMS data
% select_ROIs_PPMS; % MS: select all ROIs (i.e. h=1)
% zscoresROIs = (table2array(zscoresPAT_ROIs)'); % for all
% zscoresROIsHC = (table2array(zscoresHC_ROIs)');
% %% clean and load connectome
% script_mean_load_connectome_FS;
% script_mean_clean_connectome;
% clear idx p h
% %% merge all the information in 13 macro-regions:
% merge_lobes;
% zscoresROIs = zscores_volumes_NEW_lobes';
% connect = connect_lobes;
% ROIs = connectome_label_lobes;
% connectome_label = connectome_label_lobes';
% % connectome_mean_lobes = mean(connect_lobes,4);
% connectome_std_lobes = std(connect_lobes,[],4);
% generate_GP_input;
elseif strcmp(dataset,'dummy')
clean_dummy;
select_ROIs_dummy; % dummy: select all ROIs (i.e. h=1)
zscoresROIs = (table2array(zscoresPAT_ROIs)'); % separate HC and PAT
zscoresROIsHC = (table2array(zscoresHC_ROIs)');
zscoresROIsALL = [zscoresROIs zscoresROIsHC];
%% clean and load connectome
script_mean_load_connectome_FS;
script_mean_clean_connectome;
clear idx p h
%% merge all the information in 13 macro-regions:
merge_lobes;
zscoresROIs = zscores_volumes_NEW_lobes';
connect = connect_lobes;
ROIs = connectome_label_lobes;
connectome_label = connectome_label_lobes';
% connectome_mean_lobes = mean(connect_lobes,4);
connectome_std_lobes = std(connect_lobes,[],4);
generate_GP_input;
else
print('Error! Dataset not recognised')
end