Skip to main content

SURF WAVES physiological waveform dataset utilities

Project description

WAVES Utilities

This python package/repository contains useful scripts, dataloaders, and examples for working with the WAVES dataset of pediatric physiological waveforms.

What is WAVES?

WAVES is an open-access pediatric physiological waveform dataset containing ECG, respiratory, plethysmogram, arterial blood pressure, and a variety of other high-frequency waveforms extracted from bedside monitors for patients at the Lucile Packard Childrens Hospital. The WAVES dataset itself is hosted by Redivis at https://redivis.com/WAVES/datasets

WAVES is administrated by the SURF Stanford Medicine research group.

What is this repository for?

  • Python utilities to load and plot physiological waveform data from the WAVES dataset

How do I get set up?

  • Download/clone the repository
  • Set up a python environment with the required dependencies: conda env create -f environment.yml
  • Install the python package from pypi with pip install waves_utilities
    • (or run python setup.py develop for local development)

Usage Examples

Refer to the tests and API documentation for more information on API options/arguments.

Load data from .csv file

from waves_utilities import WavesUtilityAPI
util_api = WavesUtilityAPI()

# Load a single row
csv_row = next(util_api.csv_manager.read_csv("waveform_test_extract.csv", limit=1))

# Load all rows (keep memory usage in mind for large data extracts)
csv_rows = list(util_api.csv_manager.read_csv("waveform_test_extract.csv"))

Plot waveforms

# Plot 5 seconds from a single waveform
util_api.waveform_plotter.plot_waveform(
    csv_row, save_filepath="single_waveform.png", duration_seconds=5
)

# Plot the full duration of multiple waveforms in file
util_api.waveform_plotter.plot_waveforms(
    csv_rows, save_filepath="multi_waveforms.png", title="Test Waveform Data"
)

Contribution guidelines

  • Writing tests
  • Code review
  • Other guidelines

Who do I talk to?

  • Daniel Miller: Primary researcher/developer for the WAVES dataset and codebase
  • David Scheinker: Head of the SURF Stanford Medicine research group

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

waves-utilities-1.0.0.tar.gz (7.5 kB view details)

Uploaded Source

File details

Details for the file waves-utilities-1.0.0.tar.gz.

File metadata

  • Download URL: waves-utilities-1.0.0.tar.gz
  • Upload date:
  • Size: 7.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for waves-utilities-1.0.0.tar.gz
Algorithm Hash digest
SHA256 ccfd84bb7024e547500cdb27a9d96f351329ea98fcd8131530a157bf18647772
MD5 bd03e9bf6f2631e4956ec1853619a375
BLAKE2b-256 01ec8dfef759e7726daf16af086ceadfccea01cc56c5b505966c88cc027b7004

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