Skip to main content

Rodent EEG analysis tools

Project description

NeuRodent 🐁

CI

License: MIT Python 3.10+ DOI Binder Open In Colab

Presented at USRSE'25!

A Python package for standardizing rodent EEG analysis and figure generation. Various EEG formats are loadable and features are extracted in parallel. Also includes a Snakemake workflow for automated analysis.

Installation

NeuRodent can be installed via pip:

pip install neurodent

For pipeline support, development setup, and other installation options, check out the full installation guide.

Usage

Visit the full documentation for more how-tos and examples: https://josephdong1000.github.io/neurodent

Overview

NeuRodent loads multi-format EEG data (LongRecordingAnalyzerAnimalOrganizer) and computes features over windows (WindowAnalysisResult) and population spiking (FrequencyDomainSpikeAnalysisResult). Results feed into AnimalOrganizer and ExperimentPlotter for multi-animal comparison by genotype, session, or circadian cycle.

lro = LongRecordingOrganizer(data_path)
ao = AnimalOrganizer(lro)
war = ao.compute_windowed_analysis(features=["rms", "psdband", "cohere"])
ep = ExperimentPlotter([war])
ep.plot_feature("rms", groupby="genotype")

A companion Snakemake workflow automates the full pipeline with cluster support.

Snakemake Workflow

The pipeline follows the Snakemake Workflow Catalog standardized layout, with workflow/Snakefile as the single entry point.

# Deploy via snakedeploy
pip install snakedeploy
snakedeploy deploy-workflow https://github.com/josephdong1000/neurodent . --tag <version>

# Run manually
snakemake --snakefile workflow/Snakefile --configfile config/config.yaml

Acknowledgements

This project benefited from insights and best practices described in Peter K. G. Williams’s One Good Tutorial.

Citation

If you find NeuRodent useful, please cite our work!

@misc{https://doi.org/10.5281/zenodo.17051374,
  doi = {10.5281/ZENODO.17051374},
  url = {https://zenodo.org/doi/10.5281/zenodo.17051374},
  author = {Dong,  Joseph and Yongtaek Oh,   and Marsh,  Eric},
  title = {josephdong1000/PyEEG: 0.1.1},
  publisher = {Zenodo},
  year = {2025},
  copyright = {MIT License}
}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

neurodent-0.3.0.tar.gz (347.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

neurodent-0.3.0-py3-none-any.whl (152.8 kB view details)

Uploaded Python 3

File details

Details for the file neurodent-0.3.0.tar.gz.

File metadata

  • Download URL: neurodent-0.3.0.tar.gz
  • Upload date:
  • Size: 347.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for neurodent-0.3.0.tar.gz
Algorithm Hash digest
SHA256 a85f0b1a3bf4f96f623d6d73f6f513179cc0b936133cf4d08004cf65286d07aa
MD5 48b55c1aea9b62e11a8d378b0b2d2f1f
BLAKE2b-256 17cad43e5feb49bb3e9ee414962f10732d7ad95931daf65076fca9f844182033

See more details on using hashes here.

Provenance

The following attestation bundles were made for neurodent-0.3.0.tar.gz:

Publisher: publish.yml on josephdong1000/neurodent

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file neurodent-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: neurodent-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 152.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for neurodent-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ac5c54814a7c40d4c35f5e8eae6c2baf1e009f387fd3938b424e80609d2cf094
MD5 24b358e29667a9f3279a01626da49f43
BLAKE2b-256 2c2203a8172672708c5f1efca1bd28ddb203cd04d9435ec53b3fe6e346089377

See more details on using hashes here.

Provenance

The following attestation bundles were made for neurodent-0.3.0-py3-none-any.whl:

Publisher: publish.yml on josephdong1000/neurodent

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page