Skip to main content

Python library for converting EEG datasets of people with epilepsy to BIDS compatible datasets.

Project description

Epilepsy2Bids

Library for converting EEG datasets of people with epilepsy to EEG-BIDS compatible datasets. These datasets comply with the ILAE and IFCN minimum recording standards. They provide annotations that are HED-SCORE compatible. The datasets are formatted to be operated by the SzCORE seizure validation framework.

The library provides tools to:

  • Convert EEG datasets to BIDS.
  • Load and manipulate EDF files.
  • Load and manipulate seizure annotation files.

Currently, the following datasets are supported:

Installation

The epilepsy2bids package is released for macOS, Windows and Linux on PyPi. It can be installed using pip :

python -m pip install -U pip
python -m pip install -U epilepsy2bids

It can also be installed from source with a modern build of pip :

python -m pip install -U pip
git clone https://github.com/esl-epfl/epilepsy2bids.git
cd epilepsy2bids
python -m pip install -e .

Code

The primary function of epilepsy2bids is to convert EEG dataset to BIDS by calling the convert() for a given dataset.

from epilepsy2bids.bids.chbmit.convert2bids import convert

convert(root: Path, outDir: Path)

In addition, the library provides the Eeg and Annotation classes that be used to manipulate EEG recordings.

Adding support for a new dataset

All dataset converters should implement the convert() method. To assist many helper functions and generic code is already available in src.epilepsy2bids.bids.convert2bids.py. Examples of implementation are available in the supported datasets.

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

epilepsy2bids-0.0.1.tar.gz (6.6 MB view details)

Uploaded Source

Built Distribution

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

epilepsy2bids-0.0.1-py3-none-any.whl (35.8 kB view details)

Uploaded Python 3

File details

Details for the file epilepsy2bids-0.0.1.tar.gz.

File metadata

  • Download URL: epilepsy2bids-0.0.1.tar.gz
  • Upload date:
  • Size: 6.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for epilepsy2bids-0.0.1.tar.gz
Algorithm Hash digest
SHA256 53a61ad36cf24d44a615dccb8f46d2dacd333805de025de5fe739baa458d9c47
MD5 2e35189823a0d64bcf511160967ccbf1
BLAKE2b-256 0127becdd9924003c768e5a3bf0a3ed6806a58f971dc698f05960e6d8c1d68ec

See more details on using hashes here.

File details

Details for the file epilepsy2bids-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: epilepsy2bids-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 35.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for epilepsy2bids-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d1b97f3ad29b70800e9f5260baab25c839b1843b4211a8d829bc086d2d028a4c
MD5 b1d7ff189790bb2c95d7fe4881f00397
BLAKE2b-256 9206a0a445495a034706e73463cc4e08e029982ecda8a0c62c3906ffffbc8388

See more details on using hashes here.

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