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

This repository is a conversion of the popular ICLabel classifier for Python. In addition, we provide improvements in the form of other models.

Why?

Scalp EEG is inherently noisy comprised commonly with heartbeat, eyeblink, muscle and movement artifacts. Independent component analysis (ICA) is a common method to remove artifacts, but rely on a human manually annotating with independent components (IC) are noisy and which are brain signal.

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

Basic Usage

MNE-ICALabel will estimate the labels of the 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

To get the latest code using git, open a terminal and type:

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

or one can install directly using pip

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

Alternatively, you can also download a zip file of the latest development version <https://github.com/mne-tools/mne-icalabel/archive/main.zip>_.

Contributing

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

Forum

Please visit the MNE forum to ask relevant questions.

https://mne.discourse.group

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.1.tar.gz (10.8 MB view details)

Uploaded Source

Built Distribution

mne_icalabel-0.1-py2.py3-none-any.whl (10.8 MB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: mne-icalabel-0.1.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.1.tar.gz
Algorithm Hash digest
SHA256 6d8b9aced23ed936791d47322b5c998a14e5340fa7f7709b050fa776b1c0673e
MD5 e81fe35126bc6a0f6481621f140a117b
BLAKE2b-256 83a63af0ae272375e067e9e4e09f80b56f5e3701e7c4088969d0b214cedad627

See more details on using hashes here.

File details

Details for the file mne_icalabel-0.1-py2.py3-none-any.whl.

File metadata

  • Download URL: mne_icalabel-0.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 10.8 MB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.8.13

File hashes

Hashes for mne_icalabel-0.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 58dbf66e8ade2e9c6b97c072b9b42aa35fb62fbb85586a27809e63c37a2c64cb
MD5 d6ff151cd1e3eefa746ee10e0aa36c14
BLAKE2b-256 bfa8361fe171452bcebd951380e147772ca5e368a8a8421171b9dc0b49acdedf

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