Skip to main content

MNE-ICALabel: Automatic labeling of ICA components from MEG, EEG and iEEG data with MNE.

Project description

mne-icalabel

Code style: black Codecov unit-tests CircleCI PyPI Download count Latest PyPI release Latest conda-forge release Checked with mypy status

This repository is a conversion of the popular Matlab-based ICLabel classifier for Python. In addition, mne-icalabel provides extensions and improvements in the form of other models.

Why?

EEG and MEG recordings include artifacts, such as heartbeat, eyeblink, muscle, and movement activity. Independent component analysis (ICA) is a common method to remove artifacts, but typically relies on manual annotations labelling which independent components (IC) reflect noise and which reflect brain activity.

This package aims at automating this process, using the popular MNE-Python API for EEG, MEG and iEEG data.

Basic Usage

MNE-ICALabel estimates the labels of ICA components given a MNE-Python Raw or Epochs object and an ICA instance using the ICA decomposition available in MNE-Python.

from mne_icalabel import label_components

# assuming you have a Raw and ICA instance previously fitted
label_components(raw, ica, method='iclabel')

The only current available method is 'iclabel'.

Documentation

Stable version documentation. Dev version documentation.

Installation

The current stable release of mne-icalabel can be installed with pip, for example, by running:

pip install mne-icalabel

For further details about installation, see the install page.

To get the latest (development) version, using git, open a terminal and type:

git clone git://github.com/mne-tools/mne-icalabel.git
cd mne-icalabel
pip install -e .

The development version can also be installed directly using pip:

pip install https://api.github.com/repos/mne-tools/mne-icalabel/zipball/main

Alternatively, you can also download a zip file of the latest development version.

Contributing

If you are interested in contributing, please read the contributing guidelines.

Getting Help

MNE Forum

For any usage questions, please post to the MNE Forum. Be sure to add the mne-icalabel tag to your question.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mne-icalabel-0.3.tar.gz (10.8 MB view details)

Uploaded Source

Built Distribution

mne_icalabel-0.3-py3-none-any.whl (34.9 kB view details)

Uploaded Python 3

File details

Details for the file mne-icalabel-0.3.tar.gz.

File metadata

  • Download URL: mne-icalabel-0.3.tar.gz
  • Upload date:
  • Size: 10.8 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.8.13

File hashes

Hashes for mne-icalabel-0.3.tar.gz
Algorithm Hash digest
SHA256 218f0b8e3258900d55d30934a4a221bb71cb560637450afa2259a88cc2c2b5cd
MD5 8c7056ac189e01e623d195ecb7cefa07
BLAKE2b-256 c8b1bdf9b0c8042e338739a064b7d2addff866581e9c4bfae07dd0183ebbf1bf

See more details on using hashes here.

File details

Details for the file mne_icalabel-0.3-py3-none-any.whl.

File metadata

  • Download URL: mne_icalabel-0.3-py3-none-any.whl
  • Upload date:
  • Size: 34.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.8.13

File hashes

Hashes for mne_icalabel-0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 9a3f8153b855c4db677e8566a5d47c4d5f3c803c21abc5651137107a560459ae
MD5 a1639530f9cdd570a6c97d39242422a0
BLAKE2b-256 15e7b84cc13470bc3d11dba5b1ce5081aa346e7fa10b52124a57fb48693a5a78

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page