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
0
votes
1 answer

epochs = mne.Epochs(raw, events, tmin=-0.5, tmax=25, event_id=event_dict, preload=True) what is the exact meaning of this code

epochs = mne.Epochs(raw, events, tmin=-0.5, tmax=25, event_id=event_dict, preload=True)what is the exact meaning of this code in mne library. what if I change the value of tmin. and tmax about a line of code of mne library I.e. epochs =…
0
votes
0 answers

Making an ERDS graph using numpy or rawarray files

I have a project where I have to create an ERDS graph for EEG signals. Only problem is sample codes are only used for edf files. For starters, I have only used one of the files gathered from my collection which is a numpy file. I managed to get a…
0
votes
1 answer

How to do EEG analysis of .CSV data in python-MNE?

what I want to do I got csv file of EEG data - after preprocessing. I would like to do these analyses in python-MNE, but python-MNE does not support the csv file format. So, how can I convert a csv file into a set file etc. and analyze it in…
0
votes
0 answers

How to end plt plotting in loop by specific key press?

I am plotting EEG-data using MNE and I want to exit a plot and continue the loop every time a button is pressed. Below is some example code of my program. os.chdir('M:\\') #Create a dictionary containing all files by participant, including cleaned…
0
votes
0 answers

How to create interactive topoplot in mne?

I was trying to create interactive topoplot with python MNE and got stuck. Topomap (or topoplot) is drawn, but it doesn't update. Do you have any idea how to make it interactive? data: import mne import matplotlib.pyplot as plt import numpy as…
0
votes
0 answers

I got sinusoidal noise in evoked object in mne python

I have a eeg recording with sfreq of 2500 Hz, I tried to preprocess it with mne, as following: (resampling, filtering, interpolating bad channels, ICA, setting eeg reference) but looking at evokes, there is a sinusoidal noise in it, which I don't…
0
votes
1 answer

mne connectivity_circle / chord diagram

I am attempting to create a chord diagram using plot_connectivity_circle from mne_connectivity.viz library. My data is similar to the following, where letter and number represent separate nodes and count represents the number of connections between…
r0bt
  • 383
  • 3
  • 12
0
votes
1 answer

MNE: set EEG reference to 1/2 of a channel

I am trying to rereference my EEG data to 0.5 of the mastoid (TP9). I tried different lines of code, but cannot seem to find a solution. I cannot multiply the ref_channels in the set_eeg_reference function. Now, I attempted to create a new channel…
Lisa
  • 1
0
votes
0 answers

Why MNE module not detected jupyter classic

I have already installed mne packages but nothing detected by jupyter notebook I got this error --------------------------------------------------------------------------- ValueError Traceback (most recent call…
YEUNG_SANG
  • 61
  • 1
  • 6
0
votes
0 answers

Understanding Decibel in a power spectral density plot

I wanted to plot the spectral content of my EEG data using MNE but I am unable to understand what this graph actually gives. I am having troubles in understanding the y-axis. From what I have gathered so far, a Decibel is calculated "relative" to…
0
votes
0 answers

Issues with loading and visualising .mat data with use of mne python

I am working on an EEG dataset and I have been trying to use mne python but I haven't been able to load my .mat data or visualise it. I would be very grateful if anyone could helpe with it. Thank you! For loading the .mat data when I use…
esh
  • 1
  • 1
0
votes
0 answers

Using backend SequentialBackend with 1 concurrent workers; error-looking message

I was trying to execute the following code as given here in my Jupyter notebook: fig = raw.plot_psd(tmax=np.inf, fmax=250, average=True) # add some arrows at 60 Hz and its harmonics: for ax in fig.axes[1:]: freqs = ax.lines[-1].get_xdata() …
S C
  • 284
  • 2
  • 9
0
votes
0 answers

Extracting EEG segments from an MNE Raw object such that the time frames are preserved

I have an MNE raw EEG object from which I would like to extract segments given by start time and end time points that are in a csv file that looks like this: rem_df: Sleep Stage start end SLEEP-REM 4770.0 5280.0 SLEEP-REM 5310.0…
S C
  • 284
  • 2
  • 9
0
votes
0 answers

Is there any way to show annotations (colored bands which we annotate using mne) in plotted EEG Signal data after completing annotations MNE-Python?

I have plotted EEG data using MNE python and annotated it. After saving my annotations, I cannot see the different classes annotated in different colours when I plot it again. Is there any way to show those colours according to Annotated EEG data…
0
votes
1 answer

Frequency step in psd_multitaper vs psd_welch

The frequency step in the return values of psd_welch is 1.953125 while in psd_multitaper it is 0.00164441 - 3 orders of magnitude difference: import mne psds,freqs = mne.time_frequency.psd_multitaper(edf) np.diff(freqs) ==> array([0.00164441,…
sds
  • 58,617
  • 29
  • 161
  • 278