Skip to content

Physionet.org is a large repository of databases. This repo, with the aim of helping NIT Rourkela with their ECG research, extracts all databases containing ECG signals, and converts the given format of signals to csv files for multiple use-cases

License

Notifications You must be signed in to change notification settings

Onaga08/physio-ecg-tools

Repository files navigation

Project Title

ECG Database curation through Physionet Repository

Project Description

Physionet is a repository of freely-available medical research data, managed by the MIT Laboratory for Computational Physiology. The aim of phyio-ecg-tools is to allow access for ECG related research and applications in various institutions by easy access, retrieval, and conversion of all ECG databases available on Physionet. Through the use of WFDB package, we were able to access the Physionet Repository and extract all the databases containing any type of ECG data. Different files in this repository are created for different functions, which are explained further.

Installation

Put the following command in your terminal/cmd after traversing to the designated folder

git clone https://github.com/Onaga08/physio-ecg-tools.git

This repository uses several Python libraries and dependencies. Install all requirements through the command below.

pip install -r requirements.txt

Now we are ready to run the code!

Usage

Used for extracting the ECG related databases from the Physionet Repository. Works by opening the urls of each database, extracting the first paragraph of the description or abstract (in case the description is not found) and looks for the term 'ECG' or 'Electrocardiogram'.

Returns a csv file containing the name and description of the databases of interest.

Traverses through the csv created by main to access the records of each databases. Useful in appending the number of datapoints recorded in each database of interest.

Used to download the database required.

Note - Requires dataset code as input in terminal

Used to plot every .dat or .edf included in the directory given as argument. Creates a subfolder of .png files.

Note - Requires Directory name as input in terminal

Final Runnable. Useful in extracting signal amplitudes of all the signals present in each .dat or .edf file in the database. Creates a subdirectory of the .csv files.

Note - Requires Directory name as input in terminal

Example Usage

For example usage, go to Tests

Contributions

Pull Requests are welcome. For major changes, please discuss in issues first.

Made specially for ECG related research at Biomedical Department of NIT Rourkela

About

Physionet.org is a large repository of databases. This repo, with the aim of helping NIT Rourkela with their ECG research, extracts all databases containing ECG signals, and converts the given format of signals to csv files for multiple use-cases

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages