-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmcinet_pipeline_BASC_MSTEPS.m
46 lines (37 loc) · 2.23 KB
/
mcinet_pipeline_BASC_MSTEPS.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
%%% MCINET BASC script with MSTEPS
clear all
addpath(genpath('/home/atam/quarantaine/niak-boss-0.12.18'));
path_data = '/home/atam/database/';
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Setting input/output files %%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
files_in = niak_grab_region_growing([path_data 'adnet/region_growing_20141210/rois/']);
files_in.infos = [path_data 'adnet/models/admci_model_group_20141210.csv']; % A file of comma-separeted values describing additional information on the subjects, this can be omitted
%%%%%%%%%%%%%
%% Options %%
%%%%%%%%%%%%%
opt.folder_out = [path_data 'adnet/basc_40sc_20141210_msteps/']; % Where to store the results
opt.grid_scales = 5:5:200; % Search for stable clusters in the range 10 to 500
% opt.scales_maps = repmat(opt.grid_scales,[1 3]); % The scales that will be used to generate the maps of brain clusters and stability.
% % In this example the same number of clusters are used at the individual (first column),
% % group (second column) and consensus (third and last colum) levels.
opt.scales_maps = [5 4 4;...
5 7 6;...
15 12 12;...
20 22 22;...
35 35 33;...
80 64 65;...
130 117 111;...
190 209 208];
opt.stability_tseries.nb_samps = 100; % Number of bootstrap samples at the individual level. 100: the CI on indidividual stability is +/-0.1
opt.stability_group.nb_samps = 1000; % Number of bootstrap samples at the group level. 500: the CI on group stability is +/-0.05
opt.flag_ind = false; % Generate maps/time series at the individual level
opt.flag_mixed = false; % Generate maps/time series at the mixed level (group-level networks mixed with individual stability matrices).
opt.flag_group = true; % Generate maps/time series at the group level
%%%%%%%%%%%%%%%%%%%%%%
%% Run the pipeline %%
%%%%%%%%%%%%%%%%%%%%%%
opt.flag_test = false; % Put this flag to true to just generate the pipeline without running it. Otherwise the region growing will start.
opt.psom.qsub_options= '-A gsf-624-aa -q sw -l nodes=1:ppn=2 -l walltime=30:00:00';
%opt.psom.max_queued = 10; % Uncomment and change this parameter to set the number of parallel threads used to run the pipeline
pipeline = niak_pipeline_stability_rest(files_in,opt);