Home > vbmeg > demo > tutorial_for_vbmeg2 > easy_VBMEG > creat_project_standard.m

creat_project_standard

PURPOSE ^

Set paths and parameters for all the processes

SYNOPSIS ^

function p = creat_project_standard(sub)

DESCRIPTION ^

 Set paths and parameters for all the processes

 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 p = creat_project_standard(sub)
0002 % Set paths and parameters for all the processes
0003 %
0004 % Copyright (C) 2011, ATR All Rights Reserved.
0005 % License : New BSD License(see VBMEG_LICENSE.txt)
0006 
0007 %% Set basic directories and files
0008 p = struct;
0009 p.sub = sub;
0010 p.proj_root = fullfile(cd, '..', 'analyzed_data', p.sub);% Directory to save analyzed data
0011 p.raw_data_root = fullfile(cd, '..', 'raw_data', p.sub);% Directory of raw data
0012 p.fmri_dirname = fullfile(cd, '..', 'fmri_result');% Directory of fMRI result
0013 p.fig_root = fullfile(cd, '..', 'figure');% Directory to save figures
0014 
0015 
0016 
0017 %% Parameters for analyzing data
0018 
0019 % For filtering EEG/MEG data
0020 p.bias_flg = 1; % Bias correction (=0/1/2: OFF/Bias/Linear)
0021 p.highpass = 0.4; % Highpass filter cutoff frequency [Hz]
0022 p.lowpass = 50; % Lowpass  filter cutoff frequency [Hz]
0023 p.fsamp = 1000;% down sampling frequency [Hz]
0024 p.highpass_online = 0; % order of online highpass filter (0=eegfilt)
0025 p.lowpass_online = 0; % order of online lowpass filter (0=eegfilt)
0026 p.common_flg = 0;% Common reference flag (=1/0 : ON/OFF)
0027 
0028 % For making trial data of EEG/MEG
0029 p.Pretrigger_ms = 1000; % before trigger [msec]
0030 p.Posttrigger_ms = 1000; % after trigger [msec]
0031 
0032 % For classifying ICs as noise or not
0033 p.threshold_ourlier = 1.64;
0034 p.threshold_num_of_outlier = 0.2;
0035 
0036 % For estimating source current
0037 p.prior = 'Uniform';
0038 p.prior_weight = 0.01;% Relative influence of prior information (0-1)
0039 
0040 
0041 %% File and directory name
0042 
0043 % For EEG/MEG preprocessing
0044 p.eeg_dirname='eeg';
0045 p.meg_dirname='meg';
0046 p.struct_name = 'Subject';
0047 p.load_dirname='loaded';
0048 p.denoise_dirname='denoised';% For MEG data
0049 p.filter_dirname='filtered';
0050 p.trial_dirname='trial';
0051 p.ica_dirname = 'ica';
0052 
0053 % For source current estimation
0054 p.leadfield_dirname = 'leadfield';
0055 p.current_dirname = 'current';
0056

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