QT Interval Measurement: The PhysioNet/Computing in Cardiology Challenge 2006 1.0.0
(1,770 bytes)
README - Part of the trqt package submitted for the 2006 CinC challenge
Copyright (C) 2006 DA Tironi, R Sassi and LT Mainardi
This software is released under the terms of the GNU General
Public License (http://www.gnu.org/copyleft/gpl.html).
HOW TO USE THE CODE
1) First, you need to install two freely available software:
a) install the wfdb software package, a software for viewing, analyzing, and creating
recordings of physiologic signals which is a fundamental part of the PhysioToolkit.
It might be found at http://www.physionet.org/physiotools/wfdb.shtml
b) install ecgpuwave. ecgpuwave is a QRS detector and ECG waveform limit locator,
developed by Pablo Laguna, Raimon Jané, Eudald Bogatell, and David Vigo Anglada. It is
part of the PhysioToolkit and freely available at
http://www.physionet.org/physiotools/ecgpuwave/
2) Unzip the source file trqt.zip in a folder of choice (e.g. "trqt").
3) Put in the same folder (trqt) the files of the ECG you wish to analyze (.hea, .dat, .xyz).
4) Compile the C code cqrs.c issuing the command
gcc -o cqrs cqrs.c
5) From a command line interface (shell or command prompt window) run the
following commands (where "recordname" is the name of the ECG file; on linux you might
find it handy to put them in a shell script):
ecgpuwave -r recordname -a epw -s2
rdann -r recordname -a epw > temp.rdn
rm recordname.epw
cqrs temp.rdn > temp.lqt
rdsamp -r recordname -s 2 > temp.sam
6) From within Matlab, go to the folder where you placed the files (e.g. cd trqt)
then issue the command
trqt
the value of the points Q and T (in ms) will be printed in the Matlab shell. They are
also contained in the variables Q and T