Skip to main content

Python wrapper for reading major bio/physiology data formats (e.g. ECG, PPG, EDA) into a unified accessible interface

Project description

Biobabel : a unified interface for reading a plethora of physiology file formats

Many different file formats exist for physiology signals such as cardiac (ECG, PPG) or respiratory data. Many packages exist in Python to read these formats but they load into different data structures. This package is a wrapper of sorts for already existing tools providing a unified easy-to-use interface.

Installation

python3 -m pip install biobabel

Usage

Command line

To preview a file, use the provided script from the command line:

biobabel <FILENAME>

You can leave <FILENAME> blank in which case you will be prompted to select a file you want to preview.

Python

Simple usage example in Python:

import biobabel
bio = biobabel.load('filename.txt')
bio.print()
bio.plot()
bio.save('new_filename.hdf5')

More complete overview of functionality in Jupyter notebook.

Requirements

Physiology dialects

Currently supported dialects are:

  • EDF through PyEDFlib
  • labstreaminglayer (LSL) XDF (alpha) thanks to pyxdf
  • BioPAC Acknowledge (acq) thanks to bioread
  • opensignals ("OpenSignals (r)evolution" thanks to opensignalsreader
  • Biosemi BDF thanks to pybdf
  • Generic CSV (where CSV delimiter is automatically inferred and the time column is guessed as well)
  • Brams-Bio-Box (in-house format, even though the Generic-CSV functionality should take care of this now)
  • hdphysio5 thanks to hdphysio5
  • TeensyECG (in-house format)

Development

Install latest development version from Github:

python -m pip install "biobabel @ git+https://github.com/florisvanvugt/biobabel"

Install locally:

pip install .

and editable:

pip install -e .

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

biobabel-0.5.5.tar.gz (24.1 kB view details)

Uploaded Source

Built Distribution

biobabel-0.5.5-py3-none-any.whl (28.0 kB view details)

Uploaded Python 3

File details

Details for the file biobabel-0.5.5.tar.gz.

File metadata

  • Download URL: biobabel-0.5.5.tar.gz
  • Upload date:
  • Size: 24.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for biobabel-0.5.5.tar.gz
Algorithm Hash digest
SHA256 a4208130491711e3a85b855ea662f011e9d483407dbaba2d4fc787b753773ab7
MD5 5fb9e30bedf2c5038a9c0c73e6bfef5f
BLAKE2b-256 93a8fc8c41ec4e02c6b22226d5b2122d7f862839e896e0bcb384d3714fb8cc70

See more details on using hashes here.

File details

Details for the file biobabel-0.5.5-py3-none-any.whl.

File metadata

  • Download URL: biobabel-0.5.5-py3-none-any.whl
  • Upload date:
  • Size: 28.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for biobabel-0.5.5-py3-none-any.whl
Algorithm Hash digest
SHA256 c909bd89f7f64271561ba9a7c70fadc993cc8c47426ad2a29c6ea0724646f024
MD5 50b98c02e2c5e18ad2c79a399ba277b8
BLAKE2b-256 447bf10e654924936a20838f2c44af7bae059f59e1e6e19629a7de793a42e714

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page