WFDB for node.js
git clone https://github.com/jeffplourde/wfdb.gitcd wfdb
- Install dependencies
- Run unit tests
- Retrieve and decode Physiobank records
node examples/main.js mghdb/mgh001
Realtime physiological data visualization and analysis will inevitably come to the world of HTML5 and node.js. I wrote this code to facilitate experiments in that area by providing large datasets to test the large and modern data pipes of the world wide web. Ten years ago these datasets were only manageable for research but in the IoT era of both "big" and "fast" data such datasets will become the life's blood of our healthcare and public health systems.
Unit tests use tranches of data from real-world data sets; typically 10 samples per signal. Testing is
This is NOT intended for production use. This project is a personal experiment of my and is in no way endorsed by anyone.
This is an experimental package for reading some wfdb formatted files from node.js. I have only experimented with a few data sets so far. DO NOT trust this library to correctly interpret WFDB data until it has had more vetting.
Only raw data signals are currently read (no annotations or other data) with limitations on supporting all the various options of the WFDB format.
My primary reference in developing this has been
Currently supported are signal formats 16, 80, and 212.
In its default configuration the "main" program will cache data files from "http://physionet.org/physiobank/database/" into a subdirectory called "data/" in the local file system. Subsequent reads of the same record will derive data from the local cache to ease the load on the physiobank servers. For information on Physionet public domain licensing please visit their home page. main.js will first show the header information decoded and then each signal tab-delimited with each sequential sample set on a new line.