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.2.tar.gz (319.9 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.2-py3-none-any.whl (332.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for turtlewave_hdeeg-4.0.2.tar.gz
Algorithm Hash digest
SHA256 2b680594e9b3b1dd43c3fa5c820e583c30270cf08fa38c342988c0e829c23d81
MD5 cfe995f351bf0354eeefc8e841a4cbc0
BLAKE2b-256 5ae29091cc0ca445cede961839cf0e002f691430c6ee4a91382293d280bd6424

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for turtlewave_hdeeg-4.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 daea875af8b8ca92b1d4f4ba909b3e1f59912c5028b73dc71321763dffcbad9a
MD5 cb39ac01514adf5ce2603ee00ba687ee
BLAKE2b-256 372d0b90818f22646942bc7b3559f964038691697db3695520f3ca4fd34088c4

See more details on using hashes here.

Release history Release notifications | RSS feed

4.3.0

2 files

This release

4.0.2 This release

2 files

4.0.0

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