Skip to content

ENH: improve dipole plotting with MRI #2995

Open

Description

@agramfort

see fieldtrip ft_plot_dipole.m and ft_plot_slice.m

see their tuto at : http://www.fieldtriptoolbox.org/tutorial/natmeg/dipolefitting

EDIT:

Enhancements to plot_dipole_mri_orthoview (#3966):

Activity

  1. dengemann commented on Mar 8, 2016

    @dengemann
    Member

    good idea.

  2. larsoner commented on Mar 8, 2016

    @larsoner
    Member

    @kambysese is this the sort of thing XFit does, too?

  3. larsoner commented on Mar 8, 2016

    @larsoner
    Member

    Now that nibabel has a slice viewer we could use that. Or should we use nilearn?

  4. agramfort commented on Mar 8, 2016

    @agramfort
    SponsorMemberAuthor
  5. kingjr commented on Mar 8, 2016

    @kingjr
    Member

    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:

    I think nibabel would be more adapted. We already have a weak dep on
    nibabel

    —
    Reply to this email directly or view it on GitHub
    #2995 (comment)
    .

  6. ktavabi commented on Mar 8, 2016

    @ktavabi
    Contributor

    @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.

  7. joewalter commented on Mar 9, 2016

    @joewalter
    Member

    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.

  8. agramfort commented on Mar 9, 2016

    @agramfort
    SponsorMemberAuthor
  9. larsoner commented on May 11, 2016

    @larsoner
    Member

    I'll probably take this on soonish, unless someone else was planning to.

  10. added this to the 0.13 milestone on May 11, 2016
  11. self-assigned this
    on May 11, 2016
  12. joewalter commented on Jul 26, 2016

    @joewalter
    Member

    @Eric89GXL have you made any progress on this issue?
    Are there already ideas how to generalize the representation of sparse stcs and dipoles?

  13. larsoner commented on Jul 26, 2016

    @larsoner
    Member
  14. joewalter commented on Jul 27, 2016

    @joewalter
    Member

    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).

  15. larsoner commented on Jul 27, 2016

    @larsoner
    Member
  16. 10 remaining items

  17. ktavabi commented on Sep 9, 2016

    @ktavabi
    Contributor

    ecd localization-200

    @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?

  18. larsoner commented on Sep 9, 2016

    @larsoner
    Member

    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.

  19. larsoner commented on Jan 25, 2017

    @larsoner
    Member

    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).

  20. changed the title [-]plot dipole locations with MRI slices[/-] [+]ENH: dipole plotting with MRI[/+] on Mar 1, 2017
  21. changed the title [-]ENH: dipole plotting with MRI[/-] [+]ENH: improve dipole plotting with MRI[/+] on Mar 21, 2017
  22. added this to the 0.21 milestone on Apr 27, 2020
  23. hoechenberger commented on Apr 27, 2020

    @hoechenberger
    Member

    :D

  24. ktavabi commented on Apr 27, 2020

    @ktavabi
    Contributor

    Mayavi...swell 😐

  25. removed this from the 0.21 milestone on Sep 1, 2020
  26. larsoner commented on Jan 7, 2021

    @larsoner
    Member

    @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.

  27. agramfort commented on Jan 7, 2021

    @agramfort
    SponsorMemberAuthor
  28. larsoner commented on Jan 7, 2021

    @larsoner
    Member
    • Brain.add_mri to add the slicer
    • Brain.add_dipoles to add a Dipole instance
  29. agramfort commented on Jan 7, 2021

    @agramfort
    SponsorMemberAuthor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions