PLSC for MNE
Project description
Partial least squares correlation (PLSC) for M/EEG
mne-plsc is a library for partial least squares correlation (PLSC) analysis of M/EEG data in Python, integrated with the MNE-Python library. The basic computations are performed by the pyplsc library, and the documentation of that library contains some background on the PLSC technique.
Installation
mne-plsc can be installed from the Python Package Index with
pip install mne-plsc
Quickstart
The main functions for model fitting are fit_mc, fit_beh, and fit_within_beh. These return objects whose methods can be used for permutation testing, cluster analysis, and visualization. The typical workflow would be:
1. Fit and visualize model
Perform the initial decomposition and check the patterns of saliences.
from mne_plsc import fit_mc
mod = fit_mc(epochs, condition)
mod.plot_lv(0)
2. Permutation testing
Evaluate which latent variables are significant.
mod.permute(1000)
print(model.summary())
3. Cluster analysis
Perform bootstrap resampling to estimate brain salience z-scores, then cluster strong saliences (e.g., :math:|z| > 2).
mod.bootstrap(1000)
mod.cluster(threshold=2)
4. Visualize cluster(s)
Examine the temporal/spectral/spatial distribution of the major clusters for a given set of brain saliences.
mod.plot_cluster_sizes(lv_idx=0)
mod.plot_cluster(lv_idx=0, cluster_idx=0)
See the examples in the documentation for more details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mne_plsc-0.0.21.tar.gz.
File metadata
- Download URL: mne_plsc-0.0.21.tar.gz
- Upload date:
- Size: 25.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4805af662f61f6232c97ea4ce4fe29cdd589d6e36dfc1cce16eec0ae797ebe5d
|
|
| MD5 |
83643224f6a5539d3e4111758a74d805
|
|
| BLAKE2b-256 |
883bf3e728dffcbeb2632fadb2e2d1f8db6ed10c0de769ec266190d290c296a5
|
File details
Details for the file mne_plsc-0.0.21-py3-none-any.whl.
File metadata
- Download URL: mne_plsc-0.0.21-py3-none-any.whl
- Upload date:
- Size: 22.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
14f3db948a933ec16eb6cc416407d112a48729ead5f406cb02b0d60bc50449a8
|
|
| MD5 |
28c9e93adfa3561677b11b523e824771
|
|
| BLAKE2b-256 |
48d0b8f50ffae6dc6bfc08eb93f8b0c032174395c6592e7b512ca93d9d4ce5b3
|