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.

mistake in ECoG tutorial

See original GitHub issue

Hello,

In this tutorial: https://mne.tools/stable/auto_tutorials/clinical/30_ecog.html

it is said: “We can project gamma power from the sensor data to the nearest locations on the pial surface and visualize that:”

However, to my understanding:

src = mne.read_source_spaces(
    op.join(subjects_dir, 'fsaverage', 'bem', 'fsaverage-ico-5-src.fif'))

reads out sources located on the white matter surface, not the pial surface.

If we want sources on the pial surface, I believe one should first do:

src = mne.setup_source_space('fsaverage', subjects_dir=subjects_dir,
                              spacing='ico5', surface='pial')

Indeed,

src = mne.read_source_spaces(
    op.join(subjects_dir, 'fsaverage', 'bem', 'fsaverage-ico-5-src.fif'))

and

src = mne.setup_source_space('fsaverage', subjects_dir=subjects_dir,
                              spacing='ico5', surface='white')

give the same result.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
agramfortcommented, Nov 7, 2021

indeed ! either we fix the text or we fix the code

@alexrockhill wdyt?

0reactions
chapochncommented, Nov 9, 2021
Read more comments on GitHub >

github_iconTop Results From Across the Web

Tutorials/ECoG - Brainstorm - Biomedical Imaging Group
In this tutorial, we are going to place the ECoG/sEEG contacts ... If you move them by mistake, there is unfortunately no undo...
Read more >
Working with ECoG data — MNE 1.3.dev0 documentation
MNE supports working with more than just MEG and EEG data. Here we show some of the functions that can be used to...
Read more >
Trouble plotting EcoG electrodes - Support & Discussions
nwb file into a pandas data frame and I am trying to create a montage following the tutorials. An error is raised when...
Read more >
Analysis of human ECoG and sEEG recordings
This tutorial illustrates how to deal with the multitude of raw anatomical and electrophysiological data files in order to get to integrated ...
Read more >
Recording Human Electrocorticographic (ECoG) Signals for ...
This procedure yields information that clinicians can subsequently use to guide the complex and laborious process of functional mapping by ...
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