Questions tagged [mne-python]

MNE-Python is an open-source Python package for exploring, visualizing, and analyzing human neurophysiological data such as MEG, EEG, sEEG, ECoG, and more. It includes modules for data input/output, preprocessing, visualization, source estimation, time-frequency analysis, connectivity analysis, machine learning, and statistics.

96 questions
1
vote
0 answers

The data is already loaded from disk issue from mne

i am following this tutorial M/EEG analysis with MNE Python and i have a little errors in this fragment : 01:35:57 Working with BIDS data i followed all the steps before and also implemented code : import matplotlib.pyplot as plt import…
1
vote
0 answers

Im getting error in this line "mne.externals.pymatreader import read_mat" and the error is - No module named 'mne.externals'

Im getting error in this line "mne.externals.pymatreader import read_mat" , and the error is - No module named 'mne.externals' I want to know how to remove this error
1
vote
0 answers

why mne raw.plot doesn't block in a Qt Application on macOS?

I'm a beginner to Pyside6 and mne-python. I want the raw.plot to block so I can interact with the figure. However, the program continue to run and print 'after window close' after the figure opened. According to mne documentation,…
mdrs
  • 11
  • 1
1
vote
1 answer

How can I convert a mne Info into a pandas dataframe?

I'm working with streamlit and EEG data. So I'm using mne library to process the edf files. The thing is that to visualize into streamlit I would like to convert my data.info into a pandas dataframe. type(data.info) --->
mnsosa
  • 71
  • 4
1
vote
1 answer

Loading multiple .EDF files using MNE-python

Absolute noob here with EEG analysis. I used the following code to read one subject successfully: import mne file = "my_path\\my_file.edf" data = mne.io.read_raw_edf(file) raw_data = data.get_data() channels = data.ch_names This works perfectly…
1
vote
0 answers

python How to mute MNE warnings

I'm using rapid loading of .edf files using the mne package. The problem is that the package is warning all the time and fills my screen with red warnings and it's disturbing my work. How can I mute those warnings please? Warning…
Jhon Margalit
  • 451
  • 4
  • 12
1
vote
1 answer

Why are ECG channels labelled as an EEG channel?

Raw data clearly contains an ECG channel. Yet raw.info shows ECG channels as 'Not available'.
BiozterzCodes
  • 165
  • 1
  • 10
1
vote
1 answer

python-mne autoreject error: _setup_dots() missing 1 required positional argument: 'ch_type'

I'm analyzing MEG data using python mne. To automatically detect bad epochs I want to use the autoreject package which is based on scikit-learn (http://autoreject.github.io/). I have created my epochs and adapted the code from the example given on…
1
vote
1 answer

Is there any way to fix topomap plot with mne library in python?

I am trying to plot topo map with mne library, but I don't know why the figure does not contain contour/outlier and nose and ears. Anyone can help me with this issue? My code is here: import mne fname = "oddball-epo.fif" epochs =…
Long Le
  • 43
  • 5
1
vote
0 answers

How to read ".edf" file in MNE-Python. I tried but showing the Following Error

import matplotlib import pathlib import mne raw_path = pathlib.Path("data/") raw_data = raw_path / 'Subject1' / 'S1.edf' raw = mne.io.read_raw_edf(raw_path) **Extracting EDF parameters from C:\research\data\Subject1\S1.edf... EDF file…
1
vote
1 answer

Colorbar for mne.viz.plot_topomap ? Python

I have two question in relation to the mne topomap function for raw (not evoked) data. 1.Is there a way to add a colorbar to the topoplot ? With evoked data it is possible, but here I have raw data... 2. Is it possible to plot the sensors dot a…
Ang
  • 51
  • 6
1
vote
2 answers

Epoch EEG data between two events, instead of min_max seconds?

I would like to epoch my EEG data, but not based on the duration in seconds as it it commonly done, but one epoch should last the length of the stimuli presentation that is jittered. Therefore, I would like to indicate the start and end of an epoch…
Ang
  • 51
  • 6
1
vote
0 answers

How to reject bad segments when working with long epochs in MNE Python

I am doing a social cognition experiment with eeg for my thesis, and in my experiment I am working with long trials of 25 seconds. This means that if I use any automatic rejection function to reject bad segments, it will remove a large amount of my…
Kathrine
  • 11
  • 1
1
vote
1 answer

Plot spectrogram of overnight sleep EEG using MNE

Is it possible to plot the spectrogram of overnight sleep EEG data in mne? I don't want to create epochs but, have the spectrogram of continuous 8-9 hours. The examples I see in e.g. EEGlab (Matlab) have perfect color distinction which makes the…
TheJohn
  • 13
  • 5
1
vote
1 answer

Reading channel locations in MNE Python

I am new to MNE Python and I am working with .set files from EEGlab(Matlab) for source estimation analysis. The data were recorded from 66 channels (64 EEG and 2 EOG) from EasyCaps, with 10-20 IS. In Matlab, the EEG.chanlocs correctly shows the…
dede
  • 1,129
  • 5
  • 15
  • 35