Skip to main content

MEGNET

megnet-tests

This repository is a fork of the code listed below in the original code reference. This repository adds an automated processing wrapper and python package installation around the original codebase. The current codebase utilizes mne python to preprocess the data, generate the infomax ICA components (n=20), circular topography maps, and timeseries outputs. The architecture of neural net has been preserved, however, the weights have been reset to uniform distribution and retrained using repository data from MEGIN, CTF, 4D, and KIT systems.

Install (pytorch based version)

Tested compatibility: (MNE 1.10/1.11/1.12/1.13 & Python 3.11/3.12/3.13/3.14)

conda create -n megnet 'mne>1.10' 'python>3.10'
conda activate megnet
pip install MEGnet-neuro
megnet_init  #Download model weights from hugging face

Conda package

The conda-forge v1 recipe and local build instructions are in conda/. Until the recipe is accepted and published by conda-forge, build it locally with rattler-build. After publication, install the package with:

conda create -n megnet -c conda-forge megnet-neuro
conda activate megnet
megnet_init  # Download model weights from Hugging Face

Install (tensorflow based version)

Tested compatability: (mne 1.10/1.11/1.12 & python 3.10/3.11/3.12/3.13) (py restricted by tensorflow builds)

conda create -n megnet 'mne>1.10' 'python<3.14'
conda activate megnet
pip install 'MEGnet-neuro-tf'
megnet_init #Download model weights from hugging face

Original Code Repository

https://github.com/DeepLearningForPrecisionHealthLab/MegNET_2020
Manuscript available: https://pubmed.ncbi.nlm.nih.gov/34274419/
DOI: https://doi.org/10.1016/j.neuroimage.2021.118402
PMID: 34274419

Metadata

Release files for MEGnet-neuro 0.3.6

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

Source distribution (sdist)

Source distribution for MEGnet-neuro 0.3.6
File Size Uploaded
megnet_neuro-0.3.6.tar.gz 45.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for MEGnet-neuro 0.3.6
File Interpreter ABI Platform
megnet_neuro-0.3.6-py3-none-any.whl Python 3 none any Details

Total release size: 103.0 kB

Release files / megnet_neuro-0.3.6.tar.gz

Download URL megnet_neuro-0.3.6.tar.gz
Size 45.1 kB
Tags Source
SHA-256 checksum
How to use checksums
881a44a22bbc0474345cf402597cd3755b443ee75d85df4a8ce723a2c354207b
BLAKE2b-256 checksum
How to use checksums
fadf9531f3b26ecf877cab63c18525642ca30df14ed90400a2bb76ed1f7002f9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.19

Release files / megnet_neuro-0.3.6-py3-none-any.whl

Download URL megnet_neuro-0.3.6-py3-none-any.whl
Size 57.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fe01198146f45f62d494aa1cb0194f37e64e09273402e619f6286cc500bae7cb
BLAKE2b-256 checksum
How to use checksums
9e67d5a3b7f11b60223d7fd5cc61bf9e5e3bc7c4608195432d2d4ff432fa1a42
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.19

Release history Release notifications | RSS feed

This release

0.3.6 This release

2 release files

0.3.5

2 release files

0.3.4

2 release files

0.3.3

2 release files

0.3.2

2 release files

0.3.1

2 release files

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