Hi!
I have a study with a large number of conditions, with each condition using sLORETA to localize sources. I want to export all of my source localizations to the Niftil format using the “Export as 4D matrix” command under “File”, and I was wondering if there might be a way to automate this from within Brainstorm, or if there otherwise might be a minor tweak that I could make to the Matlab io scripts to make it batch-able.
Merci bien de votre aide,
John Pellman
Hi John,
There is no way to export easily many files as 4D volumes from the interface, but you can do that easily with a script.
First, get use the pipeline editor to generate a list of the files you want to process: drag and drop the nodes of the database you are interested in in the Process1 tab, select any process, and export the pipeline as a script, just to get the list of all the results files. See the following tutorial for more details:
http://neuroimage.usc.edu/brainstorm/Tutorials/TutProcesses
Then loop over this list of “results_…mat” files and call the function brainstorm3/toolbox/io/out_results_volume.m
Read the documentation in the code of the function itself. You have to have Brainstorm running in the background.
Cheers,
Francois