- Python 3.10
-
Clone the repository
git clone https://github.com/alitsaberi/zmax-datasets.git
-
Navigate to the project directory
cd zmax-datasets -
Create a virtual environment and activate it
Windows:
python -m venv .venv .\.venv\Scripts\activate
macOS/Linux:
python3 -m venv .venv source .venv/bin/activate -
Install Poetry
pip install poetry
-
Install dependencies
# Install without extras poetry install # Install with specific extras poetry install -E <extra_name> # Install with all extras poetry install --all-extras # Install with multiple extras poetry install -E sleep_scoring -E artifact_detection
ZUtils provides several optional extras that can be installed based on your needs:
sleep_scoring: Sleep stage scoring using U-Time modelsartifact_detection: Tools for detecting artifacts in EEG signalsyasa: Integration with YASA (Yet Another Spindle Algorithm) for sleep analysis and feature detectionnotebook: Jupyter notebook dependencies for interactive analysis and visualization
Score sleep stages from ZMax recordings:
poetry run sleep-scoring \
/path/to/zmax/recordings/* \
--aggregate \
--output-path /path/to/outputFor a complete list of options for each script, use --help.
See the contribution doc for the complete workflow.
This project is licensed under the terms of the MIT license.