rreh
August 17, 2022, 3:50pm
1
Hello,
Can anyone tell me how to generate the script for the Model evaluation > Simulate recordings step you can perform in the GUI by right clicking on the source localization model? I've looked at both the source localization and the simulation tutorial, but there isn't a lot of information on scripting.
Thank you,
Rebecca
Hi Rebecca,
That menu uses the function bst_simulation()
function newDataFile = bst_simulation(ResultsFile, iVertices, Comment, isVolumeAtlas)
% BST_SIMULATION: Create a pseudo-recordings file by multiplying the forward model with the sources.
%
% USAGE: newDataFile = bst_simulation(ResultsFile, iVertices, Comment='', isVolumeAtlas=0)
% newDataFile = bst_simulation(ResultsFile, iVertices) : Use only the selected vertices
% newDataFile = bst_simulation(ResultsFile) : Use all the vertices
%
% INPUT:
% - ResultsFile : Full or relative path to a brainstorm sources file
% - iVertices : Indices of the sources to use to simulate the recordings
% - Comment : Comment inserted in the created file
% OUTPUT:
% - newDataFile : Full path to the simulated recordings file created and saved in the database
% @=============================================================================
% This function is part of the Brainstorm software:
% https://neuroimage.usc.edu/brainstorm
%
% Copyright (c) University of Southern California & McGill University
% This software is distributed under the terms of the GNU General Public License
This file has been truncated. show original
The function takes as argument the (full or) relative path to the Brainstorm source file.
Best,
Raymundo