Home > vbmeg > demo > sample_scripts > test_job_vbfilter.m

test_job_vbfilter

PURPOSE ^

Test job_vbfilter.m, a sample program of VBMEG.

SYNOPSIS ^

function test_job_vbfilter(proj_root,test_parm)

DESCRIPTION ^

 Test job_vbfilter.m, a sample program of VBMEG.

 [syntax]
 test_job_vbfilter(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]
 Bayesian inverse filter file (.vbfilt.mat). 

 [history]
 2010-06-28 Taku Yoshioka

 Copyright (C) 2011, ATR All Rights Reserved.
 License : New BSD License(see VBMEG_LICENSE.txt)

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function test_job_vbfilter(proj_root,test_parm)
0002 % Test job_vbfilter.m, a sample program of VBMEG.
0003 %
0004 % [syntax]
0005 % test_job_vbfilter(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 % Bayesian inverse filter file (.vbfilt.mat).
0022 %
0023 % [history]
0024 % 2010-06-28 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_vbfilter');
0030 resultdir = './vbmeg_result/';
0031 
0032 %
0033 % Filename parameters
0034 %
0035 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0036 filt_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 filt_parm.filterfile ...
0041     = strrep(filt_parm.bayesfile,'.bayes.mat','.vbfilt.mat');
0042 
0043 %
0044 % Execute vb_job_vbfilter (Inverse filter file is not saved)
0045 %
0046 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0047 [VBfilt,Jinfo,bayes_parm] = vb_job_vbfilter(proj_root,filt_parm);
0048 vb_disp('--- End  : test_job_vbfilter');

Generated on Mon 22-May-2023 06:53:56 by m2html © 2005