question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Plotting MNI transformed ECoG

See original GitHub issue

For decoding analysis across patients it becomes relevant to mainly work with MNI transformed coordinates. Using this tutorial https://mne.tools/stable/auto_tutorials/misc/plot_ecog.html, instead of the native FreeSurfer file the ‘fsaverage’ MNI brain can thus be used:

sample_path = mne.datasets.sample.data_path()
subject = 'fsaverage'
subjects_dir = sample_path + '\\subjects'

I installed MNE according to https://mne.tools/dev/install/mne_python.html, and using the fsaverage and run through the tutorial https://mne.tools/stable/auto_tutorials/misc/plot_ecog.html. At the line mne.viz.set_3d_view(fig, 200, 70, focalpoint=[0, -0.005, 0.03]) I get the following error: “AttributeError: module ‘mne.viz.backends._notebook’ has no attribute ‘_set_3d_view’”

My mne.sys_info() looks as follows: (base) C:\Users\ICN_admin\Documents\WRITE_BERLIN_BIDS>python -c “import mne; mne.sys_info()” Platform: Windows-10-10.0.18362-SP0 Python: 3.7.4 (default, Aug 9 2019, 18:34:13) [MSC v.1915 64 bit (AMD64)] Executable: C:\Users\ICN_admin\Anaconda3\python.exe CPU: AMD64 Family 23 Model 8 Stepping 2, AuthenticAMD: 64 cores Memory: 127.9 GB

mne: 0.21.0 numpy: 1.19.2 {blas=D:\a\1\s\numpy\build\openblas_info, lapack=D:\a\1\s\numpy\build\openblas_lapack_info} scipy: 1.5.2 matplotlib: 3.1.1 {backend=Qt5Agg}

sklearn: 0.22.1 numba: 0.45.1 nibabel: 3.0.1 cupy: Not found pandas: 0.25.1 dipy: Not found mayavi: 4.7.2 pyvista: 0.26.1 {OpenGL 4.5.0 NVIDIA 432.00 via GeForce RTX 2070 SUPER/PCIe/SSE2} vtk: 9.0.1 PyQt5: 5.9.2

Here the complete error message:

grafik

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
larsonercommented, Oct 19, 2020

@GuillaumeFavelier can you look into the bug here?

A separate issue is how we should make it clear how to use MNI-coordinate sEEG/ECoG data. @adam2392 do you think it would make sense to take the tutorial idea I proposed in #8364 and make the dataset we use have electrode coordinates in MNI space? It might allow us to show how to use MNI-coordinate data and sEEG data in the same tutorial.

1reaction
larsonercommented, Oct 20, 2020

#8190 just exposed a bug from #7747, see fix in #8393

Read more comments on GitHub >

github_iconTop Results From Across the Web

Working with ECoG data — MNE 0.21.2 documentation
This transform will be applied to the data when applying the montage so that standard plotting functions like mne.viz.plot_evoked_topomap() will be aligned ...
Read more >
Help needed plotting ECoG electrodes in anatomical surface
I want to plot ECoG electrodes on average freesurfer brain. I have the xyz coordinates of electrodes in form of .mgrid file. Specifically,...
Read more >
Getting iEEG montage volume label and plotting electrodes on ...
Dear all, I am currently facing issues with the plotting of iEEG electrodes on a patient MNE-Python version: 0.24.0 operating system: linux I...
Read more >
Analysis of human ECoG and sEEG recordings
28) Visualize the cortical mesh extracted from the standard MNI brain along with the spatially normalized electrodes and examine whether they ...
Read more >
ENH: Plot ECoG data as STC? · Issue #3735 - GitHub
For ECoG data it's nice to be able to visualize activity on ECoG ... on doing the 3d-to-2d transformation and plotting on top...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found