hi
I wrote a script to define scouts from 64 channel EEG file (after source estimation). I used bst_process for it.
for s=1:len
% locate all source file of the current subject in the bs database
subj{s} = list(s).name;
%results_files='F:\PHD_Thesis\1-BrainStorm\EEG_brainstorm\brainstorm_db\Protocol01\data\s01\s01_ep_ar\results*';
%%%%results_dSPM_EEG_KERNEL_190209_1200.mat
results_files=dir([Path_bs subj{s} filesep subj{s} '_ep_ar' filesep 'results*']);
% combine path and file name
source_file = [subj{s} filesep subj{s} '_ep_ar' filesep results_files.name];
% Start a new report
bst_report('Start', sFiles);
% Process: extract scouts time series: 'S_temporal_transverse R'
sFiles = bst_process('CallProcess', 'process_extract_scout', ...
source_file, [], ...
'timewindow', [], ...
'scouts', {'Destrieux', {'S_temporal_transverse R'}}, ...
'scoutfunc', 1, ...
'isflip', 1, ...
'isnorm', 0, ...
'concatenate', 1, ...
'save', 1, ...
'addrowcomment', 1, ...
'addfilecomment', 1);
% Process: extract scouts time series: 'S_temporal_transverse L'
sFiles = bst_process('CallProcess', 'process_extract_scout', ...
source_file, [], ...
'timewindow', [], ...
'scouts', {'Destrieux', {'S_temporal_transverse L'}}, ...
'scoutfunc', 1, ...
'isflip', 1, ...
'isnorm', 0, ...
'concatenate', 1, ...
'save', 1, ...
'addrowcomment', 1, ...
'addfilecomment', 1);
% Save and display report
ReportFile = bst_report('Save', sFiles);
bst_report('Open', ReportFile);
end
but everytime Error appeared
"Error using bst_process>CallProcess (line 2086)
Please start Brainstorm before calling bst_process().
Error in bst_process (line 36)
eval(macro_method);"
how can i solve this problem?
Please help