[Mne_analysis] question about classification between events and normalization

Dan McCloy drmccloy at uw.edu
Tue Dec 4 15:19:32 EST 2018
Search archives:

        External Email - Use Caution        

>
> I have EEG data from Brainvision (.vhdr extension).
>
[snip]

> Is there a function that can take the .vhdr files, convert them to
> numpy arrays.
>
yes:
# convert brainvision .eeg file to mne.Raw format
#
https://www.martinos.org/mne/stable/generated/mne.io.read_raw_brainvision.html
my_raw = mne.io.read_raw_brainvision('my_header_file.vhdr')
# convert Raw object to numpy array
#
https://www.martinos.org/mne/stable/generated/mne.io.Raw.html#mne.io.Raw.get_data
my_array = my_raw.get_data()

Is there a function that can take the files with events, and possibly
> cut them into segments and normalize them?

yes:
# https://www.martinos.org/mne/stable/generated/mne.Epochs.html
mne.Epochs(my_raw, my_events_file, ...)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20181204/22438193/attachment.html 


More information about the Mne_analysis mailing list