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.6.tar.gz (24.5 kB view details)

Uploaded Source

Built Distribution

biobabel-0.5.6-py3-none-any.whl (28.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: biobabel-0.5.6.tar.gz
  • Upload date:
  • Size: 24.5 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.6.tar.gz
Algorithm Hash digest
SHA256 a10046e7eadd041189465b12bcfe09c44bc28aa53dfee69bd6532c32e4e255bf
MD5 41e37da1d9167f8a342dff7a79bcfe01
BLAKE2b-256 a16dd9713b239d5f5e74f1e1ba744fe33b9fc3eac3b4c5cc16899a66544e946d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: biobabel-0.5.6-py3-none-any.whl
  • Upload date:
  • Size: 28.2 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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 fa77fa3ea147f90710d5afc45785862592c042c3d8ea6330435a7dd645d6f528
MD5 6c382711eccfc8ddc9a6a3f9a3679566
BLAKE2b-256 7afec81a3ba9a2f18d150fb6bb57615c33fac4d5af906a096ff9cf813b987af8

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