Microstate analysis for use with MNE-Python
A small module that works with MNE-Python to perform microstate analysis in EEG
and MEG data.
To learn more about microstate analysis, read the paper:
Pascual-Marqui, R. D., Michel, C. M., & Lehmann, D. (1995). Segmentation of
brain electrical activity into microstates: model estimation and validation.
IEEE Transactions on Biomedical Engineering.
https://ieeexplore.ieee.org/document/391164
Installation
Install this package using PIP:
pip install mne-microstates
Usage
import mne
import mne_microstates
# Load MNE sample dataset
from mne.datasets import sample
fname = sample.data_path() / 'MEG/sample/sample_audvis_filt.fif'
raw = mne.io.read_raw_fif(fname, preload=True)
# Always use an average EEG reference when doing microstate analysis
raw.set_eeg_reference('average')
# Highpass filter the data a little bit
raw.filter(0.2, None)
# Selecting the sensor types to use in the analysis. In this example, we
# use only EEG channels
raw.pick_types(meg=False, eeg=True)
# Segment the data into 6 microstates
maps, segmentation = mne_microstates.segment(raw.get_data(), n_states=6)
# Plot the topographic maps of the found microstates
mne_microstates.plot_maps(maps, raw.info)
# Plot the segmentation of the first 500 samples
mne_microstates.plot_segmentation(segmentation[:500], raw.get_data()[:, :500], raw.times[:500])
Author
Marijn van Vliet w.m.vanvliet@gmail.com
Metadata
Release files for mne-microstates 0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mne_microstates-0.3.tar.gz | 6.6 kB | Without provenance | Details for mne_microstates-0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mne_microstates-0.3-py3-none-any.whl | Python 3 | none | any | Details for mne_microstates-0.3-py3-none-any.whl |
Total release size: 16.8 kB
Release files / mne_microstates-0.3.tar.gz
| Download URL | mne_microstates-0.3.tar.gz |
|---|---|
| Size | 6.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cafde4b3f8384a32ed8bc8721c0b51dcbb46326b54e9b631d6d379b02f4fdf9f
|
|
BLAKE2b-256 checksum How to use checksums |
f6daa7c2f800ddd77f89e10b944eab7022599a426f9f2db585dff75b38fb1d41
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.2.0 keyring/23.4.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10
|
Release files / mne_microstates-0.3-py3-none-any.whl
| Download URL | mne_microstates-0.3-py3-none-any.whl |
|---|---|
| Size | 10.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6d31ba47106feb7a718671c344c4f82c78a01a77726db02bc3ffc7f6f24a2107
|
|
BLAKE2b-256 checksum How to use checksums |
25b987c3afb96e957a14e68dc6fc10cce73c3a847ad64be497ff0b3afbcd672b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.2.0 keyring/23.4.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10
|
Security for mne-microstates 0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.