0001
0002
0003
0004
0005
0006
0007
0008 global dataroot spm_path SCAN_OFFSET
0009
0010
0011
0012
0013
0014
0015
0016
0017 start_time = clock;
0018
0019 CONVERT_FORMAT = [2];
0020
0021 RUN_SPM_BATCH = 0;
0022 batch_file = '/data1/matlab/or1/or1_batch.m';
0023
0024 diary_name = sprintf('or1_diary_%s_%s', datestr(datenum(now),1), datestr(datenum(now),15));
0025
0026
0027 NOTIFY = 0;
0028
0029
0030 indata_root = '/data1/anatomicals';
0031 outdata_root = '/data1/anatomicals';
0032 spm_root = '/data1/or1/';
0033
0034 dataroot = spm_root;
0035
0036 spm_path = '/usr/local/matlab/toolbox/local/spm99/';
0037
0038
0039
0040
0041
0042 s = get_anat_sinfo;
0043
0044
0045
0046
0047
0048 if CONVERT_FORMAT
0049 convert_format(s(CONVERT_FORMAT),indata_root,outdata_root, SCAN_OFFSET);
0050 end
0051
0052
0053
0054
0055
0056 if RUN_SPM_BATCH
0057 spm_bch(batch_file);
0058 end
0059
0060
0061 elapsed_time = etime(clock,start_time)
0062
0063 if NOTIFY
0064 unix(['mail janata@dartmouth.edu -s "or1_batch finished" < /dev/null'])
0065
0066 end
0067