Home > fmri > anatomicals > anat_start.m

anat_start

PURPOSE ^

or1_start.m

SYNOPSIS ^

This is a script file.

DESCRIPTION ^

 or1_start.m

 Top-level script for analyzing data from Reg's object categorization experiment

 11/22/00 Petr Janata
 02/12/01 PJ -- implemented volume tossing during conversion step

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 % or1_start.m
0002 %
0003 % Top-level script for analyzing data from Reg's object categorization experiment
0004 %
0005 % 11/22/00 Petr Janata
0006 % 02/12/01 PJ -- implemented volume tossing during conversion step
0007 
0008 global dataroot spm_path SCAN_OFFSET
0009 
0010 % List of functions to perform
0011 %
0012 % For each function flag, list subjects for which the function should be run.
0013 % The subject indices refer to indices in the sinfo structure returned by
0014 % get_ts1_sinfo
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 %diary(diary_name);
0026 
0027 NOTIFY = 0;
0028 
0029 %indata_root = '/mnt/cdrom/';
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 % Get info on all subjects
0040 %
0041 
0042 s = get_anat_sinfo;
0043 
0044 %
0045 % Convert data from GE format into AVW
0046 %
0047 
0048 if CONVERT_FORMAT
0049   convert_format(s(CONVERT_FORMAT),indata_root,outdata_root, SCAN_OFFSET);
0050 end
0051 
0052 %
0053 %  Run the SPM batch file
0054 %
0055 
0056 if RUN_SPM_BATCH
0057   spm_bch(batch_file);
0058 end
0059 
0060 %diary on
0061 elapsed_time = etime(clock,start_time)
0062 
0063 if NOTIFY
0064   unix(['mail janata@dartmouth.edu -s "or1_batch finished" < /dev/null'])
0065 %  unix('mail babsi@dartmouth.edu -s "ts1_batch finished" < /dev/null')
0066 end
0067

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