New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WIP] Trying to allow plotting SEEG activity in volumetric source space #8402
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like a good start!
Co-authored-by: Eric Larson <larson.eric.d@gmail.com>
I keep on getting this error, and I'm not sure how to trace this down. It seems that there is no data getting attached to
Do you think this is a problem with the seeg coordinates, or possibly something with the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it help if I pulled your changes and fixed the problem you're having with not having any data?
I suspect that your |
Co-authored-by: Eric Larson <larson.eric.d@gmail.com>
Co-authored-by: Eric Larson <larson.eric.d@gmail.com>
Co-authored-by: Eric Larson <larson.eric.d@gmail.com>
Co-authored-by: Eric Larson <larson.eric.d@gmail.com>
Co-authored-by: Eric Larson <larson.eric.d@gmail.com>
Co-authored-by: Eric Larson <larson.eric.d@gmail.com>
Co-authored-by: Eric Larson <larson.eric.d@gmail.com>
Co-authored-by: Eric Larson <larson.eric.d@gmail.com>
Okay a few updates:
It's trying to get 14629 vertices, which I'm guessing is coming from the |
* upstream/master: Fix separate canvas (mne-tools#8408) FIX: focalpoint (mne-tools#8405) WIP: Refs (mne-tools#8406) tiny cosmetic improvements to BEM code (mne-tools#8404) MRG, ENH: Fix memory on CircleCI (mne-tools#8379) MRG: Update backend parameter in stc.plot() (mne-tools#8395)
No this looks really good to me so far and honestly really useful for someone in the iEEG world to use mne-python in conjunction w/ freesurfer + neuroimaging viz. I updated the docstring of |
I think this is occurring in the addition I made under |
Another small thing: do you happen to know how one would do this if you don't have BEM? My understanding is you only have BEM from flash MRI data. I've never worked w/ BEM and it never gets output from my freesurfer
E.g. what if the above someone wanted to just use the parcellated MRI? Is that possible? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM +1 for merge
Let's see if @drammock and/or @agramfort are happy. Here is the rendered example:
https://22968-1301584-gh.circle-artifacts.com/0/dev/auto_tutorials/misc/plot_seeg.html
Just pushed a tiny commit to make the thumbnail the rendered movie.
This is another thing that we should make clearer somewhere in the docs. You only need a BEM if you want to do some forward modeling. What you really probably want is to constrain your volumetric sources to be within the brain volume. One way to do this is by passing a BEM, but really this just uses the Alternatively, you can tell it to use |
Hi, is there any way that we can set different parts of depth electrodes into different colors, for example, which may be useful, if the contacts of this electrode is out of the skull, it's green, otherwise yellow. |
This is really an issue for / part of #8382 |
Thanks for working through this @adam2392 ! |
Hi, recently I've been thinking that showing some info about the SEEG electrodes may be very useful when you move your mouse to the electrode in the figure produced by plot_alignment, for example, the name, the MNI coordinates, and which brain area the electrode is in. I have figured out how |
@BarryLiu-97 please open a new issue for new feature requests. This PR is already merged and closed. |
Got it! |
Reference issue
Fixes: #8364
Closes #8388
What does this implement/fix?
Adds a
plot_seeg.py
tutorial for working w/ SEEG data analogous toplot_ecog.py
.Attempts to refactor
stc_near_sensors
to show volumetric SEEG activity with eitherstc.plot
orstc.plot_3d
Additional information
Opening up PR to start iterating.
Ideally want to allow SEEG activity to be visualized as such: https://mne.tools/dev/auto_tutorials/source-modeling/plot_beamformer_lcmv.html#volumetric-rendering-3d
Assumes user has:
Apologies if the code is nowhere where it should be. Never worked with the source API on mne, but now am eager to learn it if it'll help produce these nice viz of SEEG.