mne-icalabel


Namemne-icalabel JSON
Version 0.6.0 PyPI version JSON
download
home_page
SummaryMNE-ICALabel: Automatic labeling of ICA components from MEG, EEG and iEEG data with MNE.
upload_time2024-01-16 15:33:10
maintainer
docs_urlNone
author
requires_python~=3.9
licenseBSD 3-Clause License Copyright (c) 2022, MNE All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
keywords eeg ica ieeg meg neuroscience
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # mne-icalabel

[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
[![Codecov](https://codecov.io/gh/mne-tools/mne-icalabel/branch/main/graph/badge.svg)](https://codecov.io/gh/mne-tools/mne-icalabel)
[![tests](https://github.com/mne-tools/mne-icalabel/actions/workflows/pytest.yaml/badge.svg?branch=main)](https://github.com/mne-tools/mne-icalabel/actions/workflows/pytest.yaml)
[![doc](https://github.com/mne-tools/mne-icalabel/actions/workflows/doc.yaml/badge.svg?branch=main)](https://github.com/mne-tools/mne-icalabel/actions/workflows/doc.yaml)
[![PyPI Download count](https://pepy.tech/badge/mne-icalabel)](https://pepy.tech/project/mne-icalabel)
[![Latest PyPI release](https://img.shields.io/pypi/v/mne-icalabel.svg)](https://pypi.org/project/mne-icalabel/)
[![Latest conda-forge release](https://img.shields.io/conda/vn/conda-forge/mne-icalabel.svg)](https://anaconda.org/conda-forge/mne-icalabel/)
[![JOSS](https://joss.theoj.org/papers/d91770e35a985ecda4f2e1f124977207/status.svg)](https://joss.theoj.org/papers/d91770e35a985ecda4f2e1f124977207)

This repository is a conversion of the popular Matlab-based
[ICLabel](https://github.com/sccn/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](https://mne.tools/stable/generated/mne.io.Raw.html) or
[Epochs](https://mne.tools/stable/generated/mne.Epochs.html) object and an ICA instance using the
[ICA decomposition](https://mne.tools/stable/generated/mne.preprocessing.ICA.html)
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](https://mne.tools/mne-icalabel/stable/index.html) documentation.
[Dev version](https://mne.tools/mne-icalabel/dev/index.html) 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](https://mne.tools/mne-icalabel/stable/install.html) page.

To get the latest (development) version, using [git](https://git-scm.com/), 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](https://github.com/mne-tools/mne-icalabel/archive/main.zip).

# Contributing

If you are interested in contributing, please read the
[contributing guidelines](https://github.com/mne-tools/mne-icalabel/blob/main/CONTRIBUTING.md).

# Getting Help

[<img alt="MNE Forum" src="https://user-images.githubusercontent.com/1681963/52239617-e2683480-289c-11e9-922b-5da55472e5b4.png" height=60/>](https://mne.discourse.group)

For any usage questions, please post to the
[MNE Forum](https://mne.discourse.group). Be sure to add the `mne-icalabel` tag to
your question.

# Citing

If you use the ``ICLabel`` model, please consider citing our paper:

    Li et al., (2022). MNE-ICALabel: Automatically annotating ICA components with ICLabel in Python. Journal of Open Source Software, 7(76), 4484, https://doi.org/10.21105/joss.04484

with the corresponding BibTex:

    @article{Li2022,
        doi       = {10.21105/joss.04484},
        url       = {https://doi.org/10.21105/joss.04484},
        year      = {2022},
        publisher = {The Open Journal},
        volume    = {7},
        number    = {76},
        pages     = {4484},
        author    = {Adam Li and Jacob Feitelberg and Anand Prakash Saini and Richard Höchenberger and Mathieu Scheltienne},
        title     = {MNE-ICALabel: Automatically annotating ICA components with ICLabel in Python},
        journal   = {Journal of Open Source Software}
    }

Future versions of the software are aimed at improved models and may have different papers associated with it.

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "mne-icalabel",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "~=3.9",
    "maintainer_email": "Adam Li <adam.li@columbia.edu>, Mathieu Scheltienne <mathieu.scheltienne@fcbg.ch>",
    "keywords": "eeg,ica,ieeg,meg,neuroscience",
    "author": "",
    "author_email": "",
    "download_url": "https://files.pythonhosted.org/packages/38/bf/aecb1ba331b1ab16dde8c8ed222a49b3646e78a4b808fe39a052db1316dd/mne-icalabel-0.6.0.tar.gz",
    "platform": null,
    "description": "# mne-icalabel\n\n[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)\n[![Codecov](https://codecov.io/gh/mne-tools/mne-icalabel/branch/main/graph/badge.svg)](https://codecov.io/gh/mne-tools/mne-icalabel)\n[![tests](https://github.com/mne-tools/mne-icalabel/actions/workflows/pytest.yaml/badge.svg?branch=main)](https://github.com/mne-tools/mne-icalabel/actions/workflows/pytest.yaml)\n[![doc](https://github.com/mne-tools/mne-icalabel/actions/workflows/doc.yaml/badge.svg?branch=main)](https://github.com/mne-tools/mne-icalabel/actions/workflows/doc.yaml)\n[![PyPI Download count](https://pepy.tech/badge/mne-icalabel)](https://pepy.tech/project/mne-icalabel)\n[![Latest PyPI release](https://img.shields.io/pypi/v/mne-icalabel.svg)](https://pypi.org/project/mne-icalabel/)\n[![Latest conda-forge release](https://img.shields.io/conda/vn/conda-forge/mne-icalabel.svg)](https://anaconda.org/conda-forge/mne-icalabel/)\n[![JOSS](https://joss.theoj.org/papers/d91770e35a985ecda4f2e1f124977207/status.svg)](https://joss.theoj.org/papers/d91770e35a985ecda4f2e1f124977207)\n\nThis repository is a conversion of the popular Matlab-based\n[ICLabel](https://github.com/sccn/ICLabel) classifier for Python.\nIn addition, `mne-icalabel` provides extensions and improvements in the form of other models.\n\n# Why?\n\nEEG and MEG recordings include artifacts, such as heartbeat, eyeblink, muscle, and movement activity.\nIndependent component analysis (ICA) is a common method to remove artifacts, but typically relies on manual\nannotations labelling which independent components (IC) reflect noise and which reflect brain activity.\n\nThis package aims at automating this process, using the popular MNE-Python API for EEG, MEG and iEEG data.\n\n# Basic Usage\n\nMNE-ICALabel estimates the labels of ICA components given\na MNE-Python [Raw](https://mne.tools/stable/generated/mne.io.Raw.html) or\n[Epochs](https://mne.tools/stable/generated/mne.Epochs.html) object and an ICA instance using the\n[ICA decomposition](https://mne.tools/stable/generated/mne.preprocessing.ICA.html)\navailable in MNE-Python.\n\n```\nfrom mne_icalabel import label_components\n\n# assuming you have a Raw and ICA instance previously fitted\nlabel_components(raw, ica, method='iclabel')\n```\n\nThe only current available method is `'iclabel'`.\n\n# Documentation\n\n[Stable version](https://mne.tools/mne-icalabel/stable/index.html) documentation.\n[Dev version](https://mne.tools/mne-icalabel/dev/index.html) documentation.\n\n# Installation\n\nThe current stable release of `mne-icalabel` can be installed with pip, for example, by running:\n\n    pip install mne-icalabel\n\nFor further details about installation, see the\n[install](https://mne.tools/mne-icalabel/stable/install.html) page.\n\nTo get the latest (development) version, using [git](https://git-scm.com/), open a terminal and type:\n\n    git clone git://github.com/mne-tools/mne-icalabel.git\n    cd mne-icalabel\n    pip install -e .\n\nThe development version can also be installed directly using pip:\n\n    pip install https://api.github.com/repos/mne-tools/mne-icalabel/zipball/main\n\nAlternatively, you can also download a\n[zip file of the latest development version](https://github.com/mne-tools/mne-icalabel/archive/main.zip).\n\n# Contributing\n\nIf you are interested in contributing, please read the\n[contributing guidelines](https://github.com/mne-tools/mne-icalabel/blob/main/CONTRIBUTING.md).\n\n# Getting Help\n\n[<img alt=\"MNE Forum\" src=\"https://user-images.githubusercontent.com/1681963/52239617-e2683480-289c-11e9-922b-5da55472e5b4.png\" height=60/>](https://mne.discourse.group)\n\nFor any usage questions, please post to the\n[MNE Forum](https://mne.discourse.group). Be sure to add the `mne-icalabel` tag to\nyour question.\n\n# Citing\n\nIf you use the ``ICLabel`` model, please consider citing our paper:\n\n    Li et al., (2022). MNE-ICALabel: Automatically annotating ICA components with ICLabel in Python. Journal of Open Source Software, 7(76), 4484, https://doi.org/10.21105/joss.04484\n\nwith the corresponding BibTex:\n\n    @article{Li2022,\n        doi       = {10.21105/joss.04484},\n        url       = {https://doi.org/10.21105/joss.04484},\n        year      = {2022},\n        publisher = {The Open Journal},\n        volume    = {7},\n        number    = {76},\n        pages     = {4484},\n        author    = {Adam Li and Jacob Feitelberg and Anand Prakash Saini and Richard H\u00f6chenberger and Mathieu Scheltienne},\n        title     = {MNE-ICALabel: Automatically annotating ICA components with ICLabel in Python},\n        journal   = {Journal of Open Source Software}\n    }\n\nFuture versions of the software are aimed at improved models and may have different papers associated with it.\n",
    "bugtrack_url": null,
    "license": "BSD 3-Clause License  Copyright (c) 2022, MNE All rights reserved.  Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.  2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.  3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ",
    "summary": "MNE-ICALabel: Automatic labeling of ICA components from MEG, EEG and iEEG data with MNE.",
    "version": "0.6.0",
    "project_urls": {
        "documentation": "https://mne.tools/mne-icalabel",
        "source": "https://github.com/mne-tools/mne-icalabel",
        "tracker": "https://github.com/mne-tools/mne-icalabel/issues"
    },
    "split_keywords": [
        "eeg",
        "ica",
        "ieeg",
        "meg",
        "neuroscience"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "ea4f56c8d3c750ea0f864ccd916787e9269de7a791db3d8a1e55a4a6fcb0fcbf",
                "md5": "f2fa3dd455655b3c7618c16478c42029",
                "sha256": "24f9dea64473274155b4d149f49e640a16069fd02a8389e34e33efd3237db642"
            },
            "downloads": -1,
            "filename": "mne_icalabel-0.6.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "f2fa3dd455655b3c7618c16478c42029",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "~=3.9",
            "size": 21631014,
            "upload_time": "2024-01-16T15:33:06",
            "upload_time_iso_8601": "2024-01-16T15:33:06.836875Z",
            "url": "https://files.pythonhosted.org/packages/ea/4f/56c8d3c750ea0f864ccd916787e9269de7a791db3d8a1e55a4a6fcb0fcbf/mne_icalabel-0.6.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "38bfaecb1ba331b1ab16dde8c8ed222a49b3646e78a4b808fe39a052db1316dd",
                "md5": "1080725163698c8f67e0f6c962a6f7a7",
                "sha256": "5636235e00a97fce1ac62581e16144ff19ad56723736ffe5f5876b4fae2b96fa"
            },
            "downloads": -1,
            "filename": "mne-icalabel-0.6.0.tar.gz",
            "has_sig": false,
            "md5_digest": "1080725163698c8f67e0f6c962a6f7a7",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "~=3.9",
            "size": 21612564,
            "upload_time": "2024-01-16T15:33:10",
            "upload_time_iso_8601": "2024-01-16T15:33:10.012064Z",
            "url": "https://files.pythonhosted.org/packages/38/bf/aecb1ba331b1ab16dde8c8ed222a49b3646e78a4b808fe39a052db1316dd/mne-icalabel-0.6.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-01-16 15:33:10",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "mne-tools",
    "github_project": "mne-icalabel",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "mne-icalabel"
}
        
Elapsed time: 0.16682s