forked from francopestilli/life_scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy paths_fe_make_wm_mask.m
31 lines (27 loc) · 973 Bytes
/
s_fe_make_wm_mask.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
function s_fe_make_wm_mask
%
% This script makes the white-matter mask used to track the connectomes in
% Pestilli et al., LIFE paper.
%
% Retinotopy folder: /biac4/wandell/data/anatomy/
%
% Written by Franco Pestilli (c) Stanford University, Vista Team 2013
% Get the base directory for the data
datapath = '/home/frk/2t1/predator/';
subjects = {...
'KK_96dirs_b2000_1p5iso', ...
'JW_96dirs_b2000_1p5iso', ...
'HT_96dirs_b2000_1p5iso', ...
'KW_96dirs_b2000_1p5iso', ...
'FP_96dirs_b2000_1p5iso', ...
'MP_96dirs_b2000_1p5iso', ...
};
md_percentile = 95;
for isbj = 1:length(subjects)
% Load the class file
classFile = fullfile(datapath,subjects{isbj},'anatomy', 't1_class.nii.gz');
wmMaskFile = fullfile(datapath,subjects{isbj},'anatomy','wm_mask.nii.gz');
mdFile = fullfile(datapath,subjects{isbj},'dtiInit','dt6.mat');
wmMask = feMakeWMmask(classFile,mdFile,wmMaskFile,md_percentile);
end
end % Main function