Skip to main content

BioSig - tools for biomedical signal processing

Project description

Biosig Package

Biosig is a toolbox for processing biomedical signals like ECG, EEG etc. It can read about 50 different data formats including EDF, GDF, BDF, CFS, Heka, ABF, HL7aECG, SCP (EN1064), BrainVision, and many more. The heavy lifting is done in "libbbiosig" the biosig library implemented in C/C++. The Python module of Biosig provides an interface between libbiosig and Python. Currently, two functions are provided, one for reading the data samples, and one for extracting the meta information, like event table, scaling factors, sampling rates, etc.

More information is available at

Installation:

GNU/Linux (Debian, Ubuntu, and family)

  sudo apt install python3-biosig

or if you want to install in your own venv

  sudo apt install libbiosig-dev  # make sure that libbiosig and its prerequisites are in place
  pip install biosig

MacOSX/Homebrew

  brew install biosig             # make sure libbiosig is in place.
  pip install biosig

MS-Windows (Python >=3.9,<=3.14)

  pip install biosig

Other *NIX (Linux, Unix) OS

  • install libbiosig from source (configure && make && make install)
  • pip install biosig

Usage

  import biosig
  import json

read header/metainformation

  HDR=json.loads(biosig.header(FILENAME))

read data

  DATA=biosig.data(FILENAME)

A more elaborate example is this demo

showing

  • how to load data
  • displaying the traces with matplotlib
  • splitting the traces into sweeps

History

In the past there were several attempts of providing Python support. A first attempt using pure python should to be very slow and a lot of implementation effort, only some early version of GDF has been supported. Later, Swig was used for providing a python binding. This was reasonable flexible, and the libbiosig implementation could be mostly used. Disadvantages were the effort to maintain swig.i interface file, which is currently most likely broken. Known issues are string support, lack of Python3 support. Also this attempt is considered deprecated.

The third attempt is using "module extensions". Currently, two functions, one for reading the header information (in JSON format) and one for reading the data samples is provided.

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

biosig-3.9.5.tar.gz (20.5 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

biosig-3.9.5-cp314-cp314-win_amd64.whl (2.3 MB view details)

Uploaded CPython 3.14Windows x86-64

biosig-3.9.5-cp313-cp313-win_amd64.whl (2.2 MB view details)

Uploaded CPython 3.13Windows x86-64

biosig-3.9.5-cp312-cp312-win_amd64.whl (2.2 MB view details)

Uploaded CPython 3.12Windows x86-64

biosig-3.9.5-cp311-cp311-win_amd64.whl (2.2 MB view details)

Uploaded CPython 3.11Windows x86-64

biosig-3.9.5-cp310-cp310-win_amd64.whl (2.2 MB view details)

Uploaded CPython 3.10Windows x86-64

biosig-3.9.5-cp39-cp39-win_amd64.whl (2.2 MB view details)

Uploaded CPython 3.9Windows x86-64

File details

Details for the file biosig-3.9.5.tar.gz.

File metadata

  • Download URL: biosig-3.9.5.tar.gz
  • Upload date:
  • Size: 20.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for biosig-3.9.5.tar.gz
Algorithm Hash digest
SHA256 0716bab8a228079b8800d41e699fbd02c011687ca4cd8a37b6e0ea67b1c0c24e
MD5 ed9bebd8b12fefa5f1ecc66bb9372b0e
BLAKE2b-256 58074410d1f038bf8bd81a06dd92d0077aa13f369c2a18605ebda0e9a339ccc7

See more details on using hashes here.

File details

Details for the file biosig-3.9.5-cp314-cp314-win_amd64.whl.

File metadata

  • Download URL: biosig-3.9.5-cp314-cp314-win_amd64.whl
  • Upload date:
  • Size: 2.3 MB
  • Tags: CPython 3.14, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for biosig-3.9.5-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 ba63c1b44498f5e3b34e22e664c5488979eafb1522e349f2abf8a6dc2d704a86
MD5 2aa5c0df6576b0604b289e6842d971d4
BLAKE2b-256 97b4d86c15552d2050847bad9ec6e4c0121675cc8e39c0f78adfec6cb1916d66

See more details on using hashes here.

File details

Details for the file biosig-3.9.5-cp313-cp313-win_amd64.whl.

File metadata

  • Download URL: biosig-3.9.5-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 2.2 MB
  • Tags: CPython 3.13, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for biosig-3.9.5-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 ed7714f3cf878f78cdb0b81a46775dd670b0ba6e9036cafd0fe2aa69e2d01653
MD5 a37571045b70175283bb9a17ed51c868
BLAKE2b-256 91babc2c4379066dca17bd3c7ad091730ee96facae368990eb559afe15f4622a

See more details on using hashes here.

File details

Details for the file biosig-3.9.5-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: biosig-3.9.5-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 2.2 MB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for biosig-3.9.5-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 aa4d4ad25979cbb1f4451714c8eea1c253c16907b369407292d12fcd971162e9
MD5 258e5cfef1e8046e76f5d9d5141366ea
BLAKE2b-256 f682da87d0a179df2a956c05516cec8fe31caf994b7215b210f56fdca35b953e

See more details on using hashes here.

File details

Details for the file biosig-3.9.5-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: biosig-3.9.5-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 2.2 MB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for biosig-3.9.5-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 614ccd5763d4b0b3d5757eec08c8bd5a93d7c97017ab05579efe7f646d916fdb
MD5 22afe1f9904b112f9dc67aa163adc988
BLAKE2b-256 284ee854bbaa6b794cab1d42f287a543e434f46222b6508e9bc00d3ee6f9b822

See more details on using hashes here.

File details

Details for the file biosig-3.9.5-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: biosig-3.9.5-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 2.2 MB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for biosig-3.9.5-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 0cec5eb52218631b876f444bb3783b7cf7eca137e70211502a06f4a6b478566a
MD5 b2d49ebfbd599bc0c6714df816e3938f
BLAKE2b-256 893c9f629c251d04b13c3857ff9c7f6541cb2dbfd7e83ab7cd87b3041c3d1d6a

See more details on using hashes here.

File details

Details for the file biosig-3.9.5-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: biosig-3.9.5-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 2.2 MB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for biosig-3.9.5-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 62c131b8cd12e5a6e069534debf6bd08d186db73bfeee7558a78a9e973c82cdd
MD5 ee21710870102dba44030af9cb08ade3
BLAKE2b-256 f9bb0f9a96f6671af88462338edd60921922420c01b8a002a8631a79c8d3dd4b

See more details on using hashes here.

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