You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@Eric89GXL yes regional/spatiotemporal or moving dipole fits that may be exported as ASCII or binary files. The ASCII files contain a header block followed by >1 lines of fit data per dipole; I'll upload the ASCII files you asked for shortly.
I really like the idea. While improving the plotting for dipolar sources, we should also think of modifying the sparse source reconstruction methods, which we have in mne-python, to give dipole output (and stc?), so that we can use the same plot functions for sparse imaging, dipole mapping, and RAP-MUSIC. That would also make it easier to compare these methods.
No progress yet.
I guess we could plot them in slices of an MRI viewer but it probably won't
end up being all that satisfying.
A Mayavi window with translucent head and BEM shells actually would work.
Now that I think about it, neither of these should be all that much work.
WDYT?
I think that showing the dipoles on MRI slices is a good idea as this is what people are used to see from other toolboxes.
Maybe it is also a good idea to combine both of your approaches. We could have four axes, three showing orthogonal MRI slices with dipoles and a fourth axes showing a glas brain with the dipoles and orthogonal planes indicating the slices. This fourth plot could then be used e.g. to control the crosshair for the other three axes (e.g. to navigate between dipoles). Furthermore, the glass brain could be used to demonstrate the variability of the source orientation over time by adding a time index (for this a fifth axes showing the time courses could be useful too).
Have you looked at nibabel orthoview? It's close to what you mention with
cross hairs and four axes. Ideally we would just need to add a fifth for
glass brain, but since the first four axes are mpl and the fifth mayavi
it's probably easiest just to make separate windows, lest we hit awful
backend problems. (Matplotlib and mayavi have enough backend problems by
themselves, combining them will surely make the problems worse.) Maybe
matplotlib itself has decent enough 3D for this simple task, but I doubt
it.
@Eric89GXL in hope of making sense I am thinking whether it maybe possible to use localization data shown above as M+SEM scatter, to create a mask image for nilearn.plotting.plot_glass_brain? What I don't know is whether it's possible/necessary to make a glass brain based on MRI template I am using?
In this case, given spheres and head shapes alone without MRI data, I presume warping or linear transform makes little difference in the end result.
It probably won't make a big difference for plotting. But it would be good to have for surrogate subjects at some point, so I'd like to get that going if possible instead of using a stand-in method now that might require deprecation later.
Just a note on this topic that in addition to using a glass head with translucent brain, we could add cut-plane MRI slices using Mayavi (which I didn't know was possible).
@agramfort to modernize this issue, I would probably make vtkImagePlaneWidget support to Brain, and then add dipole plotting to brain. It seems better than adding a mayavi or 3D backend to plot_dipole_mri_orthoview.
Activity
dengemann commentedon Mar 8, 2016
good idea.
larsoner commentedon Mar 8, 2016
@kambysese is this the sort of thing XFit does, too?
larsoner commentedon Mar 8, 2016
Now that nibabel has a slice viewer we could use that. Or should we use nilearn?
agramfort commentedon Mar 8, 2016
kingjr commentedon Mar 8, 2016
And nilearn is not going to support interactive viewing any time soon. So
+1 for the nibabel viewer.
On 8 March 2016 at 10:09, Alexandre Gramfort [email protected]
wrote:
ktavabi commentedon Mar 8, 2016
@Eric89GXL yes regional/spatiotemporal or moving dipole fits that may be exported as
ASCIIor binary files. TheASCIIfiles contain a header block followed by >1 lines of fit data per dipole; I'll upload theASCIIfiles you asked for shortly.joewalter commentedon Mar 9, 2016
I really like the idea. While improving the plotting for dipolar sources, we should also think of modifying the sparse source reconstruction methods, which we have in mne-python, to give dipole output (and stc?), so that we can use the same plot functions for sparse imaging, dipole mapping, and RAP-MUSIC. That would also make it easier to compare these methods.
agramfort commentedon Mar 9, 2016
larsoner commentedon May 11, 2016
I'll probably take this on soonish, unless someone else was planning to.
joewalter commentedon Jul 26, 2016
@Eric89GXL have you made any progress on this issue?
Are there already ideas how to generalize the representation of sparse stcs and dipoles?
larsoner commentedon Jul 26, 2016
joewalter commentedon Jul 27, 2016
I think that showing the dipoles on MRI slices is a good idea as this is what people are used to see from other toolboxes.
Maybe it is also a good idea to combine both of your approaches. We could have four axes, three showing orthogonal MRI slices with dipoles and a fourth axes showing a glas brain with the dipoles and orthogonal planes indicating the slices. This fourth plot could then be used e.g. to control the crosshair for the other three axes (e.g. to navigate between dipoles). Furthermore, the glass brain could be used to demonstrate the variability of the source orientation over time by adding a time index (for this a fifth axes showing the time courses could be useful too).
larsoner commentedon Jul 27, 2016
10 remaining items
ktavabi commentedon Sep 9, 2016
@Eric89GXL in hope of making sense I am thinking whether it maybe possible to use localization data shown above as M+SEM scatter, to create a mask image for
nilearn.plotting.plot_glass_brain? What I don't know is whether it's possible/necessary to make a glass brain based on MRI template I am using?larsoner commentedon Sep 9, 2016
It probably won't make a big difference for plotting. But it would be good to have for surrogate subjects at some point, so I'd like to get that going if possible instead of using a stand-in method now that might require deprecation later.
larsoner commentedon Jan 25, 2017
Just a note on this topic that in addition to using a glass head with translucent brain, we could add cut-plane MRI slices using Mayavi (which I didn't know was possible).
[-]plot dipole locations with MRI slices[/-][+]ENH: dipole plotting with MRI[/+][-]ENH: dipole plotting with MRI[/-][+]ENH: improve dipole plotting with MRI[/+]hoechenberger commentedon Apr 27, 2020
:D
ktavabi commentedon Apr 27, 2020
Mayavi...swell 😐
larsoner commentedon Jan 7, 2021
@agramfort to modernize this issue, I would probably make vtkImagePlaneWidget support to
Brain, and then add dipole plotting tobrain. It seems better than adding amayavior 3D backend toplot_dipole_mri_orthoview.agramfort commentedon Jan 7, 2021
larsoner commentedon Jan 7, 2021
Brain.add_mrito add the slicerBrain.add_dipolesto add aDipoleinstanceagramfort commentedon Jan 7, 2021