Skip to main content

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}
}

Download files

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

Source Distribution

turtlewave_hdeeg-4.0.0.tar.gz (269.0 kB view details)

Uploaded Source

Built Distribution

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

turtlewave_hdeeg-4.0.0-py3-none-any.whl (280.5 kB view details)

Uploaded Python 3

File details

Details for the file turtlewave_hdeeg-4.0.0.tar.gz.

File metadata

  • Download URL: turtlewave_hdeeg-4.0.0.tar.gz
  • Upload date:
  • Size: 269.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for turtlewave_hdeeg-4.0.0.tar.gz
Algorithm Hash digest
SHA256 1f641ea422cd070bef54a4c48676e4ed688ba3b5d004134e8d3b6937283c81f2
MD5 8058ee683061b00c5304dde9f7c6c1a2
BLAKE2b-256 326d202c46f121f9631184744d2367cd184eb7cbceb4f5bb379a8e8de3df3663

See more details on using hashes here.

File details

Details for the file turtlewave_hdeeg-4.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for turtlewave_hdeeg-4.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7fbd7a218691275f2ab3ad9fecad3f91c7519b2dffc8a8ec2575847e63d77c68
MD5 ba289e26640959587cbfa9645439099d
BLAKE2b-256 15fae462b395d3599f417ddab90dfa96c4338f5e0d21d296d05eb3c73a0f7a97

See more details on using hashes here.

Release history Release notifications | RSS feed

4.3.0

2 files

4.0.2

2 files

This release

4.0.0 This release

2 files

3.3.0

2 files

3.1.0

2 files

2.1.0

2 files

2.0.2

2 files

2.0.1

2 files

2.0.0

2 files

1.1.0

2 files

1.0.0

2 files

0.1.1

2 files

0.1.0

2 files

Supported by

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