MRI volume source / script

Hi,

Is there a way to access this window through the Pipeline Editor please?


It looks like the Pipeline Editor only takes the default setting. I would like to feed the head model with my own sources grid (and by script!)

Thank you,
Vito

Hi Vito,

Indeed, there is no way to use this advanced interface to set your own source space from the pipeline editor.
I’ve just added an easy way to call the head modeler process with your own source grids, from a script.

  1. Update Brainstorm
  2. Drop your data files in Process1 and select the process “Sources > Compute head model” in the pipeline editor
  3. Generate a Matlab script for this pipeline (last button in the toolbar of the pipeline editor)
  4. Edit the script to add the options ‘gridloc’ ([Nsource x 3] matrix) and ‘gridorient’ (empty or [Nsource x 3] matrix)

You should get a call that looks like this:

sFiles = bst_process(...
    'CallProcess', 'process_headmodel', ...
    sFiles, [], ...
    'comment', 'YOUR_COMMENT', ...
    'sourcespace', 2, ...
    'meg', 3, ...  % Overlapping spheres
    'eeg', 3, ...  % OpenMEEG BEM
    'ecog', 2, ...  % OpenMEEG BEM
    'seeg', 2, ...
    'gridloc',    YOUR_GRID_LOC, ...
    'gridorient', [], ...
    'openmeeg', struct(...
         'BemFiles', {{}}, ...
         'BemNames', {{'Scalp', 'Skull', 'Brain'}}, ...
         'BemCond', [1, 0.0125, 1], ...
         'BemSelect', [1, 1, 1], ...
         'isAdjoint', 0, ...
         'isAdaptative', 1, ...
         'isSplit', 0, ...
         'SplitLength', 4000));

Cheers,
Francois