Home > fmri > simulate > simulate_start.m

simulate_start

PURPOSE ^

simulate_start.m

SYNOPSIS ^

This is a script file.

DESCRIPTION ^

 simulate_start.m

 Top-level script for batch processing

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 % simulate_start.m
0002 %
0003 % Top-level script for batch processing
0004 %
0005 
0006 % 11/12/03 Petr Janata
0007 
0008 if strmatch('MAC',computer)
0009   warning off MATLAB:warn_parse_feval_script
0010 end
0011 
0012 global dataroot batch_root spm_path SCAN_OFFSET sinfo
0013 
0014 % List of functions to perform
0015 %
0016 % For each function flag, list subjects for which the function should be run.
0017 % The subject indices refer to indices in the sinfo structure returned by
0018 % get_prime_long_sinfo
0019 %
0020 
0021 start_time = clock;
0022 
0023 CONVERT_FORMAT = []; % 1:n
0024 
0025 RUN_SPM_BATCH = 1;
0026 batch_root = pwd;
0027 batch_file = fullfile(batch_root,'simulate_batch.m');
0028 
0029 spm_path = '/usr/local/matlab/toolbox/local/spm99/';
0030 
0031 dataroot = '/data1/simulate/';
0032 
0033 
0034 %
0035 % Get info on all subjects
0036 %
0037 
0038 sinfo = get_simulate_sinfo;
0039 
0040 %
0041 % Convert data from GE format into AVW
0042 %
0043 
0044 if CONVERT_FORMAT
0045   convert_format(sinfo(CONVERT_FORMAT),dataroot,dataroot, SCAN_OFFSET);
0046 end
0047 
0048 %
0049 %  Run the SPM batch file
0050 %
0051 
0052 if RUN_SPM_BATCH
0053   spm_bch(batch_file);
0054 end
0055 
0056 elapsed_time = etime(clock,start_time)

Generated on Wed 20-Sep-2023 04:00:50 by m2html © 2003