Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
DavidPopovic authored Aug 16, 2022
1 parent 4f94f58 commit 358d604
Showing 1 changed file with 73 additions and 0 deletions.
73 changes: 73 additions & 0 deletions Visualization_Module/dp_results_collection_clean.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
%% DP function to analyze results in varying grid densities
% addpath(genpath('/opt/NM/NeuroMiner_Elessar_1.10_beorn/'));
addpath(genpath('/opt/NM/NeuroMiner_Elessar_1.11_beorn/'));
% addpath(genpath('/opt/NM/test_versions/NeuroMiner_May16_2022/'));
addpath('/opt/SPM/spm12_v6685_cat12_r1207/');
addpath(genpath('/volume/DP_FEF/ScrFun/ScriptsRepository'));
addpath(genpath('/opt/PRONIASoftware/Developpment/DataAllCron/PRONIA_JuliaCode'));

results_paths = {'/volume/HCStress/Analysis/10-Jun-2022/CISS_636_IQRadd_NCV55_single_folds_bestmerge_noval_min10_2020_5000AUC_Dev_2022/final_results/result_BS.mat'};

IN.atlases_chosen = {'yeo', 'buckner', 'brainnetome', 'cerebellum', 'YB17', 'YB7', 'YB8'};
IN.atlas_directory = '/volume/HCStress/Data/MRI/Atlases';
IN.plot_all = false;
IN.specific = {'atlas', 'behavior', 'images'}; % 'atlas', 'behavior', 'images', 'sociodemographic', 'medication_wais', 'outcome', 'medication_wais'
IN.SD_selection = {'BDI', 'PANSS', 'GAF', 'NEO', 'WHO', 'neurocognition'}; %'BDI', 'GAF', 'NEO', 'QOL'
IN.type = 1; % 1:new, 2:old
IN.analysis_origin = 1; % 1: PRONIA, 2: other

for i=1:numel(results_paths)

IN.results_path = results_paths{i};
load(IN.results_path)
% input.X = input.MRI;
max_iter = 1;

if isfield(output, 'validation_results')
max_iter=2;
end

for a=1:max_iter

switch a

case 1
IN.results_path = results_paths{i};
IN.results_path = strrep(IN.results_path, '.mat', '_final_vis.mat');
save(IN.results_path, 'input', 'output', 'setup');
case 2
IN.results_path = results_paths{i};
IN.results_path = strrep(IN.results_path, '.mat', '_validation_vis.mat');
save(IN.results_path, 'input', 'output', 'setup');
end

if contains(IN.results_path, 'CTQ') & ~contains(IN.results_path, 'immune', 'IgnoreCase', true)
IN.overall_analysis = 'Stress';
elseif contains(IN.results_path, 'CISS')
IN.overall_analysis = 'Resilience';
elseif contains(IN.results_path, 'WSS')
IN.overall_analysis = 'Schizotypy';
elseif contains(IN.results_path, 'Mimics')
IN.overall_analysis = 'Mimics';
elseif contains(IN.results_path, 'immune', 'IgnoreCase', true)
IN.overall_analysis = 'immune';
elseif contains(IN.results_path, 'MDD', 'IgnoreCase', true)
IN.overall_analysis = 'MDD_Trauma';
elseif contains(IN.results_path, 'FF', 'IgnoreCase', true)
IN.overall_analysis = 'FF';
elseif contains(IN.results_path, 'COPE', 'IgnoreCase', true)
IN.overall_analysis = 'COPE';
else
disp('Something''s wrong!');
end

dp_visualize_data_Devmod(IN);

end

end

% compute adjusted p values (FDR)
% output = dp_fdr_posthoc_adjust(results_paths{1});


0 comments on commit 358d604

Please sign in to comment.