Skip to main content

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.

Metadata

Release files for epilepsy2bids 0.0.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for epilepsy2bids 0.0.7
File Size Uploaded
epilepsy2bids-0.0.7.tar.gz 6.6 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for epilepsy2bids 0.0.7
File Interpreter ABI Platform
epilepsy2bids-0.0.7-py3-none-any.whl Python 3 none any Details

Total release size: 6.6 MB

Release files / epilepsy2bids-0.0.7.tar.gz

Download URL epilepsy2bids-0.0.7.tar.gz
Size 6.6 MB
Tags Source
SHA-256 checksum
How to use checksums
857bb6d94cdd82ed74a20e631b96cd36ed25b70882759bdaf66ae076a563664d
BLAKE2b-256 checksum
How to use checksums
000c48ee920e138c5377f6e6daa42b18070d226029b9cee55b6be8d0d444d89a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.1 CPython/3.12.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 11, 2024.

Transparency log

Release files / epilepsy2bids-0.0.7-py3-none-any.whl

Download URL epilepsy2bids-0.0.7-py3-none-any.whl
Size 36.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
211cb17a88b71af9b7cb4dd52e93195c04706834d60ce847f6ee828d40a451f1
BLAKE2b-256 checksum
How to use checksums
210fde4e86a22df238a92b5f2f4537436cb1f63b9c2d088f98457464eda1b1d5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.1 CPython/3.12.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 11, 2024.

Transparency log

Release history Release notifications | RSS feed

This release

0.0.7 This release

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page