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
python -m pip install "biobabel @ git+https://github.com/florisvanvugt/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:
- hdphysio5 thanks to hdphysio5
- labstreaminglayer (LSL) XDF (rudimentary) thanks to pyxdf
- BioPAC Acknowledge (acq) thanks to bioread
- opensignals ("OpenSignals (r)evolution" thanks to opensignalsreader
- Brams-Bio-Box (custom)
- TeensyECG (custom)
Wish-list:
- EDF
- Biosemi BDF https://pypi.org/project/pybdf/
Development
Install locally:
pip install .
and editable:
pip install -e .
Create wheels with:
python3 -m build
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
Built Distribution
File details
Details for the file biobabel-0.5.tar.gz
.
File metadata
- Download URL: biobabel-0.5.tar.gz
- Upload date:
- Size: 22.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8503936b389deb59541b2ff1c6ffad7e008dcc0759079bbddd1ddd724813113f |
|
MD5 | fec4e7c5819bced62dae766ef27790f5 |
|
BLAKE2b-256 | 9ade706052864889ded44ce0a62b6d01952c77aebf7b806a6212243ab54b3946 |
File details
Details for the file biobabel-0.5-py3-none-any.whl
.
File metadata
- Download URL: biobabel-0.5-py3-none-any.whl
- Upload date:
- Size: 24.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b290ff4c743f2edeb8ac89374a18f8fc282c0edda8437efbd3961ff7e87b6d26 |
|
MD5 | 161195ae66327b3c779e0dff54cdbb92 |
|
BLAKE2b-256 | 575fdf42c1a5d1b2e4135be3ebb35759279d6e782d491ec9a73e1cf6c294de6c |