Hi everybody,
I am trying to use a specific head model file to compute sources.
I can extract the head model structure using the function bst_get
Headmodel = bst_get('HeadModelFile', headmodel_directory);
however it is not clear to me how can I enter (as an option) to the following function to compute sources the Headmodel I just extracted.
% Process: Compute sources [2018]
sFiles = bst_process('CallProcess', 'process_inverse_2018', sFiles, [], ...
'output', 1, ... % Kernel only: shared
'inverse', struct(...
'Comment', 'dSPM: MEG ALL', ...
'InverseMethod', 'minnorm', ...
'InverseMeasure', 'dspm2018', ...
'SourceOrient', {{'fixed'}}, ...
'Loose', 0.2, ...
'UseDepth', 1, ...
'WeightExp', 0.5, ...
'WeightLimit', 10, ...
'NoiseMethod', 'reg', ...
'NoiseReg', 0.1, ...
'SnrMethod', 'fixed', ...
'SnrRms', 1e-06, ...
'SnrFixed', 3, ...
'ComputeKernel', 1, ...
'DataTypes', {{'MEG GRAD', 'MEG MAG'}}));
So far I circumvented this issue by copying the head model in the folder containing the data I wanted to source localise.