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 compatability: (mne 1.10/1.11/1.12 & python 3.11/3.12/3.13/3.14)

conda create -n megnet 'mne>1.10,<1.13' '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,<1.13' '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.5.1

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.5.1
File Size Uploaded
megnet_neuro-0.3.5.1.tar.gz 44.7 kB Details

Built distribution (wheel)

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

Total release size: 101.9 kB

Release files / megnet_neuro-0.3.5.1.tar.gz

Download URL megnet_neuro-0.3.5.1.tar.gz
Size 44.7 kB
Tags Source
SHA-256 checksum
How to use checksums
e346a1091aadb195ec66d4a6cf12afc37f3191f0e95a8122063597d5f847c9ca
BLAKE2b-256 checksum
How to use checksums
f299c42e268deab4735b5ad8e38eff2b0c22505beffa3ef8b6524cd79263cdf4
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.5.1-py3-none-any.whl

Download URL megnet_neuro-0.3.5.1-py3-none-any.whl
Size 57.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6b1dbf0e1b561820ec9f05312376e4bd331c347e32b5437866f4df9fe7873f41
BLAKE2b-256 checksum
How to use checksums
c034ec0d5320e82b5d9f64c5bc703734e05bcde2fe0abf62efb0f332eaeedbb3
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

0.3.6

2 release files

This release

0.3.5.1 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