Orient the source in BST

Hello,

Is there a way to simulate a dipole with different orientation, x y and z ?
I know that there is a way to simulate in BST, but how do you orient the sources?

Thank you

For discussions about simulating EEG or MEG data in Brainstorm, you can search the forum. Some discussions are listed in example at the end of the source estimation tutorial:
https://neuroimage.usc.edu/brainstorm/Tutorials/SourceEstimation#Additional_documentation

There are 3 easy ways to deal with source locations/orientations with Brainstorm:

There are no other easy configurations that can be handled from the interface.
It is possible to do simulations with manually defined orientations, but you most likely have to write your own Matlab scripts to do it.

@ArndMeiser has done this recently in a simulation study for evaluating ear-EEG devices.
Maybe he has some advice or scripts to share?

Can you please let me know, how to manually define orientation?

You can call the function bst_headmodeler.m manually.

  • Put a breakpoint at the beginning of the function, then run the computation of the forward model from the interface (menu "Compute head model"), using constrained orientations.
  • Explore the OPTIONS structure to understand how to call this function yourself
  • Just add the definition of the fields GridLoc (dipole location) and GridOrient (dipole orientation) in order to override the default values for this case (position=cortex, orientation=normal to cortex).