<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>Jeff, Marco:</p>
<p><br>
</p>
<p>Good timing, I've been working on similar topics this week. I added processes in Brainstorm to use the forward models in FieldTrip, using ft_volumesegment, ft_prepare_headmodel and ft_prepare_leadfield. For now it is not possible to use the Brainstorm BEM
surfaces to compute the leadfield with FieldTrip, but if you think this is useful, we could probably add this.</p>
<p><br>
</p>
<p>Before the end of the month, I hope to have all the inverse models available as well. We will have the possibility to call them either with Brainstorm or FieldTrip forward solutions.</p>
<p><br>
</p>
I you want to help me with the debugging, or if you want to start working on the inverse/DICS part next week, it's all on github:<br>
<a href="https://github.com/brainstorm-tools/brainstorm3/blob/master/toolbox/process/functions/process_ft_volumesegment.m" class="OWAAutoLink" id="LPlnk34634" previewremoved="true">https://github.com/brainstorm-tools/brainstorm3/blob/master/toolbox/process/functions/process_ft_volumesegment.m</a><br>
<a href="https://github.com/brainstorm-tools/brainstorm3/blob/master/toolbox/process/functions/process_ft_prepare_leadfield.m" class="OWAAutoLink" id="LPlnk581091" previewremoved="true">https://github.com/brainstorm-tools/brainstorm3/blob/master/toolbox/process/functions/process_ft_prepare_leadfield.m</a><br>
<br>
You could create a new process to call the FieldTrip function you want, there are already many other examples of wrappers available:<br>
<span>process_ft_channelrepair.m</span><br>
<span><span>process_ft_dipolefitting.m</span><br>
<span>process_ft_scalpcurrentdensity.m</span><br>
<span>process_ft_timelockstatistics.m</span><br>
<span>process_ft_sourcestatistics.m</span><br>
<span>process_ft_freqstatistics.m</span><br>
<br>
If you need help with the plugin API in Brainstorm:<br>
<a href="http://neuroimage.usc.edu/brainstorm/Tutorials/TutUserProcess" class="OWAAutoLink" id="LPlnk582807" previewremoved="true">http://neuroimage.usc.edu/brainstorm/Tutorials/TutUserProcess</a><br>
</span><br>
Functions to convert Brainstorm files into FieldTrip structures:<br>
brainstorm3/toolbox/io/out_fieldtrip_*.m<br>
<br>
<span>Cheers,<br>
Francois<br>
</span><br>
<br>
<div style="color: rgb(0, 0, 0);">
<div class="PlainText">
<hr tabindex="-1" style="display:inline-block; width:98%">
<br>
Hi Marco,<br>
<br>
Sorry to say I was not successful, yet. I have shifted to other tasks at this point. I am using 256 channel EEG, and want to use the FreeSurfer cortical ribbon as my source model (I would prefer source/headmodels to be FEM as well). I found that a lot of FieldTrip
is based on regular dipole grids, and also it is more oriented to MEG than EEG. I do not have the time right now to try to put all the pieces together in FieldTrip to do what I want, but might get back to it in a month or two.<br>
<br>
Sorry I could not be of more help to you right now.<br>
<br>
-Jeff<br>
<br>
<br>
<br>
From: Marco Buiatti [<a href="mailto:marco.buiatti@gmail.com">mailto:marco.buiatti@gmail.com</a>]<br>
Sent: Friday, November 04, 2016 3:08 AM<br>
To: FieldTrip discussion list; K Jeffrey Eriksen<br>
Subject: Re: [FieldTrip] importing Brainstorm head and source models and leftfields<br>
<br>
Dear all,<br>
<br>
I have Jeff's same question. I have anatomies ready in Brainstorm: segmented data imported, co-registration with MEG sensor space, computation of head model with overlapping spheres. Now I would like to import all this into Fieldtrip for source reconstruction
of oscillatory sources (DICS).<br>
What's the best way to do this?<br>
<br>
And is there any difference between Brainstorm and Fieldtrip in these steps that I should be aware of?<br>
<br>
Jeff, did you manage to solve the problem?<br>
<br>
Thanks a lot,<br>
<br>
Marco<br>
<br>
</div>
<font size="2"><span style="font-size:10pt;"></span></font></div>
</div>
</body>
</html>