How rajas/ecgtk works
Primary Flow:
• Input Files (.dat, .hea, .atr, .qrs)
• → WFDB File Handler
• → Data Processing Modules
• → Visualization/Output
Component Relationships
a. Data Input Layer:
• Io_utils.py interfacing with raw ECG files
• To wfdbtools.py as the primary parser
b. Processing Layer:
• Wfdbtools.py to rdetect.py for R-wave detection
• Link markedit.py for annotation handling
c. Output Layer:
• Plotter.py to both processing modules
• Visualization output
Key Features to Highlight
• File format support (212 and 16)
• Key functions: rdsamp(), rdann(), plot_data()
• Data transformation pipeline
• Annotation handling capabilities
Technical Details
• Supported file extensions (.dat, .hea, .atr, .qrs)
• Data formats (212, 16)
• Key Python dependencies