-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathrsHRF_global_para.m
48 lines (38 loc) · 1.51 KB
/
rsHRF_global_para.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
function para = rsHRF_global_para()
%% HRF estimation using parallel computation across voxel/vertex.
para.flag_parfor = 1;
%% miminum BOLD-fMRI volumes (3D)
para.volume_threshold = 30;
%% Number of basis functions (k), Only setting for ''Gamma Functions'' (k), ''Fourier Set'' (2k+1), ''Fourier Set (Hanning)'' (2k+1)';
para.num_basis = 3;
%% iterations for iterative Wiener deconvolution
para.num_iterations = 10;
%% save pvalue for seed based GC map (NIfTI/GIfTI)
para.flag_pval_pwgc = 1;
para.regmode = 'LWR'; % VAR model estimation regression mode ('OLS', 'LWR')
%% save response height PSC (percent signal change) maps (NIfTI/GIfTI)
para.flag_save_psc = 1;
%% Combine all input signals for connectivity analysis
para.combine_ROI = 1; % 1 combine, 0: no
%% the significance level for determination of outliers
para.pvalue_rm = 0.05;
para.rmoutlier_deconv = 1; %replace outlier in deconvolved signals (only work for 4D data)
para.Inpainted = 0; %Inpainted NAN, using the plate method
% para.Inpainted = 1; %Inpainted NAN with the springs method. It is often considerably faster, but not quite as smooth.
%% whether delete temporary files (brain mask, atlas in fMRI spaces)
para.delete_files = 1;
%% default mask: for human brain (in normalizedd MNI space)
isMNI = 0;
if isMNI
para.mask_nii = fullfile(spm('Dir'),'tpm','mask_ICV.nii');
if ~exist(para.mask_nii,'file')
para.mask_nii ='';
end
else
para.mask_nii ='';
end
%% default mask: animal?
isanimal = 0; % animal ?
if isanimal
para.mask_nii ='';
end