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.6.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.6-py3-none-any.whl (36.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for epilepsy2bids-0.0.6.tar.gz
Algorithm Hash digest
SHA256 d09d1ec34b4f1e508da61e27e2f7a9e9dcfa366a0ec20b53eb7e91d10d24d11c
MD5 3c4042e5db53993796d9f360f7243c04
BLAKE2b-256 f8696360df114df39b43b9516c640ec3fd1be19934f1ff90424b14451d18618d

See more details on using hashes here.

Provenance

The following attestation bundles were made for epilepsy2bids-0.0.6.tar.gz:

Publisher: python-publish.yml on esl-epfl/epilepsy2bids

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

  • Download URL: epilepsy2bids-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 36.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for epilepsy2bids-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 cfc2d4f32e92bff6d73663a29c1bde4006c7904d199c3e4049dd6936f9554e5e
MD5 be0d4e9565168b6af79557b66e51488c
BLAKE2b-256 5359386dd0c0b212f7b8d9046904238bba1f657fbb01cb22f020a468fa2c134f

See more details on using hashes here.

Provenance

The following attestation bundles were made for epilepsy2bids-0.0.6-py3-none-any.whl:

Publisher: python-publish.yml on esl-epfl/epilepsy2bids

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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