0001 function vb_test_gave2
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017 sbj_dir = '/home/cbi-data5/taku-y/public/vbmeg0.90_coreg/subjects/';
0018 sbj_id = {'0001','0002','0003','0004'};
0019
0020
0021 brain_parm = vb_set_brain_parm;
0022
0023 for i=1:length(sbj_id)
0024
0025 proj_root = ['./subjects/' sbj_id{i} '/'];
0026 brain_parm.analyze_file ...
0027 = [sbj_dir sbj_id{i} '/brain/3D.hdr'];
0028 brain_parm.FS_left_file ...
0029 = [sbj_dir sbj_id{i} '/brain/lh.smoothwm.asc'];
0030 brain_parm.FS_right_file ...
0031 = [sbj_dir sbj_id{i} '/brain/rh.smoothwm.asc'];
0032 brain_parm.FS_left_infl_file ...
0033 = [sbj_dir sbj_id{i} '/brain/lh.inflated.asc'];
0034 brain_parm.FS_right_infl_file ...
0035 = [sbj_dir sbj_id{i} '/brain/rh.inflated.asc'];
0036 brain_parm.FS_left_curv_file ...
0037 = [sbj_dir sbj_id{i} '/brain/lh.curv.asc'];
0038 brain_parm.FS_right_curv_file ...
0039 = [sbj_dir sbj_id{i} '/brain/rh.curv.asc'];
0040 brain_parm.analyze_file ...
0041 = [sbj_dir sbj_id{i} '/brain/3D.hdr'];
0042 brain_parm.brain_sphL ...
0043 = [sbj_dir sbj_id{i} '/brain/lh.sphere.reg.asc'];
0044 brain_parm.brain_sphR ...
0045 = [sbj_dir sbj_id{i} '/brain/rh.sphere.reg.asc'];
0046 brain_parm.key ...
0047 = 'sphere.reg';
0048
0049 brain_parm.brain_file ...
0050 = ['./subjects/' sbj_id{i} '/brain/' sbj_id{i} '.brain.mat'];
0051 brain_parm.area_file ...
0052 = ['./subjects/' sbj_id{i} '/brain/' sbj_id{i} '.area.mat'];
0053 brain_parm.act_file ...
0054 = ['./subjects/' sbj_id{i} '/brain/' sbj_id{i} '.act.mat'];
0055
0056 vb_job_brain(proj_root,brain_parm);
0057 vb_job_inflate(proj_root,brain_parm);
0058 vb_job_brain_add_sphcoord(proj_root,brain_parm);
0059
0060
0061 coreg_parm.source_file = brain_parm.brain_file;
0062 coreg_parm.source_key = 'sphere.reg';
0063 coreg_parm.target_file = [sbj_dir 'fsaverage/brain/' ...
0064 'fsaverage.brain.mat'];
0065 coreg_parm.target_key = 'sphere.reg';
0066 coreg_parm.key = 'fsaverage.sphere.reg';
0067
0068 vb_job_coreg_brain(proj_root,coreg_parm);
0069 end;
0070
0071 return;