Test job_current.m, a sample program of VBMEG. [syntax] test_job_current(proj_root,test_parm) [input] proj_root: <<string>> VBMEG project root directory. test_parm: <<struct>> Test condition variables. --- fields of test_parm cortex : <<string>> 'bv' for BrainVoyager, 'fs' for FreeSurfer. data : <<string>> 'meg' for MEG data, 'eeg' for EEG data. method : <<string>> 'sarvas' for Sarvas, 'bem' for BEM. prior : <<string>> 'sparse' for sparse (noninformative), 'fmri' for fMRI prior. tempwin: <<string>> 'single' for single time window, 'multiple' for multiple time windows. --- [output] Current file (.curr.mat). [history] 2010-07-23 Taku Yoshioka Copyright (C) 2011, ATR All Rights Reserved. License : New BSD License(see VBMEG_LICENSE.txt)
0001 function Z = test_job_current(proj_root,test_parm) 0002 % Test job_current.m, a sample program of VBMEG. 0003 % 0004 % [syntax] 0005 % test_job_current(proj_root,test_parm) 0006 % 0007 % [input] 0008 % proj_root: <<string>> VBMEG project root directory. 0009 % test_parm: <<struct>> Test condition variables. 0010 % --- fields of test_parm 0011 % cortex : <<string>> 'bv' for BrainVoyager, 'fs' for FreeSurfer. 0012 % data : <<string>> 'meg' for MEG data, 'eeg' for EEG data. 0013 % method : <<string>> 'sarvas' for Sarvas, 'bem' for BEM. 0014 % prior : <<string>> 'sparse' for sparse (noninformative), 'fmri' for 0015 % fMRI prior. 0016 % tempwin: <<string>> 'single' for single time window, 'multiple' for 0017 % multiple time windows. 0018 % --- 0019 % 0020 % [output] 0021 % Current file (.curr.mat). 0022 % 0023 % [history] 0024 % 2010-07-23 Taku Yoshioka 0025 % 0026 % Copyright (C) 2011, ATR All Rights Reserved. 0027 % License : New BSD License(see VBMEG_LICENSE.txt) 0028 0029 vb_disp('--- Start: test_job_current'); 0030 resultdir = './vbmeg_result/'; 0031 0032 % 0033 % Filename parameters 0034 % 0035 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 0036 curr_parm.bayesfile ... 0037 = [resultdir 'sbj_test_UR_' test_parm.cortex '_' test_parm.data '_' ... 0038 test_parm.method '_' test_parm.prior '_' test_parm.tempwin ... 0039 '.bayes.mat']; 0040 curr_parm.currfile ... 0041 = strrep(curr_parm.bayesfile,'.bayes.mat','.curr.mat'); 0042 curr_parm.areafile = []; 0043 0044 % 0045 % Execute vb_job_current.m 0046 % 0047 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 0048 [Z,Jinfo,Jext] = vb_job_current(proj_root,curr_parm); 0049 vb_disp('--- End : test_job_current');