Automation several steps

Hello !
I have a question concerning the software.

For now, I have already done the following steps:

  1. Import MRI, surfaces, sensors (Ecog)
  2. Create an BEM head model
  3. Create N scouts. (N=100)
  4. Affect 2 signals to 2 different scouts (2 chosen in the 100 availabled)
  5. Simulate Ecog recordings from the 2 scouts.
  6. Import files on Matlab
  7. Compute correlation between signals

Now I'd like to automatize the next procedure by doing a loop:

  1. Affect 2 signals to 2 different scouts chosen randomly
  2. Simulate Ecog recordings from the 2 scouts.
  3. Reconstruct time series of scouts.
  4. Compute correlation between signals .

Is it possible?

Thank you in advance,
Regards,
Théo

Yes, you should be able to write a script to automate these processes.

Start by reading the Scripting tutorial:
https://neuroimage.usc.edu/brainstorm/Tutorials/Scripting

Then find additional inspiration in some of the tutorial scripts, like the one associated with the Simulation tutorial:
https://neuroimage.usc.edu/brainstorm/Tutorials/Simulations#Scripting