TurtleWave hdEEG
High-density EEG processing for sleep research, extending Wonambi for large multi-channel datasets. Detects sleep spindles, slow waves, K-complexes, and phase–amplitude coupling, and ships PyQt5 GUIs for both detection (turtlewave_gui) and event review (eeg_review_gui).
Documentation · Source · Issues
Install
pip install turtlewave-hdEEG
Requires Python ≥ 3.10. Tested on macOS, Linux, and Windows.
Launch a GUI:
turtlewave_gui # detection
eeg_review_gui # event review
Or use the library directly:
from turtlewave_hdEEG import LargeDataset, ParalSWA, CustomAnnotations
dataset = LargeDataset("subject001.set")
annot = CustomAnnotations("subject001.xml")
proc = ParalSWA(dataset=dataset, annotations=annot)
slow_waves = proc.detect_slow_waves(
method="AASM/Massimini2004",
chan=["Cz", "Fz"],
stage=["NREM2", "NREM3"],
json_dir="sw_results",
)
Full examples for spindles, K-complexes, and PAC are in examples/ and the documentation.
Develop
git clone https://github.com/TancyKao/TurtleWave-hdEEG.git
cd TurtleWave-hdEEG
python3 -m venv --prompt turtlewave .venv
source .venv/bin/activate # macOS / Linux
# .venv\Scripts\activate # Windows (PowerShell or cmd)
pip install -r requirements.txt
pip install -e ".[dev]"
python -c "import turtlewave_hdEEG; print(turtlewave_hdEEG.__version__)"
requirements.txt is a fully-pinned lockfile generated from pyproject.toml via uv pip compile. To regenerate after changing dependencies:
uv pip compile pyproject.toml --extra dev --extra docs --output-file requirements.txt
For docs work:
pip install -e ".[docs]"
mkdocs serve # http://127.0.0.1:8000
Repository layout
turtlewave_hdEEG/ # core library (detectors, processors, exporters)
frontend/ # PyQt5 GUIs
examples/ # standalone scripts and HPC batch templates
docs/ # MkDocs Material source
tests/ # smoke tests
HPC batch templates in examples/NCI_commands/ target NCI Gadi (PBS) and use plain pip + venv on the cluster — no conda required.
License
MIT — see LICENSE.
Citation
If you use TurtleWave in your research, please cite:
@software{turtlewave,
title = {TurtleWave hdEEG: High-density EEG event detection for sleep research},
author = {Kao, Tancy},
url = {https://github.com/TancyKao/TurtleWave-hdEEG}
}
Metadata
Release files for turtlewave-hdEEG 4.6.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| turtlewave_hdeeg-4.6.3.tar.gz | 678.0 kB | Without provenance | Details for turtlewave_hdeeg-4.6.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| turtlewave_hdeeg-4.6.3-py3-none-any.whl | Python 3 | none | any | Details for turtlewave_hdeeg-4.6.3-py3-none-any.whl |
Total release size: 1.4 MB
Release files / turtlewave_hdeeg-4.6.3.tar.gz
| Download URL | turtlewave_hdeeg-4.6.3.tar.gz |
|---|---|
| Size | 678.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
91bba61737759fe0cd615eab60380d9ee708c03baca95714cce48737ae4ac4b3
|
|
BLAKE2b-256 checksum How to use checksums |
c4c2598ce5d5bd18963b8d7daacc39287ef590a727c9734b7f05dd7f7a52bed9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / turtlewave_hdeeg-4.6.3-py3-none-any.whl
| Download URL | turtlewave_hdeeg-4.6.3-py3-none-any.whl |
|---|---|
| Size | 698.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b32747aae2b5874172f18de118d35225962195a40dc82fe869ec2f2f716ca3b9
|
|
BLAKE2b-256 checksum How to use checksums |
a6dc474d8ef588fd231df283d4832ff244b72a3b2635d2ad611dfd7fa9acfffc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Security for turtlewave-hdEEG 4.6.3
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.