FieldTrip: ft_dipolefitting

Hello
I am trying to do ''FieldTrip ft_dipolefitting'' but it is not active. However, in Edit Preferences I set the path for FieldTrip. What can be the issue?
Thanks

Hi Niko,

Make sure you are processing recordings rather than sources:
image

Refer to the following tutorial page for more information on Dipole Fitting: https://neuroimage.usc.edu/brainstorm/Tutorials/DipoleFitting

Cheers,
Martin

Thanks, now I have it. However, there is output error:

Unfortunately, I believe OpenMEEG cannot currently be used as a forward model for dipole fitting.

@Francois It would be nice if this could also be clarified somehow in the interface. (Like we were talking in the meeting this morning about mixed head models for dipole fitting.) And actually, it should probably be stated in the tutorial as well (something to add to the to do list).

Indeed, the FieldTrip dipole fitting can be used only with spherical head models.
Recomputing the OpenMEEG forward model at each iteration of the optimization is not realistic.

@Marc.Lalancette Do you want to take care of the documentation and code update?

:thinking: I asked for it didn't I... :wink: I could do a quick doc update (Edit: done!). But not sure how you were thinking of implementing it in the interface.

@niko808080 Please update Brainstorm.

I just realized that I added a nice error message when trying to use the FieldTrip dipole fitting with OpenMEEG back in March:
https://github.com/brainstorm-tools/brainstorm3/commit/2a88aeef21e89c983a5ea45a2a3cacb77dbf2f4f#diff-df5dd10d2384664c36392bf80a15c36aR173

1 Like

@Marc.Lalancette You're safe, nothing to do here :slight_smile:

Thanks for the reply. Unfortunately I got another error message:

Yes, that's what we're saying: you can't use OpenMEEG for dipole fitting.

Thanks for the clarification.