Quick Start Guide¶
This guide walks you through your first HRV analysis with RRational.
1. Launch RRational¶
The app opens at http://localhost:8501.
Demo Mode
Try RRational without your own data:
2. Create a Project¶
On the Welcome Screen, click "Create New Project":
- Choose a folder (e.g.,
Documents/HRV_Studies/) - Enter a project name (e.g.,
MyStudy) - Select your data sources (HRV Logger, VNS Analyse, or both)
- Click "Create Project"
This creates an organized folder:
MyStudy/
├── project.rrational # Project metadata
├── data/
│ ├── raw/
│ │ ├── hrv_logger/ # Your HRV Logger CSV files
│ │ └── vns/ # Your VNS Analyse TXT files
│ └── processed/ # Exported files and saved events
├── config/ # Study configuration
└── analysis/ # Analysis results
Already have data?
Copy your HRV files into the appropriate data/raw/ subfolder before proceeding.
3. Import Data¶
- Go to the Data tab
- Verify the data path points to your
data/raw/folder - Click "Analyze Folder"
- Review the participant overview table
RRational extracts participant IDs from filenames using patterns (default: 4 digits + 4 letters, e.g., 0001CTRL). Adjust in Import Settings if needed.
4. Review & Clean¶
- Go to the Participants tab
- Select a participant from the dropdown
- Review the tachogram (RR interval plot)
- Switch to Signal Inspection mode for artifact detection
Plot options (checkboxes above the plot):
| Option | Shows |
|---|---|
| Show events | Vertical dashed lines at event timestamps |
| Show exclusions | Red shading for excluded time ranges |
| Show condition sections | Colored background for repeating conditions |
| Show artifacts | Orange markers for detected artifacts |
| Show time gaps | Gray shading for recording interruptions |
5. Configure Study¶
Use the Setup tab to define your study structure:
| Sub-tab | Purpose |
|---|---|
| Events | Define expected events and synonyms for fuzzy matching |
| Groups | Create study groups (Control, Experimental, etc.) |
| Sequences | Define repeating condition orders for randomization |
| Sections | Define analysis sections (Baseline, Task, Recovery) |
Example section definition:
- Name:
baseline - Start event:
rest_start - End event:
rest_end - Expected duration: 5 minutes (±1 min tolerance)
6. Run Analysis¶
- Go to the Analysis tab
- Select Single Participant or Group Analysis
- Choose section(s) to analyze
- Enable artifact correction if needed (recommended for 2-10% artifact rates)
- Click "Analyze HRV"
Results include:
- Time domain: RMSSD, SDNN, pNN50, Mean HR
- Frequency domain: LF power, HF power, LF/HF ratio
- Nonlinear: SD1, SD2 (Poincaré plot)
- Quality metrics: Beat count, artifact rate, quality grade
- Plots: Tachogram, Poincaré plot, frequency spectrum, HR distribution
7. Export¶
- CSV Export — Download button in Analysis tab for statistical software
- Ready for Analysis — Save as
.rrationalfile (sidebar) with full audit trail
Next Steps¶
- User Guide: Complete Workflow — Detailed instructions for each step
- Data Formats — File format specifications
- Scientific Background — HRV guidelines and best practices