Skip to main content

MVPURE-PY package

mvpure_py logo

EEG/MEG Multi-Source Localizers with mvpure-py
Extends MNE-Python with multi-source neural activity indices and spatial filters.
Based on “Multi-Source Neural Activity Indices for EEG/MEG Localization: A Two-Stage Spatial Filtering Framework and Extension to MNE-Python”.

Repository: GitHub
Tutorial & online docs: mvpure_py documentation


Table of Contents

  1. Overview
  2. Features
  3. Dependencies
  4. Installation
    • From source
  5. Tutorial & Examples
  6. Citation

Overview

The mvpure-tools package implements multi-source neural activity indices for EEG / MEG source localization, extending MNE-Python’s API. It enables improved reconstruction when sources may be correlated, overcoming limitations of single-source beamforming methods (e.g. LCMV) in certain settings.

Key contributions include:

  • Algebraic, compact forms for multi-source neural activity indices
  • Seamless integration into MNE-Python workflows (covariance, forward/inverse handling, visualization)
  • A step-by-step tutorial using real EEG data (oddball paradigm, synthetic data)

Features

  • Neural activity indices (MAI_MVP) in the multi-source setting
  • Iterative localization algorithms compatible with large candidate source sets
  • Built on top of MNE-Python, so you can combine it with standard EEG / MEG toolchains
  • Tutorial and example scripts included

Dependencies

Before installing, make sure you have:

  • Python
  • MNE-Python
  • NumPy, SciPy
  • (Other dependencies listed in requirements.txt)

Installation

To install from GitHub:

  1. Clone the repository
git clone https://github.com/julia-jurkowska/mvpure-tools.git
cd mvpure-tools
  1. (Optional) create a virtual environment
python3 -m venv venv
source venv/bin/activate
  1. Install dependencies
pip install -r requirements.txt
  1. Install the package
pip install .

or for development mode:

pip install -e .
  1. Verify installation:
import mvpure_py
from mvpure_py import localizer

Tutorial & Examples

See tutorials on documentation site: documentation.

The tutorials walk you through:

  1. Preprocessing (filtering, artifact rejection, ICA, epoching)
  2. Estimation of number of sources and rank
  3. Localization of sources using neural activity indices
  4. Reconstruction of time courses
  5. Visualization of estimated sources

Citation

If you use mvpure_py in your work, please cite:

Jurkowska, J., Dreszer, J., Lewandowska, M., Tolpa, K., Piotrowski, T., Multi-source neural activity indices for EEG/MEG localization: A two-stage spatial filtering framework and extension to MNE-Python, NeuroImage, Volume 339, 2026, 122126, https://doi.org/10.1016/j.neuroimage.2026.122126.

Metadata

Release files for mvpure-py 2.3.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mvpure-py 2.3.2
File Size Uploaded Provenance Actions
mvpure_py-2.3.2.tar.gz 239.8 kB With provenance Details for mvpure_py-2.3.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for mvpure-py 2.3.2
File Interpreter ABI Platform Actions
mvpure_py-2.3.2-py3-none-any.whl Python 3 none any Details for mvpure_py-2.3.2-py3-none-any.whl

Total release size: 287.0 kB

Release files / mvpure_py-2.3.2.tar.gz

Download URL mvpure_py-2.3.2.tar.gz
Size 239.8 kB
Tags Source
SHA-256 checksum
How to use checksums
78c391872156650c450deb846e766ac6264bcbbfc7e2ed70ee31d1ddbe38c154
BLAKE2b-256 checksum
How to use checksums
fe061216d536bdee1517904f57a4301d69414e59521fbe616a8bc85d78532007
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 27, 2026.

Transparency log

Release files / mvpure_py-2.3.2-py3-none-any.whl

Download URL mvpure_py-2.3.2-py3-none-any.whl
Size 47.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c9151dfbf2e8d4bc03a4d0db976ab8cef7cf2eee1fcb99cad0f2956c3a6c830d
BLAKE2b-256 checksum
How to use checksums
8feb525a0b0b052451cfe538ea106ba3dea59ee1a0c6412571697207be71800b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 27, 2026.

Transparency log

Security for mvpure-py 2.3.2

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for mvpure_py-2.3.2.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 27, 2026.

Transparency log

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page