janfreyberg / ssvepy

MNE-compatible package for SSVEP analysis
http://www.janfreyberg.com/ssvepy
MIT License
19 stars 10 forks source link

ssvepy

A package to analyse MNE-formatted EEG data for steady-state visually evoked potentials (SSVEPs).

Install:

pip install git+https://github.com/janfreyberg/ssvepy.git

As always with pip packages, you can install a "development" version of this package by (forking and) cloning the git repository and installing it via pip install -e /path/to/package. Please do open a pull request if you make improvements.

Documentation:

The docs for this package are at http://www.janfreyberg.com/ssvepy. There, you'll find the API and an example notebook.

Usage:

You should load, preprocess and epoch your data using MNE.

Take a look at a notebook that sets up an SSVEP analysis structure with the example data in this package: https://github.com/janfreyberg/ssvepy/blob/master/example.ipynb

Once you have a data structure of the class Epoch, you can use ssvepy.Ssvep(epoch_data, stimulation_frequency), where stimulation_frequency is the frequency (or list of frequencies) at which you stimulated your participants.

Other input parameters and their defaults are:

The resulting data has the following attributes:

And the following methods:

More to come.


1: This package currently uses hierarchical data files (hdf5) because it seems to lend itself to the different data stored in ssvep classes, but I know it's less than ideal to have different data structures from MNE. I'm still thinking about improvements.