Skip to content
Eric Larson edited this page Feb 24, 2022 · 41 revisions

MNE-Python

MNE-Python is planning to participate in the GSOC 2021 under the 🐍 Python Software Foundation (PSF) umbrella.

Note: If you are not currently pursuing research activities in MEG or EEG and do not use or do not plan to use MNE-Python for your own research, our GSoC might not be for you. Our projects require domain-specific interest and are not simple coding jobs.

About MNE-Python

MNE-Python is a pure Python package for preprocessing and analysis of M/EEG data. For more information, see our homepage.

Contact

For modes of communication see our getting help page. It's a good idea to introduce yourself on our Discourse forum to get in touch with potential mentors before submitting an application.

Getting Started

Writing your GSoC application

Additional reading

Project ideas

We list some potential project ideas below, but we welcome other ideas that could fit within the scope of the project!

1. Facilitate access to open EEG/MEG databases

Project length

175 or 350 hours

Difficulty

Medium (requires knowledge of M/EEG data)

Possible mentors

Denis Engemann, Alex Gramfort, Eric Larson, Daniel McCloy

Goal

The aim of this project is to improve the access to open EEG/MEG databases via the mne.datasets module, in other words, improve our dataset fetchers. There is physionet, but much more. Having a consistent API to access multiple data source would be great.

Subgoals

See https://github.com/mne-tools/mne-python/issues/2852 and https://github.com/mne-tools/mne-python/issues/3585 for some ideas, or:

  • MMN dataset (http://www.fil.ion.ucl.ac.uk/spm/data/eeg_mmn/ ) used for tutorial/publications applying DCM for ERP analysis using SPM.
  • Human Connectome Project Datasets (http://www.humanconnectome.org/data/ ). Over a 3-year span (2012-2015), the Human Connectome Project (HCP) scanned 1,200 healthy adult subjects. The available data includes MR structural scans, behavioral data and (on a subset of the data) resting state and/or task MEG data.
  • Kymata Datasets (https://kymata-atlas.org/datasets). Current and archived EMEG measurement data, used to test hypotheses in the Kymata atlas. The participants are healthy human adults listening to the radio and/or watching films, and the data is comprised of (averaged) EEG and MEG sensor data and source current reconstructions.
  • http://www.brainsignals.de/ A website that lists a number of MEG datasets available for download.
  • BNCI Horizon (http://bnci-horizon-2020.eu/database/data-sets) has several BCI datasets

2. Source-time-frequency visualization of brain data

Difficulty

Medium (requires visualization and time-frequency analysis knowledge)

Project length

350 hours

Possible mentors

Mainak Jas, Britta Westner, Sarang Dalal, Denis Engemann, Alex Gramfort, Eric Larson

Goal

Implement viewer for interactive visualization of volumetric source-time-frequency (5-D) maps on MRI slices (orthogonal 2D viewer). NutmegTrip (written by Sarang Dalal) provides similar functionality in Matlab in conjunction with FieldTrip.

Example of NutmegTrip's source-time-frequency mode in action (click for link to YouTube): NutmegTrip source-time-frequency viewer example

Subgoals

  • extend source time series (4-D) viewer created by Mainak Jas to a time-frequency (5-D) viewer
  • Allow plotting surface data in volume using cortical ribbon (see closed glass brain PR: https://github.com/mne-tools/mne-python/pull/4496)
  • capability to output source map animations directly as GIFs
  • ability to plot on 3D rendered brains not necessary at this stage, but would be helpful if it is written such that it can be extended in the future
  • extra credit: plot corresponding EEG/MEG topography at selected time point. (Not in video, but this can be done in NutmegTrip as well – very useful as a sanity check for source results.)

3. Integrate OpenMEEG via improved Python bindings

Difficulty

Medium (requires working with C++ bindings)

Project length

350 hours

Possible mentors

Alex Gramfort, Eric Larson

Goal

OpenMEEG is a state-of-the art solver for forward modeling in the field of brain imaging with MEG/EEG. It solves numerically partial differential equations (PDE). It is written in C++ with Python bindings written in SWIG. The ambition of the project is to integrate OpenMEEG into MNE offering to MNE the ability to solve more forward problems (cortical mapping, intracranial recordings, etc.).

Subgoals

  • Revamp Python bindings (remove useless functions, check memory managements, etc.)
  • Write example scripts for OpenMEEG that automatically generate web pages as for MNE
  • Package OpenMEEG for Debian/Ubuntu
  • Update the continuous integration system