-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsettings_make_par_env.m
executable file
·58 lines (54 loc) · 3.18 KB
/
settings_make_par_env.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
%%
fs = filesep;
handles.fs = fs;
%% Defaults to calculate connectotyping
handles.connectotyping_settings.default_frames=60; % set the number of random frames included to connectotype, subjects with fewer frames will be excluded from this environment
handles.connectotyping_settings.repetitions=10; % if a participant has more than 60 frames, then the model is repeated "repetitions" times
handles.connectotyping_settings.partition_model=80; % percentage of frames to calculate the pseudoinverse
handles.connectotyping_settings.partition_validation=100-handles.connectotyping_settings.partition_model; %percentage of frames to validate the number of singular values
handles.connectotyping_settings.rep_svd=10; % time per participant, in hours
handles.connectotyping_settings.time_per_part=.5; % time per participant, in hours
handles.connectotyping_settings.n_ar=5; % number of frames for autocorrelation, after skip
handles.connectotyping_settings.QUEUE='"qsub -l mf=4G,h_rt=2:40:00"';
handles.connectotyping_settings.run_connectotype_filename='run_connectotype.sh';
%% List of default environments
handles.env.name{1}='standard';
handles.env.name{2}='no_autocorrelation';
handles.env.name{3}='connectotyping_all_frames';
handles.env.name{4}=['connectotyping_' num2str(handles.connectotyping_settings.default_frames) '_frames'];
handles.env.flag=[1 0 0 0];
handles.env.std_mask_name='frame_removal_mask.mat';
handles.env.raw_tc='raw_timecourses.mat';
handles.env.masked_tc='masked_timecourses.mat';
%% Places where this GUI looks for paths and files, by default
handles.paths.wd=pwd; %working directory
handles.paths.group_file=[handles.paths.wd '/group_lists'];
handles.paths.wb_command='/home/exacloud/lustre1/fnl_lab/code/external/utilities/workbench-1.2.3-HCP/bin_rh_linux64/wb_command';
%handles.paths.append_path_csv_parcellations=['FNL_preproc_v2' fs 'analyses_v2' fs 'timecourses'];% subfolders after pipeline to find csv parcellations
%handles.paths.append_path_motion_numbers=['FNL_preproc_v2' fs 'analyses_v2' fs 'motion'];% subfolders after pipeline to find motion mumbers
%handles.paths.matlab_code_with_EPI=['FNL_preproc_v2' fs 'analyses_v2' fs 'matlab_code' fs 'FNL_preproc_analysis_v2.m'];% subfolders after pipeline to find motion mumbers
%handles.paths.frames=['summary_FNL_preproc_v2' fs 'frames_per_scan.txt'];% subfolders after pipeline to find motion mumbers
%handles.paths.summary_dir=['summary_FNL_preproc_v2'];
%handles.paths.append_results=['MNINonLinear' fs 'Results'];
%% List of defaults for motion
handles.mc.FD_th=0.2;
handles.mc.min_time_minutes=5;
handles.mc.min_frames=60;
handles.mc.skip=5;
handles.mc.ticks=0:.01:.5;% breaks in the FD's
handles.mc.methods{1}='none';
handles.mc.methods{2}='FD';
handles.mc.methods{3}='power_2014_FD_only';
handles.mc.methods{4}='power_2014_motion';
handles.read_none=0;
handles.read_FD=0;
handles.read_power_2014_FD_only=1;
handles.read_power_2014_motion=0;
handles.detect_outliers=0;
%% permissions and file handling
handles.permissions='776';
handles.func_data_name='Functional';
%% Not needed, to run the GUI environments, people need to do addpath(genpath(
% filename=which('GUI_environments');
% [filepath,name,ext] = fileparts(filename);
% addpath('./gifti-1.6/gifti-1.6')