-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathrun_SiemensGRErecon_cluster.m
executable file
·38 lines (30 loc) · 1.28 KB
/
run_SiemensGRErecon_cluster.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
% rawDataFile = ''; % <-- this variable should now be set in calling script for cluster submission
if ~exist(rawDataFile,'file')
disp(['File ' rawDataFile ' not found, trying locally instead.'])
rawDataFile = fullfile(script_pwd,rawDataFile);
if ~exist(rawDataFile,'file')
disp(['Error: file ' rawDataFile ' not found either'])
else
disp(['File ' rawDataFile ' located!'])
end
end
disp(['Attempting to reconstruct: ' rawDataFile]);
run([getenv('RETROMOCOBOX_HOME') '/addRetroMoCoBoxToPath.m']);
% run([getenv('MIRT_HOME') '/setup.m']); % not needed now that NUFFT from
% MIRT is included in retromocobox directly
addpath(getenv('SPM_HOME'));
CLUSTER_LOG_PATH = getenv('CLUSTER_LOG_PATH');
%%
addpath([retroMoCoPath '/cluster']); % add the cluster subfolder to the path
%swapDims_xyz = [1 0 1]; % <-- seems to be correct for current FatNav ASPIRE protocol
if ~exist('swapDims_xyz','var')
swapDims_xyz = [1 0 1]; % <-- seems to be correct for current FatNav ASPIRE protocol
end
if ~exist('bKeepGRAPPArecon','var')
bKeepGRAPPArecon = 0;
end
if ~exist('outRoot','var')
outRoot = [];
end
%%
reconstructSiemensGREwithFatNavs_cluster(rawDataFile,'swapDims_xyz',swapDims_xyz,'CLUSTER_LOG_PATH',CLUSTER_LOG_PATH,'bKeepGRAPPArecon',bKeepGRAPPArecon,'outRoot',outRoot);